sqlite-muninn is an advanced SQLite extension for agentic memory and knowledge graph primitives including HNSW vector search, graph traversal (BFS, DFS, shortest path), community detection (Leiden), Node2Vec embeddings, and native GGUF LLM model loading via llama.cpp. Current version is 0.4.0 with active monthly releases. It is zero-dependency, SIMD-accelerated (ARM NEON, x86 SSE), and ships TypeScript types. Key differentiators: combines vector search, graph analytics, and LLM inference in a single SQLite extension without external services.
npm install sqlite-muninnNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows loading the extension, creating HNSW vector index, inserting vectors, performing nearest neighbor search, graph BFS traversal, and Node2Vec embedding generation in SQLite.
Use sqliteMuninn.path instead of sqliteMuninn.extensionPath when loading the extension.
Use knn_by_vector(vector, k) instead of knn_by_vector(k, vector).
Pass the table name only; for custom queries, use the programmatic API graphTraverse() instead.
No fix needed, but be aware of performance variability on non-SIMD CPUs.
Update queries to reference 'embeddings' table or rename table after creation.
Install the package: npm install sqlite-muninn. If using CommonJS, use dynamic import: import('sqlite-muninn').then(mod => ...) or switch to ESM.Ensure the import resolves before accessing path: use top-level await or load in async function.
Call db.loadExtension(sqliteMuninn.path) with the correct path before using hnsw virtual table.
No dependency data recorded yet.