Public
Like
JsonSchemaViewer
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v16View latest version
A minimal web application that renders JSON Schema files using the @stoplight/json-schema-viewer package.
Visit the application with a URL parameter pointing to a JSON Schema file:
https://json-schema-viewer.val.run/?url=<url-to-some-json-schema.json>
For example:
https://json-schema-viewer.val.run/?url=https://creativeprojects.github.io/resticprofile/jsonschema/config.json
- Fetches and displays JSON Schema from any URL
- Renders the schema using the Stoplight JSON Schema Viewer component
- Supports all JSON Schema features including nested objects, arrays, and references
- Minimal UI with no distractions - only shows the schema viewer
- Handles errors gracefully
- Built with React 18.2.0
- Uses the
@stoplight/json-schema-viewerpackage for schema rendering - Uses Prism.js for syntax highlighting
- Uses ES modules from esm.sh for better compatibility with Val Town
- Runs on Val Town
/index.ts- Main HTTP handler that processes requests and serves the application/frontend/index.html- HTML template with Prism.js included/frontend/app.js- JavaScript module that loads React and the JSON Schema Viewer