Skip to content

rapidoc preview

npx rapidoc preview openapi.yaml --open

Shows the spec in <rapi-doc> on http://localhost:4000 and reloads it whenever a file in its folder changes, so you can edit the YAML and watch the page. Relative $refs to other files work. --theme picks a <rapi-doc> theme; a URL works too (npx rapidoc preview https://example.com/openapi.json), without reloading.