Skip to content

adutton/online-openapi-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online OpenAPI viewer

A single static HTML page for viewing any OpenAPI document with Scalar. Drop in a URL, upload a JSON/YAML spec, or paste raw spec text - Scalar renders the API reference in the browser.

State is stored in the query string, so a configured viewer can be shared as a link.

Sibling project to online-ics-feed-viewer.

Online demo

Demo

Example specs

Query parameters

  • url - remote OpenAPI document URL
  • file - base64-encoded local spec contents (only used for small files; larger specs are rendered locally but not encoded into the share URL)
  • cors - true/false, route the URL through a public CORS proxy without trying a direct fetch first

Privacy

When the CORS proxy is used (either explicitly via the checkbox / cors=true, or automatically as a fallback when a direct fetch is blocked), the spec URL is sent through api.allorigins.win — a third-party service. Don't enable the proxy for URLs you don't want exposed to it.

License

MIT.

About

View any OpenAPI document with Scalar in the browser

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors