README
Process for extracting packages/graph from the research monorepo and publishing Lattice as an opensource npm package.
Key Value Propositions
- Uses Claude Code subscription - Entity extraction runs through Claude Code, so users don’t pay for a separate LLM API
- Two-command workflow -
/researchfinds or creates docs,/graph-syncextracts entities and syncs automatically - Zero external dependencies - Embedded DuckDB, one API key (Voyage AI for embeddings only), 2 minutes to start
The Workflow
/research "topic" # Find existing docs or create new research/graph-sync # Extract entities & sync to databaselattice search "query" # Semantic search your knowledge baseDocuments
| Document | Description |
|---|---|
| Architecture | Technical deep-dive: NestJS structure, DuckDB schema, sync workflow, Claude Code integration |
| CLI Search Commands | Technical comparison of lattice CLI search commands: semantic search, SQL queries, relationship lookup |
| Frontmatter-Free Proposal | Historical proposal to refactor Lattice to eliminate YAML frontmatter (now implemented) |
| LightRAG Comparison | Comparison with LightRAG: databases, UX, architecture |
| Repository Initialization | Guide for setting up the Lattice repository |
Architecture Summary
- Database: Embedded DuckDB (zero Docker, zero Redis)
- Vector Search: DuckDB VSS extension (HNSW index, cosine similarity)
- Embeddings: Voyage AI (voyage-3-lite, 512 dimensions)
- Runtime: Bun + NestJS + nest-commander
- No frontmatter: Entities extracted directly to database, markdown stays clean
Related Research
- Local Knowledge Graph - Background on the implementation