Local-First Architecture
Your data never leaves your machine. Indexing, searching, and graph traversal all happen on-device. No cloud, no exfiltration, no telemetry.
Explore capability
Terraphim
Terraphim is a local-first knowledge graph search engine built in Rust and WebAssembly. Your data never leaves your machine. Aho-Corasick pattern matching across role-based knowledge graphs, at native speed.
Nine capabilities the engine ships with today. Each waypoint links to its detailed page.
Your data never leaves your machine. Indexing, searching, and graph traversal all happen on-device. No cloud, no exfiltration, no telemetry.
Explore capabilityDeterministic, explainable graph-based embeddings. No neural vectors, no GPUs. Every match traces back to a concept in the thesaurus.
Explore capabilityRole-configured knowledge graphs with Aho-Corasick multi-pattern matching. Thousands of patterns matched simultaneously in a single pass.
Explore capabilitySearch-first AI agent. Session search across Claude Code and Cursor history, learning capture from failed commands, command rewriting via thesaurus.
Explore capabilityNative Model Context Protocol server. Connect your AI assistant to local knowledge graphs. KG-boosted file search, token tracking, role-based context.
Explore capabilityPre and post tool-use hooks for AI coding assistants. Capture failed commands, inject knowledge graph context, automate learning from sessions.
Explore capabilityOne query, many sources. Search local files, Confluence, Jira, Discourse, email, and global code via grepapp — ranked by the role's knowledge graph.
Explore capabilityFile search augmented with knowledge graph context. Find files by their semantic relationship to domain concepts and role-specific vocabulary.
Explore capabilityWritten in Rust, compiled to WebAssembly. Sub-millisecond search. Memory-safe, thread-safe, running at near-native speed in browser or desktop.
Explore capabilityCurious how it started? Read the origin story — from The Pattern (Redis Hackathon Platinum winner) through Kaggle and Oxford to Terraphim AI.
Feature-by-feature: Terraphim (local) vs typical cloud search products.
| Capability | Terraphim | Cloud |
|---|---|---|
| Runs on your hardware | ||
| Data stays on device | ||
| Works offline | ||
| Zero telemetry | ||
| No account required | ||
| No API key | ||
| Open source | ||
| Knowledge graphs | ||
| MCP integration | ||
| Role-based profiles | ||
| Multi-source indexing | ||
| Token usage tracking | ||
| Vendor lock-in | ||
| Recurring subscription | ||
| Tally | 12 / 2 | 3 / 11 |
What the engine actually does, with numbers from the benchmark suite.
Rust compiled to native or WebAssembly. Aho-Corasick automata match every pattern in a single pass — O(n) in text length, independent of pattern count.
No float vectors, no dense embeddings, no GPU allocation. Rust's zero-cost abstractions, deterministic allocation, graphs held in compressed representations.
All operations execute locally. No network calls for search, indexing, or graph traversal. Your data never leaves the device.
Last measured
from Criterion benchmarks in crates/terraphim_automata/benches.
Run them yourself: cargo bench.
Each role brings its own vocabulary, relationships, and domain expertise.
Infrastructure and operations focused. Monitors system health, manages deployments, navigates operational knowledge spanning runbooks, incident reports, and system documentation.
Design and development focused. Traverses codebases, API documentation, architecture decision records, and technical specifications through domain-specific pattern matching.
Research and intelligence focused. Navigates across datasets, reports, and analytical frameworks. Discovers hidden connections between concepts using multi-pattern graph queries.
One engine. Eight deployment targets. Always local-first.
Install terraphim-agent and terraphim-cli from Cargo, Homebrew, or curl. Native Rust, zero runtime deps.
Native Tauri desktop app. Full system integration, file-system access, offline-first. Separate repository.
TauriREST API for search, config, chat, and document management. Integrates with Confluence, Jira, Discourse, email, local files, and grepapp.
REST APIModel Context Protocol server for Claude, Cursor, and any MCP-capable assistant. Exposes search, role-aware KG context, and token tracking.
MCPKnowledge graph search in your browser, WASM-powered, runs in the extension sandbox. Install now.
WASM@terraphim/autocomplete on npm. Aho-Corasick matching and knowledge-graph autocomplete for Node and browser apps, compiled to WASM.
terraphim-automata on PyPI. Python bindings to the Aho-Corasick automata crate via PyO3. Drop-in for data pipelines and notebooks.
15-20 MB graph footprint runs on Raspberry Pi, edge devices, and modest cloud instances. Docker and Debian packages available from each release.
ARM64 / DebianOne command. No sign-up. No API key. Choose your platform.
Requires WSL. Or download the .zip directly.
Embed Terraphim's autocomplete and knowledge graph engine in your own applications.
Native NAPI bindings for autocomplete and knowledge graph search.
PyO3 bindings for text matching and autocomplete. Python 3.9+.
WASM-powered knowledge graph search in your browser. Coming to Chrome Web Store. Install in developer mode.
Search