Cairn (Local Hybrid Index)

JSON →
library 1.2.1 ·javascript
verified Jun 7, 2026

Cairn is a local-first, daemon-free hybrid search index over a single SQLite file, combining FTS5 full-text search, vector embeddings (via sqlite-vec), and an AST-based knowledge graph for code and text. Version 1.2.1, latest stable release. It requires Node >=20 and an embedding model (default: Ollama with nomic-embed-text, optional embedded runtime via node-llama-cpp). Key differentiators: all-in-one file storage, no external dependencies beyond Ollama (or self-contained embedded runtime), built-in tree-sitter parsing for code entities and call graphs, MCP server for LLM integration, and RRF fusion for hybrid retrieval. Intended for curated personal knowledge bases, codebase indexing, and RAG with local LLMs.