How knee2420/novelbiblewiki works
My-Wiki is an Electron/web writing-world wiki for managing novel entities, scenes, episodes, plots, and AI-assisted analysis. The main workflow is to open an archive or dashboard, inspect or edit wiki content, and use AI tools to analyze scenes or characters and review proposed entities. The graph preserves the documented UI domains and core schema/graph modules. Some renderer-to-main IPC wiring and unsampled feature internals cannot be verified from the excerpts, so those links are omitted or marked unverified.
Main entry points: App.tsx Application router · aiHandler.ts AI request handlers · CharacterAnalysisEngine.tsx Character analysis · main.tsx Renderer bootstrap
Components 26
App shell
- Application router
my-wiki/src/renderer/src/App.tsx - Wiki layout
my-wiki/src/renderer/src/components/Layout/WikiLayout.tsx - Renderer bootstrap
my-wiki/src/renderer/src/main.tsx
Wiki workspace
- Wiki archives
my-wiki/src/renderer/src/pages/GenericArchive.tsx - Wiki entry detail
my-wiki/src/renderer/src/components/Common/WikiDetailModal.tsx - Create entry
my-wiki/src/renderer/src/components/Common/CreateNewModal.tsx - Wiki data types
my-wiki/src/shared/types/wiki.ts - Name resolution
my-wiki/src/renderer/src/utils/nameResolver.ts - Home dashboard
my-wiki/src/renderer/src/pages/HomeDashboard.tsx
Story planning
- Plot dashboard
my-wiki/src/renderer/src/pages/PlotDashboard.tsx - Episode archive
my-wiki/src/renderer/src/pages/EpisodeArchive.tsx - Episode canvas
my-wiki/src/renderer/src/components/Episode/EpisodeCanvas.tsx - Relation board
my-wiki/src/renderer/src/pages/RelationBoard.tsx
AI tools
- Character analysis
my-wiki/src/renderer/src/components/Analysis/CharacterAnalysisEngine.tsx - Character growth tree
my-wiki/src/renderer/src/components/Analysis/CharacterGrowthTree.tsx - Analysis schema types
my-wiki/src/renderer/src/types/analysis-schema.ts - AI schema settings
my-wiki/src/renderer/src/pages/AISchemaPage.tsx - Schema wizard
my-wiki/src/renderer/src/components/Analysis/SchemaWizard.tsx
Persistence and runtime
- AI request handlers
my-wiki/src/main/handlers/aiHandler.ts - Prompt builder
my-wiki/src/main/lib/ai/promptBuilder.ts - Gemini schemas
my-wiki/src/main/lib/ai/geminiSchema.ts - Wiki file service
my-wiki/src/main/services/wikiService.ts - Character file service
my-wiki/src/main/services/characterService.ts - Analysis handlers
my-wiki/src/main/handlers/analysisHandler.ts - Web API adapter
my-wiki/src/renderer/src/services/webWikiService.ts
Other components
- Writer
Connections 24
- Writer → Application router: uses
- Application router → Wiki layout: renders
my-wiki/src/renderer/src/App.tsx - Application router → Home dashboard: routes to
my-wiki/src/renderer/src/App.tsx - Application router → Plot dashboard: routes to
my-wiki/src/renderer/src/App.tsx - Application router → Episode archive: routes to
my-wiki/src/renderer/src/App.tsx - Application router → Relation board: routes to
my-wiki/src/renderer/src/App.tsx - Application router → Wiki archives: routes to
my-wiki/src/renderer/src/App.tsx - Application router → Wiki entry detail: renders
my-wiki/src/renderer/src/App.tsx - Episode archive → Episode canvas: renders
my-wiki/src/renderer/src/pages/EpisodeArchive.tsx - Wiki entry detail → Character growth tree: renders
my-wiki/src/renderer/src/components/Common/WikiDetailModal.tsx - Relation board → Name resolution: resolves names
my-wiki/src/renderer/src/pages/RelationBoard.tsx - Character analysis → Analysis schema types: uses
- AI schema settings → Schema wizard: renders
my-wiki/src/renderer/src/pages/AISchemaPage.tsx - Application router → Character analysis: opens analysis
- Application router → AI schema settings: routes to
my-wiki/src/renderer/src/App.tsx - Renderer bootstrap → Application router: renders
my-wiki/src/renderer/src/main.tsx - Renderer bootstrap → Web API adapter: installs adapter
my-wiki/src/renderer/src/main.tsx - Application router → Web API adapter: requests wiki data
- AI request handlers → Prompt builder: builds prompts
my-wiki/src/main/handlers/aiHandler.ts - Prompt builder → Gemini schemas: uses schema
my-wiki/src/main/lib/ai/promptBuilder.ts - AI request handlers → Wiki file service: updates wiki
my-wiki/src/main/handlers/aiHandler.ts - AI request handlers → Character file service: updates characters
my-wiki/src/main/handlers/aiHandler.ts - Analysis handlers → Writer: calls Gemini
- Character analysis → Analysis handlers: requests analysis