# novalist-project/novalist-official architecture

> Architecture diagram of the GitHub repository novalist-project/novalist-official, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/novalist-project/novalist-official
- Repository: https://github.com/novalist-project/novalist-official

## Overview

Novalist is an offline-first novel-writing application: authors organize a project, write and revise scenes, build world and plot references, then export or narrate the manuscript. The Electron/React renderer fronts a .NET backend that owns project logic; the backend organizes commands as RPCs around workspace and core services, with project content stored as ordinary files. The README also describes collaboration and extensions as major capabilities. Some subsystem links below reflect README-level product structure; source excerpts are partial, so uncertain implementation calls are omitted.

Main entry points: [`Novalist.Backend/Workspace.cs`](https://github.com/novalist-project/novalist-official/blob/main/Novalist.Backend/Workspace.cs) (Workspace), [`app/src/renderer/src/main.tsx`](https://github.com/novalist-project/novalist-official/blob/main/app/src/renderer/src/main.tsx) (Renderer UI), [`app/src/renderer/src/stores/projectStore.ts`](https://github.com/novalist-project/novalist-official/blob/main/app/src/renderer/src/stores/projectStore.ts) (Project state), [`Novalist.Backend/BackendHost.cs`](https://github.com/novalist-project/novalist-official/blob/main/Novalist.Backend/BackendHost.cs) (Backend host)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Desktop interface"]
  node_renderer["Renderer UI<br/>[main.tsx]"]
  node_projectstate["Project state<br/>[projectStore.ts]"]
  node_writingui["Writing editor"]
end

subgraph group_backend["Backend coordination"]
  node_backend["Backend host<br/>[BackendHost.cs]"]
  node_rpc["RPC commands<br/>[ScenesRpc.cs]"]
  node_workspace["Workspace<br/>[Workspace.cs]"]
end

subgraph group_writing["Writing and planning"]
  node_entities["World entities<br/>[EntityService.cs]"]
  node_analysis["Scene analysis"]
end

subgraph group_project["Project services"]
  node_projectservice["Project storage<br/>[ProjectService.cs]"]
  node_files["File access<br/>[FileService.cs]"]
  node_imports["Manuscript import"]
  node_export["Manuscript export<br/>[ExportService.cs]"]
  node_projectfiles[("Project files<br/>[IFileService.cs]")]
end

subgraph group_capabilities["Extended capabilities"]
  node_collab["Collaboration"]
  node_extensions["Extension manager"]
  node_hostservices["Extension host API<br/>[HostServices.cs]"]
  node_voice["Narration engines<br/>[VoiceEngineRpc.cs]"]
  node_narration["Narration rendering"]
  node_voicecontract["Voice engine SDK"]
end

node_author(("Author"))

node_author -->|"uses"| node_renderer
node_renderer -->|"updates"| node_projectstate
node_projectstate -->|"drives"| node_writingui
node_renderer -->|"requests logic"| node_backend
node_backend -->|"hosts commands"| node_rpc
node_rpc -.->|"coordinates"| node_workspace
node_workspace -->|"creates"| node_projectservice
node_workspace -->|"configures"| node_files
node_projectservice -.->|"uses"| node_projectfiles
node_entities -->|"reads and writes"| node_projectfiles
node_author -->|"imports writing"| node_imports
node_author -->|"builds world"| node_entities
node_author -->|"reviews scenes"| node_analysis
node_author -->|"exports manuscript"| node_export
node_author -->|"collaborates"| node_collab
node_workspace -.->|"supports sessions"| node_collab
node_extensions -->|"initializes with"| node_hostservices
node_voice -->|"renders through"| node_narration
node_narration -->|"dispatches engines"| node_voicecontract

click node_renderer "https://github.com/novalist-project/novalist-official/blob/main/app/src/renderer/src/main.tsx"
click node_projectstate "https://github.com/novalist-project/novalist-official/blob/main/app/src/renderer/src/stores/projectStore.ts"
click node_writingui "https://github.com/novalist-project/novalist-official/blob/main/app/src/renderer/src/views/editor/writingPaneController.ts"
click node_backend "https://github.com/novalist-project/novalist-official/blob/main/Novalist.Backend/BackendHost.cs"
click node_rpc "https://github.com/novalist-project/novalist-official/blob/main/Novalist.Backend/Rpc/ScenesRpc.cs"
click node_workspace "https://github.com/novalist-project/novalist-official/blob/main/Novalist.Backend/Workspace.cs"
click node_projectservice "https://github.com/novalist-project/novalist-official/blob/main/Novalist.Core/Services/ProjectService.cs"
click node_files "https://github.com/novalist-project/novalist-official/blob/main/Novalist.Core/Services/FileService.cs"
click node_entities "https://github.com/novalist-project/novalist-official/blob/main/Novalist.Core/Services/EntityService.cs"
click node_analysis "https://github.com/novalist-project/novalist-official/blob/main/Novalist.Core/Services/SceneAnalysisLexicon.cs"
click node_imports "https://github.com/novalist-project/novalist-official/blob/main/Novalist.Core/Services/ManuscriptReader.cs"
click node_export "https://github.com/novalist-project/novalist-official/blob/main/Novalist.Core/Services/ExportService.cs"
click node_collab "https://github.com/novalist-project/novalist-official/blob/main/Novalist.Backend/Workspace.Collaboration.cs"
click node_extensions "https://github.com/novalist-project/novalist-official/blob/main/Novalist.Backend/Extensions/ExtensionManager.cs"
click node_hostservices "https://github.com/novalist-project/novalist-official/blob/main/Novalist.Backend/Extensions/HostServices.cs"
click node_voice "https://github.com/novalist-project/novalist-official/blob/main/Novalist.Backend/Rpc/VoiceEngineRpc.cs"
click node_narration "https://github.com/novalist-project/novalist-official/blob/main/Novalist.Backend/Rpc/VoiceEngineRpc.Rendering.cs"
click node_voicecontract "https://github.com/novalist-project/novalist-official/blob/main/Novalist.Sdk/Hooks/IVoiceEngineContributor.cs"
click node_projectfiles "https://github.com/novalist-project/novalist-official/blob/main/Novalist.Core/Services/IFileService.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_renderer,node_projectstate,node_writingui toneBlue
class node_backend,node_rpc,node_workspace toneAmber
class node_entities,node_analysis toneMint
class node_projectservice,node_files,node_imports,node_export,node_projectfiles toneRose
class node_collab,node_extensions,node_hostservices,node_voice,node_narration,node_voicecontract,node_author toneIndigo
```

## Components

### Desktop interface

- [Renderer UI](https://github.com/novalist-project/novalist-official/blob/main/app/src/renderer/src/main.tsx): `app/src/renderer/src/main.tsx`
- [Project state](https://github.com/novalist-project/novalist-official/blob/main/app/src/renderer/src/stores/projectStore.ts): `app/src/renderer/src/stores/projectStore.ts`
- [Writing editor](https://github.com/novalist-project/novalist-official/blob/main/app/src/renderer/src/views/editor/writingPaneController.ts): `app/src/renderer/src/views/editor/writingPaneController.ts`

### Backend coordination

- [Backend host](https://github.com/novalist-project/novalist-official/blob/main/Novalist.Backend/BackendHost.cs): `Novalist.Backend/BackendHost.cs`
- [RPC commands](https://github.com/novalist-project/novalist-official/blob/main/Novalist.Backend/Rpc/ScenesRpc.cs): `Novalist.Backend/Rpc/ScenesRpc.cs`
- [Workspace](https://github.com/novalist-project/novalist-official/blob/main/Novalist.Backend/Workspace.cs): `Novalist.Backend/Workspace.cs`

### Writing and planning

- [World entities](https://github.com/novalist-project/novalist-official/blob/main/Novalist.Core/Services/EntityService.cs): `Novalist.Core/Services/EntityService.cs`
- [Scene analysis](https://github.com/novalist-project/novalist-official/blob/main/Novalist.Core/Services/SceneAnalysisLexicon.cs): `Novalist.Core/Services/SceneAnalysisLexicon.cs`

### Project services

- [Project storage](https://github.com/novalist-project/novalist-official/blob/main/Novalist.Core/Services/ProjectService.cs): `Novalist.Core/Services/ProjectService.cs`
- [File access](https://github.com/novalist-project/novalist-official/blob/main/Novalist.Core/Services/FileService.cs): `Novalist.Core/Services/FileService.cs`
- [Manuscript import](https://github.com/novalist-project/novalist-official/blob/main/Novalist.Core/Services/ManuscriptReader.cs): `Novalist.Core/Services/ManuscriptReader.cs`
- [Manuscript export](https://github.com/novalist-project/novalist-official/blob/main/Novalist.Core/Services/ExportService.cs): `Novalist.Core/Services/ExportService.cs`
- [Project files](https://github.com/novalist-project/novalist-official/blob/main/Novalist.Core/Services/IFileService.cs): `Novalist.Core/Services/IFileService.cs`

### Extended capabilities

- [Collaboration](https://github.com/novalist-project/novalist-official/blob/main/Novalist.Backend/Workspace.Collaboration.cs): `Novalist.Backend/Workspace.Collaboration.cs`
- [Extension manager](https://github.com/novalist-project/novalist-official/blob/main/Novalist.Backend/Extensions/ExtensionManager.cs): `Novalist.Backend/Extensions/ExtensionManager.cs`
- [Extension host API](https://github.com/novalist-project/novalist-official/blob/main/Novalist.Backend/Extensions/HostServices.cs): `Novalist.Backend/Extensions/HostServices.cs`
- [Narration engines](https://github.com/novalist-project/novalist-official/blob/main/Novalist.Backend/Rpc/VoiceEngineRpc.cs): `Novalist.Backend/Rpc/VoiceEngineRpc.cs`
- [Narration rendering](https://github.com/novalist-project/novalist-official/blob/main/Novalist.Backend/Rpc/VoiceEngineRpc.Rendering.cs): `Novalist.Backend/Rpc/VoiceEngineRpc.Rendering.cs`
- [Voice engine SDK](https://github.com/novalist-project/novalist-official/blob/main/Novalist.Sdk/Hooks/IVoiceEngineContributor.cs): `Novalist.Sdk/Hooks/IVoiceEngineContributor.cs`

### Other components

- **Author**

## Connections

- Author → Renderer UI: uses (evidence: `README.md`)
- Renderer UI → Project state: updates (evidence: `app/src/renderer/src/stores/projectStore.ts`)
- Project state → Writing editor: drives (evidence: `app/src/renderer/src/views/editor/writingPaneController.ts`)
- Renderer UI → Backend host: requests logic (evidence: `README.md`)
- Backend host → RPC commands: hosts commands (evidence: `README.md`)
- RPC commands → Workspace: coordinates
- Workspace → Project storage: creates (evidence: `Novalist.Backend/Workspace.cs`)
- Workspace → File access: configures (evidence: `Novalist.Backend/Workspace.cs`)
- Project storage → Project files: uses
- World entities → Project files: reads and writes (evidence: `Novalist.Core/Services/EntityService.cs`)
- Author → Manuscript import: imports writing (evidence: `README.md`)
- Author → World entities: builds world (evidence: `README.md`)
- Author → Scene analysis: reviews scenes (evidence: `README.md`)
- Author → Manuscript export: exports manuscript (evidence: `README.md`)
- Author → Collaboration: collaborates (evidence: `README.md`)
- Workspace → Collaboration: supports sessions
- Extension manager → Extension host API: initializes with (evidence: `Novalist.Backend/Extensions/ExtensionManager.cs`)
- Narration engines → Narration rendering: renders through (evidence: `Novalist.Backend/Rpc/VoiceEngineRpc.Rendering.cs`)
- Narration rendering → Voice engine SDK: dispatches engines (evidence: `Novalist.Backend/Rpc/VoiceEngineRpc.Rendering.cs`)
