How ksksrbiz-arch/graph works
Graph is a personal knowledge-graph visualization system with three coexisting runtime tracks: the v1 static viewer and local ingest tools, a Cloudflare Worker API with cortex capabilities, and the v2 NestJS API with a React scaffold. The main user workflow is ingesting digital sources into graph data, persisting it, then exploring/searching it visually; the v2 API also exposes brain, reasoning, connector-sync, and OAuth capabilities. README statements and indexed source references support the main links; unsampled subsystem details are represented only at documented scope.
Main entry points: worker.js Worker Entry · router.js Cortex API · ingest-panel.js Ingest UI · public-ingest.service.ts Public Ingest
Components 24
v1 Static Product
- Source Ingesters
scripts - Local Server
scripts/serve.mjs - Graph Viewer
web/app.js - Graph Data Client
web/data.js - Ingest UI
web/ingest-panel.js - Connector Runs
web/views/connectors.js
Cloudflare Worker
- Worker Entry
src/worker.js - Text Parser
src/worker/text-parser.js - Graph Persistence
src/worker.js - Cortex API
src/worker/cortex/router.js - Cortex Reasoning
src/worker/cortex/reason.js - Vector Recall
src/worker/cortex/vector.js - Finance API
src/worker/finance/router.js
v2 API
- Public Ingest
apps/api/src/public/public-ingest.service.ts - Knowledge Graph
apps/api/src/graph/graph.service.ts - Brain Services
apps/api/src/brain/brain.service.ts - Reasoning API
apps/api/src/reasoning/reasoning.service.ts - OAuth Service
apps/api/src/oauth/oauth.service.ts - Connector Sync
apps/api/src/sync/sync.orchestrator.ts
Web Clients & Packages
- React App
apps/web/src/App.tsx - Interactive Graph
apps/web/src/graph/GraphView.tsx - Cortex Runtime
packages/cortex/src/cortex - Reasoning Library
packages/reasoning/src
Other components
- User
Connections 24
- User → Source Ingesters: selects sources
README.md - Source Ingesters → Graph Data Client: produces graph
README.md - User → Ingest UI: submits content
README.md - Ingest UI → Connector Runs: runs connector
web/ingest-panel.js - Ingest UI → Graph Data Client: ingests text
web/ingest-panel.js - Graph Data Client → Local Server: requests graph
README.md - Local Server → Graph Viewer: serves viewer
README.md - User → Graph Viewer: explores graph
README.md - User → Worker Entry: sends API requests
README.md - Worker Entry → Text Parser: parses text
src/worker.js - Worker Entry → Graph Persistence: merges and persists
src/worker.js - Worker Entry → Cortex API: routes cortex requests
src/worker.js - Cortex API → Cortex Reasoning: invokes reasoning
src/worker/cortex/router.js - Cortex API → Vector Recall: updates vectors
src/worker/cortex/router.js - Cortex API → Finance API: routes finance requests
README.md - User → React App: uses scaffold
README.md - React App → Interactive Graph: renders graph view
apps/web/src/App.tsx - User → Public Ingest: submits public ingest
README.md - Public Ingest → Knowledge Graph: persists parsed graph
apps/api/src/public/public-ingest.service.ts - Public Ingest → Brain Services: stimulates and reloads
apps/api/src/public/public-ingest.service.ts - User → OAuth Service: connects provider
README.md - Connector Sync → Knowledge Graph: syncs graph sources
README.md - Brain Services → Cortex Runtime: uses neural runtime
apps/api/src/brain/brain.service.ts - Reasoning API → Reasoning Library: uses reasoning algorithms