How satishk01/open-ontology works
Helix Foundry is a local-first data workspace: users connect company data, review a suggested cross-source ontology, then explore metrics or ask questions answered with executed SQL and snapshot citations. Its main flow spans browser areas, API routes and domain services, versioned dataset storage, and isolated DuckDB execution; ontology changes and pipeline definitions can also be reviewed before use. The README documents these capabilities, while sampled code confirms selected API, storage, and executor links. Several feature modules were not sampled, so documented links are cited to the README rather than presented as inspected call chains.
Main entry points: main.tsx Workspace shell · app.ts API application · assistant.ts AI assistant · api.ts Browser API client
Components 22
Workspace experience
- Workspace shell
apps/web/src/main.tsx - Data connections
apps/web/src/areas/data/connections.tsx - Ontology explorer
apps/web/src/areas/ontology/graph.tsx - Home metrics
apps/web/src/areas/workspace/metrics.tsx - Analyst
apps/web/src/areas/analyst/chat.tsx - Change review
apps/web/src/review.tsx - Browser API client
apps/web/src/api.ts
API and domain
- API application
apps/api/src/app.ts - Data routes
apps/api/src/routes/data.ts - Ontology routes
apps/api/src/routes/ontology.ts - Workspace routes
apps/api/src/routes/workspace.ts - Analyst routes
apps/api/src/routes/analyst.ts - AI assistant
apps/api/src/assistant.ts
Data and execution
- Dataset management
apps/api/src/datasets.ts - Snapshot management
apps/api/src/snapshots.ts - HelixDB store
apps/api/src/store.ts - DuckDB executor
services/executor/src/engine.ts
Shared contracts
- Domain schemas
packages/shared/src/index.ts - Pipeline schemas
packages/shared/src/pipelines.ts
Other components
- Local user
- Connected sources
- AI provider
Connections 32
- Local user → Workspace shell: uses
README.md - Workspace shell → Data connections: opens setup
README.md - Workspace shell → Ontology explorer: opens explorer
README.md - Workspace shell → Home metrics: views metrics
README.md - Workspace shell → Analyst: asks questions
README.md - Workspace shell → Change review: reviews changes
README.md - Data connections → Browser API client: sends requests
apps/web/src/areas/data/connections.tsx - Ontology explorer → Browser API client: loads graph
apps/web/src/areas/ontology/graph.tsx - Home metrics → Browser API client: loads metrics
apps/web/src/areas/workspace/metrics.tsx - Analyst → Browser API client: sends questions
README.md - Change review → Browser API client: submits review
README.md - Browser API client → API application: calls API
apps/web/src/api.ts - API application → Data routes: registers routes
apps/api/src/app.ts - API application → Ontology routes: registers routes
apps/api/src/app.ts - API application → Workspace routes: registers routes
apps/api/src/app.ts - API application → Analyst routes: registers routes
apps/api/src/app.ts - Connected sources → Data routes: provides data
README.md - Data routes → Dataset management: imports data
README.md - Dataset management → Snapshot management: versions data
README.md - Snapshot management → DuckDB executor: queries snapshots
apps/api/src/snapshots.ts - DuckDB executor → Snapshot management: writes results
README.md - Ontology routes → HelixDB store: stores ontology
README.md - Workspace routes → AI assistant: invokes assistant
apps/api/src/routes/workspace.ts - Analyst routes → AI assistant: answers questions
README.md - AI assistant → DuckDB executor: executes SQL
apps/api/src/assistant.ts - AI assistant → AI provider: requests completions
README.md - AI assistant → Snapshot management: cites versions
README.md - Data routes → Domain schemas: validates data
- Ontology routes → Domain schemas: uses schemas
- AI assistant → Domain schemas: uses contracts
apps/api/src/assistant.ts - Pipeline schemas → Domain schemas: re-exported by
packages/shared/src/index.ts - API application → Pipeline schemas: accepts pipeline schema