How kty2001/novelstory works
NovelStory (WhiteNoard) is a desktop web app for novelists to organize story structure, settings, and drafts. The main workflow is to choose or create a novel in the library, then work across its board, wiki, overview, narrative order, manuscript, and memo areas; changes are saved locally and can optionally sync across devices after Google login. The README documents the product capabilities; the graph uses the supplied excerpts and source index for implementation relationships and leaves unsampled details unasserted.
Main entry points: NovelLayout.tsx Novel workspace · sync.ts Sync client · novelStore.ts Novel state · router.tsx App routing
Components 23
App entry
- App routing
src/router.tsx - Novel library
src/pages/library/LibraryPage.tsx - Novel workspace
src/pages/NovelLayout.tsx
Story planning
- Timeline board
src/pages/board/Board.tsx - Board graph
src/pages/board/useBoardGraph.ts - Board layout
src/pages/board/flow.ts - Board actions
src/store/boardActions.ts - Settings wiki
src/pages/WikiPage.tsx - Wiki categories
src/pages/wiki/categories.ts - Story overview
src/pages/OverviewPage.tsx - Narrative order
src/pages/NarrativePage.tsx - Episode actions
src/store/narrativeActions.ts
Writing workspace
- Manuscript editor
src/pages/ManuscriptPage.tsx - Idea memos
src/pages/MemoPage.tsx
Local data
- Novel state
src/store/novelStore.ts - IndexedDB
src/db/db.ts - Novel backup
src/db/novelExport.ts
Account and sync
- Google account
src/lib/account.ts - Sync client
src/store/sync.ts - Auth worker
worker/auth.ts - Sync worker
worker/sync.ts - Cloud D1
Other components
- Writer
Connections 25
- Writer → App routing: opens app
src/router.tsx - App routing → Novel library: routes to
src/router.tsx - App routing → Novel workspace: routes to
src/router.tsx - Novel workspace → Timeline board: opens tab
- Novel workspace → Settings wiki: opens tab
- Novel workspace → Story overview: opens tab
- Novel workspace → Narrative order: opens tab
- Novel workspace → Manuscript editor: opens tab
- Novel workspace → Idea memos: opens tab
- Timeline board → Board graph: builds view
- Board graph → Board layout: maps items
src/pages/board/useBoardGraph.ts - Timeline board → Board actions: edits items
- Settings wiki → Wiki categories: manages categories
- Narrative order → Episode actions: edits episodes
- Novel library → Novel backup: imports exports
src/pages/library/LibraryPage.tsx - Novel library → Novel state: opens novel
- Novel state → IndexedDB: loads and saves
src/store/novelStore.ts - Board actions → Novel state: updates state
src/store/boardActions.ts - Episode actions → Novel state: updates state
src/store/narrativeActions.ts - Google account → Sync client: controls sync
src/lib/account.ts - Sync client → IndexedDB: reads outbox
src/store/sync.ts - Sync client → Auth worker: uses auth API
- Sync client → Sync worker: syncs changes
- Auth worker → Sync worker: shares auth
worker/index.ts - Sync worker → Cloud D1: reads and writes