How 0xranx/opencontext works
OpenContext is a persistent context and knowledge store for people and AI coding agents. Users or agents create and organize documents, then retrieve them through search or stable links; the CLI, MCP tools, web UI, and desktop app expose that library. Desktop and web interfaces also provide document editing, while the product includes an agent GUI that reuses installed coding-agent CLIs. The graph reflects documented capabilities and sampled wiring; unsampled CLI, native-command, and agent-session internals are represented conservatively.
Main entry points: index.js Context Library · App.jsx Web UI · server.js Web API · main.rs Desktop Shell
Components 20
User Interfaces
- oc CLI
bin/oc.js - Web UI
src/ui/src/App.jsx - Web API
src/ui/server.js - Desktop Shell
src-tauri/src/main.rs - Mobile App
src-ios/App.js
Agent Access
Knowledge Management
- Context Library
src/core/store/index.js - Ideas Storage
src/ui/src/services/idea/LocalStorageAdapter.js - Document Editor
src/ui/src/App.jsx
Search
- Search API
src/core/search/index.js - Search Engine
crates/opencontext-core/src/search/searcher.rs - Indexing
crates/opencontext-core/src/search/indexer.rs - Index Sync
crates/opencontext-core/src/search/index_sync.rs
Native Runtime
- Core Runtime
crates/opencontext-core/src/lib.rs - Native Bridge
crates/opencontext-node/src/lib.rs
Other components
- User
- Coding Agent
- Agent CLI
Connections 23
- User → oc CLI: manages library
- oc CLI → Context Library: reads and writes
- User → Web UI: browses and edits
- Web UI → Web API: calls API
- Web API → Context Library: reads and writes
- Web API → Search API: runs search
- Web UI → Document Editor: edits documents
- User → Desktop Shell: uses desktop app
- Desktop Shell → Core Runtime: initializes
- Desktop Shell → Index Sync: starts sync
- User → Mobile App: uses mobile app
- Mobile App → Ideas Storage: manages ideas
- Coding Agent → MCP Tools: calls tools
- MCP Tools → Context Library: reads and writes
- MCP Tools → Search API: searches documents
- User → Agent GUI: starts agent session
- Agent GUI → Agent RPC: requests agent actions
- Agent RPC → Agent CLI: reuses CLI
- Search API → Search Engine: searches index
- Indexing → Context Library: reads documents
- Index Sync → Indexing: syncs index
- Core Runtime → Context Library: manages context
- Native Bridge → Core Runtime: exposes core