A standalone demo declaration maker for KeepRight.
It pulls the live spec from GitHub, renders the full question set (including conditional logic), and downloads a declaration.json file. No database, no server-side storage, no other export formats.
ES modules need a local web server (not file://).
cd keepright-declaration-maker-demo
python3 -m http.server 8080Open http://127.0.0.1:8080.
Or:
npx serve .- Fetches
spec.jsonfrom the public keepright-spec repo. - Renders the form in the browser (ported from
keepright-declaration-maker). - Evaluates
visibleWhen,followups, andlabelVariantsclient-side. - Builds a declaration object matching the declaration schema.
- Triggers a JSON download. Nothing is sent anywhere.
Download a declaration.json, then open it in the declaration viewer demo.
index.html— single page shellstyles.css— demo styling (80s/90s Memphis Group vibe)js/app.js— bootstrap, spec fetch, downloadjs/form-renderer.js,js/form-behavior.js,js/spec-utils.js,js/declaration-builder.js— ported from the main declaration maker