GrafeoDB/grafeo
Grafeo is a pure-Rust, high-performance graph database that can be embedded as a library or run as a standalone database, with optional in-memory or persistent storage. Grafeo supports both LPG and RDF and all major query languages.
What it solves
Grafeo is a graph database built in Rust from the ground up for speed and efficient memory use. It solves the problem of storing and querying connected data (like social networks, knowledge graphs, or AI agent memory) without requiring a heavy external server or JVM. It runs embedded as a library or as a standalone server, with in-memory or persistent storage and full ACID transactions, and it supports both Labeled Property Graph (LPG) and RDF data models.
How it works
Grafeo is written in Rust and can be embedded directly into applications with zero external dependencies (no JVM, Docker, or separate processes). It offers multiple storage modes (in-memory or persistent) and uses MVCC transactions with snapshot isolation for concurrency. The engine uses a modular translator architecture: query languages are parsed into ASTs, then translated to a unified logical plan that executes against the appropriate storage backend (LPG or RDF). It supports six query languages (GQL, Cypher, Gremlin, GraphQL, SPARQL, SQL/PGQ) and includes vector search as a first-class feature, with HNSW indexing, SIMD-accelerated distance functions, and hybrid text+vector search. Performance features include columnar storage, a cost-based optimizer, zone maps, and streaming execution.
Who it’s for
Grafeo is for developers who need a fast, embeddable graph database in their applications—whether that’s a social network, a knowledge graph, a semantic web project, or an AI/LLM application that needs graph and vector search (e.g., RAG, agent memory). It’s also for teams that want to avoid running a separate database server and prefer a library that can be used from many languages (Python, Node.js, Go, C, C#, Dart, WebAssembly).
Highlights
- Dual data model support: LPG and RDF with optimized storage for each
- Six query languages: GQL, Cypher, Gremlin, GraphQL, SPARQL, SQL/PGQ
- Embeddable with zero external dependencies; also runs as a standalone server
- Multi-language bindings: Python, Node.js/TypeScript, Go, C, C#, Dart, WebAssembly
- Vector search with HNSW index, SIMD-accelerated distance functions, and quantization
- Hybrid text+vector search with BM25 and Reciprocal Rank Fusion
- ACID transactions with MVCC and snapshot isolation
- Columnar storage with compression, cost-based optimizer, and zone maps
- Encryption at rest, role-based access control, and SHACL validation
- Incremental backup, point-in-time recovery, and Prometheus metrics
- Bulk import/export (CSV, JSONL, Arrow, GraphML, etc.) and a CLI for admin tasks
Related
- Project
- Dispatch
- Project
- Project
- Dispatch