How piyushchy/living-story-graph-demo works
Living Story Graph is a browser-based tool for authoring and viewing a story graph, with configurable story vocabulary, templates, and hosted data protected by admin login. The visible authoring path is the setup editor using setup normalization and template utilities; hosted reads and writes are handled separately by the data API. Sample character profiles and event-order normalization are distinct domain content/logic. The excerpts do not show how the browser entry point connects these modules, so those links are omitted.
Main entry points: auth.js Cookie authentication · data.js Hosted story data API · setup-editor.js Story setup editor · login.js Admin login API
Components 13
Story authoring
- Story setup editor
src/setup-editor.js - Setup and templates
src/setup.js - Browser application
src/main.js - Application styles
src/style.css
Story data
- Sample character profiles
src/profiles - Introduction ordering
src/order.js
Hosting and access
- Hosted story data API
api/data.js - Admin login API
api/login.js - Session status API
api/session.js - Cookie authentication
lib/auth.js
Other components
- Vercel Blob storage
- Story author
- Story reader
Connections 5
- Story setup editor → Setup and templates: uses utilities
src/setup-editor.js - Hosted story data API → Cookie authentication: checks access
api/data.js - Admin login API → Cookie authentication: verifies password
api/login.js - Session status API → Cookie authentication: checks session
api/session.js - Hosted story data API → Vercel Blob storage: reads and writes
api/data.js