A standalone demo declaration viewer for KeepRight.
Drop or choose a declaration.json file; it renders in the browser with the same riso-poster aesthetic as the declaration maker demo. No database, no server, no other export formats.
ES modules need a local web server.
cd keepright-declaration-viewer-demo
python3 -m http.server 8080Open http://127.0.0.1:8080.
- Accepts a declaration JSON file (drag-and-drop or file picker).
- Optionally validates it against the matching declaration schema from GitHub (needs network for the schema fetch).
- Groups answers into rough sections (About You, The Material, Keep Right, Copy Right, Machine Right).
- Renders it as a wild 80s-Memphis document: a zine cover with a VALID/LOADED stamp, colour-blocked section spreads, big editorial answers, sticker chips for multi-select answers, a colophon/provenance block, and a collapsible raw JSON panel.
Nothing is uploaded anywhere.
Create a declaration with the declaration maker demo, then drop the downloaded declaration.json in here.
index.html— drop zone + viewer shellstyles.css— Memphis Group / 80s-90s demo stylingjs/app.js— file loading and UI wiringjs/declaration-parser.js— parse and group answersjs/declaration-view.js— fancy HTML rendererjs/schema-validator.js— optional Ajv validation via esm.sh