Skip to content

jdleo/ontic

Repository files navigation

Ontic

Lint Build Test Test Count React TypeScript Vite pnpm

Ontic is a browser-first, local-first ontology and simulation tool for modeling a situation, asking questions about it, and mutating world state over time.

Screenshot

Ontic screenshot

What It Does

  • Turn a scenario into a structured ontology graph.
  • Ask natural-language questions against the current world state.
  • Apply interventions as versioned mutations.
  • Compare snapshots and probability shifts over time.
  • Persist worlds, history, and settings locally in the browser.

Architecture

flowchart LR
    UI["React App Shell"] --> Store["Zustand Store"]
    Store --> Graph["React Flow Graph Canvas"]
    Store --> Panels["Query / Results / Mutation / History Panels"]
    Store --> Persistence["Dexie + IndexedDB"]
    Store --> QueryFlow["Query Flow"]
    Store --> MutationFlow["Mutation Flow"]
    Store --> WorldCreation["World Creation Flow"]
    QueryFlow --> OpenRouter["OpenRouter Client"]
    MutationFlow --> OpenRouter
    WorldCreation --> OpenRouter
    Store --> Simulation["Simulation Engine / Worker Client"]
    Simulation --> Results["Query Results + Drivers"]
Loading

Stack

  • React
  • TypeScript
  • Vite
  • Tailwind CSS
  • Zustand
  • Dexie / IndexedDB
  • React Flow
  • Zod

Local Setup

pnpm install
pnpm dev

Commands

pnpm dev
pnpm build
pnpm lint
pnpm test
pnpm preview

Notes

  • This app is local-first. Worlds and settings are stored in the browser.
  • OpenRouter is used for parsing, repair, and explanation flows.
  • Product and implementation intent live in SPEC.md and DESIGN.md.

About

Browser-first ontology and game-theory simulator with local graph editing, versioned world states, client-side probabilistic inference, and OpenRouter-powered structured parsing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages