# fsyyzz/omniview-open architecture

> Architecture diagram of the GitHub repository fsyyzz/omniview-open, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fsyyzz/omniview-open
- Repository: https://github.com/fsyyzz/omniview-open

## Overview

OmniView is an offline, multi-format document viewing and editing workbench delivered as both a standalone web app and a VS Code extension. Users open or upload a file, choose an editor/view mode, and receive a format-specific rendering or editing experience; workbench settings and files can persist locally. The graph captures that main route plus documented Markdown, diagram, office, configuration, and scaffold capabilities. Source excerpts are partial, so some capability links rely on the README rather than inspected implementation.

Main entry points: [`src/app/App.tsx`](https://github.com/fsyyzz/omniview-open/blob/main/src/app/App.tsx) (Workbench app), [`src/features/viewers/ViewerRenderer.tsx`](https://github.com/fsyyzz/omniview-open/blob/main/src/features/viewers/ViewerRenderer.tsx) (Format router), [`src/extension/editorProvider.ts`](https://github.com/fsyyzz/omniview-open/blob/main/src/extension/editorProvider.ts) (Custom editor provider), [`src/features/viewers/lib/dddModelingEngine.ts`](https://github.com/fsyyzz/omniview-open/blob/main/src/features/viewers/lib/dddModelingEngine.ts) (DDD modeling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry points"]
  node_webapp["Web app bootstrap<br/>[main.tsx]"]
  node_app["Workbench app<br/>[App.tsx]"]
end

subgraph group_workspace["Workbench and persistence"]
  node_settings[("Workbench settings<br/>[settingsStorage.ts]")]
  node_file_storage["Workspace file gateway<br/>[fileStorage.ts]"]
  node_indexeddb[("IndexedDB storage")]
  node_workbench_ui["Workbench interface"]
  node_scaffold["Scaffold exporter"]
  node_settings_modal["Settings interface"]
end

subgraph group_viewing["Format viewing and editing"]
  node_plugin_view["Document view shell"]
  node_renderer["Format router<br/>[ViewerRenderer.tsx]"]
  node_driver_registry["Driver registry<br/>[driverRegistry.tsx]"]
  node_markdown["Markdown pipeline"]
  node_ddd["DDD modeling"]
  node_domain_story["Domain story engine"]
  node_diagram_playback["Diagram playback"]
  node_office_engines["Office document engines"]
end

subgraph group_platform["Host integration"]
  node_extension["VS Code extension<br/>[extension.ts]"]
  node_editor_provider["Custom editor provider<br/>[editorProvider.ts]"]
  node_webview["Webview document<br/>[webviewHtml.ts]"]
  node_file_bridge["File bridge<br/>[fileBridge.ts]"]
  node_print_bridge["Print bridge<br/>[printBridge.ts]"]
end

node_user(("Workbench user"))

node_user -->|"opens workbench"| node_webapp
node_webapp -->|"mounts"| node_app
node_user -->|"opens file"| node_extension
node_extension -->|"registers provider"| node_editor_provider
node_editor_provider -->|"creates view"| node_webview
node_editor_provider -->|"uses bridge"| node_file_bridge
node_editor_provider -->|"uses bridge"| node_print_bridge
node_app -->|"renders workspace"| node_workbench_ui
node_app -->|"opens document view"| node_plugin_view
node_app -->|"loads and saves"| node_settings
node_app -->|"persists files"| node_file_storage
node_file_storage -->|"reads and writes"| node_indexeddb
node_workbench_ui -.->|"configures"| node_settings_modal
node_app -->|"opens exporter"| node_scaffold
node_plugin_view -->|"renders document"| node_renderer
node_renderer -->|"selects driver"| node_driver_registry
node_renderer -.->|"renders Markdown"| node_markdown
node_renderer -.->|"renders diagrams"| node_ddd
node_ddd -->|"uses engine"| node_domain_story
node_ddd -.->|"uses playback"| node_diagram_playback
node_renderer -.->|"renders office files"| node_office_engines
node_renderer -->|"routes formats"| node_driver_registry

click node_webapp "https://github.com/fsyyzz/omniview-open/blob/main/src/main.tsx"
click node_app "https://github.com/fsyyzz/omniview-open/blob/main/src/app/App.tsx"
click node_extension "https://github.com/fsyyzz/omniview-open/blob/main/src/extension/extension.ts"
click node_editor_provider "https://github.com/fsyyzz/omniview-open/blob/main/src/extension/editorProvider.ts"
click node_webview "https://github.com/fsyyzz/omniview-open/blob/main/src/extension/webviewHtml.ts"
click node_file_bridge "https://github.com/fsyyzz/omniview-open/blob/main/src/extension/fileBridge.ts"
click node_print_bridge "https://github.com/fsyyzz/omniview-open/blob/main/src/extension/printBridge.ts"
click node_settings "https://github.com/fsyyzz/omniview-open/blob/main/src/shared/lib/settingsStorage.ts"
click node_file_storage "https://github.com/fsyyzz/omniview-open/blob/main/src/shared/lib/fileStorage.ts"
click node_indexeddb "https://github.com/fsyyzz/omniview-open/blob/main/src/shared/lib/indexedDbStorage.ts"
click node_workbench_ui "https://github.com/fsyyzz/omniview-open/blob/main/src/features/workbench/components/EditorWorkspace.tsx"
click node_scaffold "https://github.com/fsyyzz/omniview-open/blob/main/src/features/scaffold/ScaffoldExporter.tsx"
click node_plugin_view "https://github.com/fsyyzz/omniview-open/blob/main/src/features/viewers/PluginDocumentView.tsx"
click node_renderer "https://github.com/fsyyzz/omniview-open/blob/main/src/features/viewers/ViewerRenderer.tsx"
click node_driver_registry "https://github.com/fsyyzz/omniview-open/blob/main/src/features/viewers/lib/driverRegistry.tsx"
click node_markdown "https://github.com/fsyyzz/omniview-open/blob/main/src/features/viewers/hooks/useMarkdownAstPipeline.ts"
click node_ddd "https://github.com/fsyyzz/omniview-open/blob/main/src/features/viewers/lib/dddModelingEngine.ts"
click node_domain_story "https://github.com/fsyyzz/omniview-open/blob/main/src/features/viewers/lib/domainStoryEngine.ts"
click node_diagram_playback "https://github.com/fsyyzz/omniview-open/blob/main/src/features/viewers/lib/diagramPlaybackEngine.ts"
click node_office_engines "https://github.com/fsyyzz/omniview-open/tree/main/src/features/viewers/lib"
click node_settings_modal "https://github.com/fsyyzz/omniview-open/blob/main/src/features/workbench/components/WorkbenchSettingsModal.tsx"

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_webapp,node_app,node_user toneBlue
class node_settings,node_file_storage,node_indexeddb,node_workbench_ui,node_scaffold,node_settings_modal toneAmber
class node_plugin_view,node_renderer,node_driver_registry,node_markdown,node_ddd,node_domain_story,node_diagram_playback,node_office_engines toneMint
class node_extension,node_editor_provider,node_webview,node_file_bridge,node_print_bridge toneRose
```

## Components

### App entry points

- [Web app bootstrap](https://github.com/fsyyzz/omniview-open/blob/main/src/main.tsx): `src/main.tsx`
- [Workbench app](https://github.com/fsyyzz/omniview-open/blob/main/src/app/App.tsx): `src/app/App.tsx`

### Workbench and persistence

- [Workbench settings](https://github.com/fsyyzz/omniview-open/blob/main/src/shared/lib/settingsStorage.ts): `src/shared/lib/settingsStorage.ts`
- [Workspace file gateway](https://github.com/fsyyzz/omniview-open/blob/main/src/shared/lib/fileStorage.ts): `src/shared/lib/fileStorage.ts`
- [IndexedDB storage](https://github.com/fsyyzz/omniview-open/blob/main/src/shared/lib/indexedDbStorage.ts): `src/shared/lib/indexedDbStorage.ts`
- [Workbench interface](https://github.com/fsyyzz/omniview-open/blob/main/src/features/workbench/components/EditorWorkspace.tsx): `src/features/workbench/components/EditorWorkspace.tsx`
- [Scaffold exporter](https://github.com/fsyyzz/omniview-open/blob/main/src/features/scaffold/ScaffoldExporter.tsx): `src/features/scaffold/ScaffoldExporter.tsx`
- [Settings interface](https://github.com/fsyyzz/omniview-open/blob/main/src/features/workbench/components/WorkbenchSettingsModal.tsx): `src/features/workbench/components/WorkbenchSettingsModal.tsx`

### Format viewing and editing

- [Document view shell](https://github.com/fsyyzz/omniview-open/blob/main/src/features/viewers/PluginDocumentView.tsx): `src/features/viewers/PluginDocumentView.tsx`
- [Format router](https://github.com/fsyyzz/omniview-open/blob/main/src/features/viewers/ViewerRenderer.tsx): `src/features/viewers/ViewerRenderer.tsx`
- [Driver registry](https://github.com/fsyyzz/omniview-open/blob/main/src/features/viewers/lib/driverRegistry.tsx): `src/features/viewers/lib/driverRegistry.tsx`
- [Markdown pipeline](https://github.com/fsyyzz/omniview-open/blob/main/src/features/viewers/hooks/useMarkdownAstPipeline.ts): `src/features/viewers/hooks/useMarkdownAstPipeline.ts`
- [DDD modeling](https://github.com/fsyyzz/omniview-open/blob/main/src/features/viewers/lib/dddModelingEngine.ts): `src/features/viewers/lib/dddModelingEngine.ts`
- [Domain story engine](https://github.com/fsyyzz/omniview-open/blob/main/src/features/viewers/lib/domainStoryEngine.ts): `src/features/viewers/lib/domainStoryEngine.ts`
- [Diagram playback](https://github.com/fsyyzz/omniview-open/blob/main/src/features/viewers/lib/diagramPlaybackEngine.ts): `src/features/viewers/lib/diagramPlaybackEngine.ts`
- [Office document engines](https://github.com/fsyyzz/omniview-open/tree/main/src/features/viewers/lib): `src/features/viewers/lib`

### Host integration

- [VS Code extension](https://github.com/fsyyzz/omniview-open/blob/main/src/extension/extension.ts): `src/extension/extension.ts`
- [Custom editor provider](https://github.com/fsyyzz/omniview-open/blob/main/src/extension/editorProvider.ts): `src/extension/editorProvider.ts`
- [Webview document](https://github.com/fsyyzz/omniview-open/blob/main/src/extension/webviewHtml.ts): `src/extension/webviewHtml.ts`
- [File bridge](https://github.com/fsyyzz/omniview-open/blob/main/src/extension/fileBridge.ts): `src/extension/fileBridge.ts`
- [Print bridge](https://github.com/fsyyzz/omniview-open/blob/main/src/extension/printBridge.ts): `src/extension/printBridge.ts`

### Other components

- **Workbench user**

## Connections

- Workbench user → Web app bootstrap: opens workbench (evidence: `README.md`)
- Web app bootstrap → Workbench app: mounts (evidence: `src/main.tsx`)
- Workbench user → VS Code extension: opens file (evidence: `README.md`)
- VS Code extension → Custom editor provider: registers provider (evidence: `src/extension/extension.ts`)
- Custom editor provider → Webview document: creates view (evidence: `src/extension/editorProvider.ts`)
- Custom editor provider → File bridge: uses bridge (evidence: `src/extension/editorProvider.ts`)
- Custom editor provider → Print bridge: uses bridge (evidence: `src/extension/editorProvider.ts`)
- Workbench app → Workbench interface: renders workspace (evidence: `src/app/App.tsx`)
- Workbench app → Document view shell: opens document view (evidence: `src/app/App.tsx`)
- Workbench app → Workbench settings: loads and saves (evidence: `src/app/App.tsx`)
- Workbench app → Workspace file gateway: persists files (evidence: `src/app/App.tsx`)
- Workspace file gateway → IndexedDB storage: reads and writes (evidence: `src/shared/lib/fileStorage.ts`)
- Workbench interface → Settings interface: configures
- Workbench app → Scaffold exporter: opens exporter (evidence: `src/app/App.tsx`)
- Document view shell → Format router: renders document (evidence: `src/features/viewers/PluginDocumentView.tsx`)
- Format router → Driver registry: selects driver (evidence: `src/features/viewers/ViewerRenderer.tsx`)
- Format router → Markdown pipeline: renders Markdown (evidence: `README.md`)
- Format router → DDD modeling: renders diagrams (evidence: `README.md`)
- DDD modeling → Domain story engine: uses engine (evidence: `src/features/viewers/lib/dddModelingEngine.ts`)
- DDD modeling → Diagram playback: uses playback (evidence: `src/features/viewers/lib/dddModelingEngine.ts`)
- Format router → Office document engines: renders office files (evidence: `README.md`)
- Format router → Driver registry: routes formats (evidence: `src/features/viewers/ViewerRenderer.tsx`)
