# open-jarvis/openjarvis architecture

> Architecture diagram of the GitHub repository open-jarvis/openjarvis, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/open-jarvis/openjarvis
- Repository: https://github.com/open-jarvis/openjarvis
- Video tour (about a minute): https://gitdiagram.com/open-jarvis/openjarvis/video

## Overview

OpenJarvis is a local-first personal AI framework with a browser/desktop interface, agent runtime, integrations, memory, and evaluation and learning capabilities. The documented user path is to start a chat or configure a preset, connect personal data sources, and run an agent to produce an answer or briefing. The graph preserves those domain stages and major research capabilities. Edges are limited to relationships visible in excerpts or explicitly documented in the README; several backend links remain unverified because their source was not sampled.

Main entry points: [`frontend/src/App.tsx`](https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/App.tsx) (Web and desktop app), [`src/openjarvis/agents/manager.py`](https://github.com/open-jarvis/openjarvis/blob/main/src/openjarvis/agents/manager.py) (Agent manager), [`src/openjarvis/workflow/engine.py`](https://github.com/open-jarvis/openjarvis/blob/main/src/openjarvis/workflow/engine.py) (Workflow engine), [`rust/crates/openjarvis-tools/src/storage`](https://github.com/open-jarvis/openjarvis/tree/main/rust/crates/openjarvis-tools/src/storage) (Memory backends)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_cli["CLI"]
  node_webapp["Web and desktop app<br/>[App.tsx]"]
  node_frontend_chat["Chat experience<br/>[ChatPage.tsx]"]
  node_frontend_agents["Agent management<br/>[AgentsPage.tsx]"]
  node_frontend_sources["Source management"]
  node_frontend_setup["Setup flow<br/>[SetupScreen.tsx]"]
  node_frontend_getstarted["Getting started<br/>[GetStartedPage.tsx]"]
  node_frontend_settings["Settings<br/>[SettingsPage.tsx]"]
  node_frontend_palette["Command palette<br/>[CommandPalette.tsx]"]
  node_frontend_updates["Update checks<br/>[UpdateChecker.tsx]"]
  node_frontend_api["Frontend API client<br/>[api.ts]"]
  node_frontend_state["Frontend state<br/>[store.ts]"]
  node_frontend_analytics["Usage analytics<br/>[analytics.ts]"]
end

subgraph group_runtime["Agent runtime"]
  node_agent_manager["Agent manager<br/>[manager.py]"]
  node_agent_modes["Agent modes"]
  node_tools["Agent tools"]
  node_workflow["Workflow engine<br/>[engine.py]"]
  node_channels["Messaging channels"]
  node_workflow_templates["Workflow templates<br/>[loader.py]"]
end

subgraph group_data["Personal data"]
  node_connectors["Data connectors"]
  node_ingest["Indexing pipeline<br/>[ingest.py]"]
  node_memory["Memory service<br/>[service.py]"]
  node_memory_store[("Memory backends")]
end

subgraph group_platform["Core platform"]
  node_server["Local API server"]
  node_engines["Inference engines"]
  node_events["Event bus<br/>[events.py]"]
  node_security["Security controls"]
  node_rust_bridge["Python bindings<br/>[storage.rs]"]
end

subgraph group_research["Evaluation and learning"]
  node_evals["Evaluation framework"]
  node_telemetry["Telemetry"]
  node_learning["Learning loop"]
end

node_user(("User"))

node_user -->|"starts session"| node_cli
node_user -->|"opens interface"| node_webapp
node_webapp -->|"gates startup"| node_frontend_setup
node_webapp -->|"routes to"| node_frontend_chat
node_webapp -->|"routes to"| node_frontend_agents
node_webapp -->|"routes to"| node_frontend_sources
node_webapp -->|"routes to"| node_frontend_getstarted
node_webapp -->|"routes to"| node_frontend_settings
node_webapp -->|"mounts"| node_frontend_palette
node_webapp -->|"mounts"| node_frontend_updates
node_webapp -->|"fetches data"| node_frontend_api
node_webapp -->|"reads and updates"| node_frontend_state
node_webapp -->|"tracks events"| node_frontend_analytics
node_frontend_api -.->|"calls API"| node_server
node_cli -.->|"starts agents"| node_agent_manager
node_agent_manager -->|"manages modes"| node_agent_modes
node_agent_manager -.->|"requests inference"| node_engines
node_agent_manager -.->|"invokes tools"| node_tools
node_agent_manager -.->|"uses memory"| node_memory
node_connectors -.->|"indexes content"| node_ingest
node_ingest -->|"stores chunks"| node_memory_store
node_memory -.->|"uses backends"| node_memory_store
node_workflow -->|"publishes events"| node_events
node_workflow -->|"loads templates"| node_workflow_templates
node_workflow -->|"executes tool calls"| node_tools
node_agent_manager -.->|"applies controls"| node_security
node_agent_modes -.->|"supports messaging"| node_channels
node_evals -.->|"measures efficiency"| node_telemetry
node_learning -->|"uses trace data"| node_telemetry
node_rust_bridge -->|"wraps backends"| node_memory_store

click node_cli "https://github.com/open-jarvis/openjarvis/tree/main/src/openjarvis/cli"
click node_webapp "https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/App.tsx"
click node_frontend_chat "https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/pages/ChatPage.tsx"
click node_frontend_agents "https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/pages/AgentsPage.tsx"
click node_frontend_sources "https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/pages/DataSourcesPage.tsx"
click node_frontend_setup "https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/components/SetupScreen.tsx"
click node_frontend_getstarted "https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/pages/GetStartedPage.tsx"
click node_frontend_settings "https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/pages/SettingsPage.tsx"
click node_frontend_palette "https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/components/CommandPalette.tsx"
click node_frontend_updates "https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/components/Desktop/UpdateChecker.tsx"
click node_frontend_api "https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/lib/api.ts"
click node_frontend_state "https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/lib/store.ts"
click node_frontend_analytics "https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/lib/analytics.ts"
click node_server "https://github.com/open-jarvis/openjarvis/tree/main/src/openjarvis/server"
click node_agent_manager "https://github.com/open-jarvis/openjarvis/blob/main/src/openjarvis/agents/manager.py"
click node_agent_modes "https://github.com/open-jarvis/openjarvis/tree/main/src/openjarvis/agents"
click node_engines "https://github.com/open-jarvis/openjarvis/tree/main/src/openjarvis/engine"
click node_tools "https://github.com/open-jarvis/openjarvis/tree/main/rust/crates/openjarvis-tools/src"
click node_connectors "https://github.com/open-jarvis/openjarvis/tree/main/src/openjarvis/connectors"
click node_ingest "https://github.com/open-jarvis/openjarvis/blob/main/src/openjarvis/tools/storage/ingest.py"
click node_memory "https://github.com/open-jarvis/openjarvis/blob/main/src/openjarvis/memory/service.py"
click node_memory_store "https://github.com/open-jarvis/openjarvis/tree/main/rust/crates/openjarvis-tools/src/storage"
click node_workflow "https://github.com/open-jarvis/openjarvis/blob/main/src/openjarvis/workflow/engine.py"
click node_events "https://github.com/open-jarvis/openjarvis/blob/main/src/openjarvis/core/events.py"
click node_security "https://github.com/open-jarvis/openjarvis/tree/main/rust/crates/openjarvis-security/src"
click node_channels "https://github.com/open-jarvis/openjarvis/tree/main/src/openjarvis/channels"
click node_evals "https://github.com/open-jarvis/openjarvis/tree/main/src/openjarvis/evals"
click node_telemetry "https://github.com/open-jarvis/openjarvis/tree/main/src/openjarvis/telemetry"
click node_learning "https://github.com/open-jarvis/openjarvis/tree/main/src/openjarvis/learning"
click node_rust_bridge "https://github.com/open-jarvis/openjarvis/blob/main/rust/crates/openjarvis-python/src/storage.rs"
click node_workflow_templates "https://github.com/open-jarvis/openjarvis/blob/main/src/openjarvis/tools/templates/loader.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_webapp,node_frontend_chat,node_frontend_agents,node_frontend_sources,node_frontend_setup,node_frontend_getstarted,node_frontend_settings,node_frontend_palette,node_frontend_updates,node_frontend_api,node_frontend_state,node_frontend_analytics,node_user toneBlue
class node_agent_manager,node_agent_modes,node_tools,node_workflow,node_channels,node_workflow_templates toneAmber
class node_connectors,node_ingest,node_memory,node_memory_store toneMint
class node_server,node_engines,node_events,node_security,node_rust_bridge toneRose
class node_evals,node_telemetry,node_learning toneIndigo
```

## Components

### User experience

- [CLI](https://github.com/open-jarvis/openjarvis/tree/main/src/openjarvis/cli): `src/openjarvis/cli`
- [Web and desktop app](https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Chat experience](https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/pages/ChatPage.tsx): `frontend/src/pages/ChatPage.tsx`
- [Agent management](https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/pages/AgentsPage.tsx): `frontend/src/pages/AgentsPage.tsx`
- [Source management](https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/pages/DataSourcesPage.tsx): `frontend/src/pages/DataSourcesPage.tsx`
- [Setup flow](https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/components/SetupScreen.tsx): `frontend/src/components/SetupScreen.tsx`
- [Getting started](https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/pages/GetStartedPage.tsx): `frontend/src/pages/GetStartedPage.tsx`
- [Settings](https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/pages/SettingsPage.tsx): `frontend/src/pages/SettingsPage.tsx`
- [Command palette](https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/components/CommandPalette.tsx): `frontend/src/components/CommandPalette.tsx`
- [Update checks](https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/components/Desktop/UpdateChecker.tsx): `frontend/src/components/Desktop/UpdateChecker.tsx`
- [Frontend API client](https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/lib/api.ts): `frontend/src/lib/api.ts`
- [Frontend state](https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/lib/store.ts): `frontend/src/lib/store.ts`
- [Usage analytics](https://github.com/open-jarvis/openjarvis/blob/main/frontend/src/lib/analytics.ts): `frontend/src/lib/analytics.ts`

### Agent runtime

- [Agent manager](https://github.com/open-jarvis/openjarvis/blob/main/src/openjarvis/agents/manager.py): `src/openjarvis/agents/manager.py`
- [Agent modes](https://github.com/open-jarvis/openjarvis/tree/main/src/openjarvis/agents): `src/openjarvis/agents`
- [Agent tools](https://github.com/open-jarvis/openjarvis/tree/main/rust/crates/openjarvis-tools/src): `rust/crates/openjarvis-tools/src`
- [Workflow engine](https://github.com/open-jarvis/openjarvis/blob/main/src/openjarvis/workflow/engine.py): `src/openjarvis/workflow/engine.py`
- [Messaging channels](https://github.com/open-jarvis/openjarvis/tree/main/src/openjarvis/channels): `src/openjarvis/channels`
- [Workflow templates](https://github.com/open-jarvis/openjarvis/blob/main/src/openjarvis/tools/templates/loader.py): `src/openjarvis/tools/templates/loader.py`

### Personal data

- [Data connectors](https://github.com/open-jarvis/openjarvis/tree/main/src/openjarvis/connectors): `src/openjarvis/connectors`
- [Indexing pipeline](https://github.com/open-jarvis/openjarvis/blob/main/src/openjarvis/tools/storage/ingest.py): `src/openjarvis/tools/storage/ingest.py`
- [Memory service](https://github.com/open-jarvis/openjarvis/blob/main/src/openjarvis/memory/service.py): `src/openjarvis/memory/service.py`
- [Memory backends](https://github.com/open-jarvis/openjarvis/tree/main/rust/crates/openjarvis-tools/src/storage): `rust/crates/openjarvis-tools/src/storage`

### Core platform

- [Local API server](https://github.com/open-jarvis/openjarvis/tree/main/src/openjarvis/server): `src/openjarvis/server`
- [Inference engines](https://github.com/open-jarvis/openjarvis/tree/main/src/openjarvis/engine): `src/openjarvis/engine`
- [Event bus](https://github.com/open-jarvis/openjarvis/blob/main/src/openjarvis/core/events.py): `src/openjarvis/core/events.py`
- [Security controls](https://github.com/open-jarvis/openjarvis/tree/main/rust/crates/openjarvis-security/src): `rust/crates/openjarvis-security/src`
- [Python bindings](https://github.com/open-jarvis/openjarvis/blob/main/rust/crates/openjarvis-python/src/storage.rs): `rust/crates/openjarvis-python/src/storage.rs`

### Evaluation and learning

- [Evaluation framework](https://github.com/open-jarvis/openjarvis/tree/main/src/openjarvis/evals): `src/openjarvis/evals`
- [Telemetry](https://github.com/open-jarvis/openjarvis/tree/main/src/openjarvis/telemetry): `src/openjarvis/telemetry`
- [Learning loop](https://github.com/open-jarvis/openjarvis/tree/main/src/openjarvis/learning): `src/openjarvis/learning`

### Other components

- **User**

## Connections

- User → CLI: starts session (evidence: `README.md`)
- User → Web and desktop app: opens interface (evidence: `README.md`)
- Web and desktop app → Setup flow: gates startup (evidence: `frontend/src/App.tsx`)
- Web and desktop app → Chat experience: routes to (evidence: `frontend/src/App.tsx`)
- Web and desktop app → Agent management: routes to (evidence: `frontend/src/App.tsx`)
- Web and desktop app → Source management: routes to (evidence: `frontend/src/App.tsx`)
- Web and desktop app → Getting started: routes to (evidence: `frontend/src/App.tsx`)
- Web and desktop app → Settings: routes to (evidence: `frontend/src/App.tsx`)
- Web and desktop app → Command palette: mounts (evidence: `frontend/src/App.tsx`)
- Web and desktop app → Update checks: mounts (evidence: `frontend/src/App.tsx`)
- Web and desktop app → Frontend API client: fetches data (evidence: `frontend/src/App.tsx`)
- Web and desktop app → Frontend state: reads and updates (evidence: `frontend/src/App.tsx`)
- Web and desktop app → Usage analytics: tracks events (evidence: `frontend/src/App.tsx`)
- Frontend API client → Local API server: calls API
- CLI → Agent manager: starts agents
- Agent manager → Agent modes: manages modes (evidence: `README.md`)
- Agent manager → Inference engines: requests inference
- Agent manager → Agent tools: invokes tools
- Agent manager → Memory service: uses memory
- Data connectors → Indexing pipeline: indexes content
- Indexing pipeline → Memory backends: stores chunks
- Memory service → Memory backends: uses backends
- Workflow engine → Event bus: publishes events (evidence: `src/openjarvis/workflow/engine.py`)
- Workflow engine → Workflow templates: loads templates (evidence: `src/openjarvis/workflow/engine.py`)
- Workflow engine → Agent tools: executes tool calls (evidence: `src/openjarvis/workflow/engine.py`)
- Agent manager → Security controls: applies controls
- Agent modes → Messaging channels: supports messaging
- Evaluation framework → Telemetry: measures efficiency (evidence: `README.md`)
- Learning loop → Telemetry: uses trace data (evidence: `README.md`)
- Python bindings → Memory backends: wraps backends (evidence: `rust/crates/openjarvis-python/src/storage.rs`)
