Demo App Getting Started (`apps/demo`)
Demo App Getting Started (apps/demo)
Section titled “Demo App Getting Started (apps/demo)”This guide is for users and contributors who want to run the demo app locally and validate editor features.
What the demo provides
Section titled “What the demo provides”The demo showcases:
@lyfie/luthorextensive preset integration- feature coverage visualization of installed extensions
- visual/JSONB persistence round-trip controls
- theme switching and copy/export helper actions
Versions and dependencies
Section titled “Versions and dependencies”From apps/demo/package.json:
- app version:
0.0.0(private workspace app) - React:
^19.2.0 - React DOM:
^19.2.0 - workspace packages:
@lyfie/luthor,@lyfie/luthor-headless - Vite:
^7.3.1 - TypeScript:
~5.9.3 - Wrangler:
^4.66.0
Run locally
Section titled “Run locally”From repository root:
pnpm --filter demo devOr from apps/demo:
pnpm devBuild and preview
Section titled “Build and preview”pnpm --filter demo buildpnpm --filter demo previewpnpm --filter demo lintDeploy (Cloudflare Worker)
Section titled “Deploy (Cloudflare Worker)”pnpm --filter demo deployThis runs build then wrangler deploy. Ensure Cloudflare auth and Wrangler environment are configured.
Feature walkthrough
Section titled “Feature walkthrough”- Load seeded JSONB content from top bar action.
- Explore feature coverage groups rendered from extension metadata.
- Save JSONB payload from persistence panel.
- Modify/copy payload and restore content to test round-trip behavior.
Related docs
Section titled “Related docs”- Demo user behavior details: usage-and-persistence.md
- Demo developer architecture: ../../developer/demo/architecture.md
- Demo source map: ../../developer/demo/source-file-reference.md