How meltingbot/zeroneurone works
ZeroNeurone is a local-first investigative analysis workspace: analysts create dossiers, model entities and relationships on an infinite canvas, then inspect and share their work through specialist views, queries, reports, and import/export. Its runtime centers on dossier state backed by IndexedDB and OPFS, with optional encryption and Yjs collaboration. The README documents several capabilities whose implementation was not sampled; those relationships are cited to the README rather than treated as source-verified call chains.
Main entry points: App.tsx Application routing · DossierPage.tsx Dossier workspace · dossierStore.ts Dossier state · Canvas.tsx Graph canvas
Components 28
Workspace and modeling
- Application routing
src/App.tsx - Dossier home
src/pages/HomePage.tsx - Dossier workspace
src/pages/DossierPage.tsx - Graph canvas
src/components/canvas/Canvas.tsx - Dossier state
src/stores/dossierStore.ts - Selection state
src/stores/selectionStore.ts - Dossier tabs
src/stores/tabStore.ts
Analysis and views
- Map view
src/components/map/MapView.tsx - Timeline view
src/components/timeline/TimelineView.tsx - Matrix view
src/components/matrix/MatrixView.tsx - Query builder and results
src/components/panels/QueryBuilderVisual.tsx - Query state
src/stores/queryStore.ts - Query parser and evaluator
src/services/query/evaluator.ts - Full-text search
src/services/searchService.ts - Graph analysis
src/workers/graphWorker.ts - Reports and synthesis
src/services/reportService.ts
Data and protection
- IndexedDB database
src/db/database.ts - Attachment storage
src/services/fileService.ts - Encryption services
src/services/encryption/encryptionService.ts - Encryption state
src/stores/encryptionStore.ts
Import and export
- Import services
src/services/importService.ts - Genealogy import
src/services/genealogy/genealogyImportService.ts - Export services
src/services/exportService.ts
Sharing and extensions
- Sync state
src/stores/syncStore.ts - Yjs synchronization
src/services/syncService.ts - Relay server
relay-server.js - Plugin registry
src/plugins/pluginRegistry.ts
Other components
- Analyst
Connections 33
- Analyst → Application routing: opens
- Application routing → Dossier home: routes to
src/App.tsx - Application routing → Dossier workspace: routes to
src/App.tsx - Analyst → Graph canvas: models entities
- Dossier workspace → Graph canvas: presents
- Dossier workspace → Map view: presents
- Dossier workspace → Timeline view: presents
- Dossier workspace → Matrix view: presents
- Graph canvas → Dossier state: edits dossier
- Graph canvas → Selection state: selects elements
- Dossier workspace → Dossier tabs: manages tabs
- Analyst → Query builder and results: builds query
- Query builder and results → Query state: sets query
src/components/panels/QueryBuilderVisual.tsx - Query state → Query parser and evaluator: evaluates query
src/stores/queryStore.ts - Query state → IndexedDB database: saves queries
src/stores/queryStore.ts - Analyst → Full-text search: searches dossier
- Analyst → Graph analysis: requests analysis
- Analyst → Reports and synthesis: creates synthesis
- Dossier state → IndexedDB database: persists dossier
src/db/database.ts - Dossier state → Attachment storage: manages attachments
src/stores/dossierStore.ts - Attachment storage → IndexedDB database: stores metadata
src/services/fileService.ts - Analyst → Encryption services: unlocks data
- Application routing → Encryption services: unlocks data
src/App.tsx - Application routing → Encryption state: sets key state
src/App.tsx - Analyst → Import services: imports data
- Analyst → Genealogy import: imports genealogy
- Genealogy import → Dossier state: converts records
src/services/genealogy/genealogyImportService.ts - Analyst → Export services: exports dossier
- Dossier state → Yjs synchronization: shares changes
src/stores/dossierStore.ts - Sync state → Yjs synchronization: tracks synchronization
- Yjs synchronization → Relay server: syncs over WebSocket
- Analyst → Plugin registry: uses extensions
- Application routing → Plugin registry: loads plugins
src/App.tsx