Demo Maintainer Notes
Demo Maintainer Notes
Section titled “Demo Maintainer Notes”Maintainer notes for contributors working on apps/demo.
Scope boundaries
Section titled “Scope boundaries”- The demo should exercise public package APIs (
@lyfie/luthor,@lyfie/luthor-headless), not private internals. - Keep demo behavior representative of real-world integration scenarios.
Key integration invariants
Section titled “Key integration invariants”ExtensiveEditorRefmethods are the central bridge for content operations.- Demo content constants in
src/data/demoContent.tsshould remain the single source for seeded examples. - Theme and persistence status UX should remain explicit and easy to inspect.
Persistence behavior assumptions
Section titled “Persistence behavior assumptions”- Theme uses local storage.
- JSONB/markdown payload handling is user-triggered from the persistence panel.
- Restore logic should fail safely on malformed JSON and provide status feedback.
Deployment notes
Section titled “Deployment notes”- Deploy script uses Wrangler after app build.
- Worker entry remains
src/index.ts; update docs/config together if this changes.
Validation checklist
Section titled “Validation checklist”From repo root:
pnpm --filter demo lintpnpm --filter demo build- if package interfaces changed, also run
pnpm build
Documentation upkeep
Section titled “Documentation upkeep”- Update source-file-reference.md when files move or change responsibilities.
- Keep user guide aligned with scripts and package versions.
- Keep docs index links synchronized in
documentation/index.mdanddocumentation/documentation-hub.md.