relatedb/relate
EMBEDDED GRAPH DATABASE IN RUST
Embedded in-memory graph database in Rust with Cypher support. Stores graph in single file or memory, runs without server via CLI, Python, Node.js and WASM.
// KEY FEATURES
- Cypher 25 support and CLI for interactive queries
- Graph storage in .rl file, directory, or pure memory
- Bindings for Python, Node.js, browser (WASM), and Rust
- Optional server with Bolt, HTTP, and MCP protocols
// DEEP DIVE: HOW IT WORKS
Relate is an embedded graph database engine in Rust. Graph is a single .rl file, directory with Parquet checkpoints, or pure memory. Transactionality via fsync'd write-ahead log. One process — one graph, one user. Compiles to dependency-free binary.
Unlike Neo4j, no separate server needed: same engine runs in CLI, Python, npm (Node.js/WASM), Rust crate. Optional single-process server with Bolt, HTTP, MCP. Written in Rust, checkpoints in Parquet.
Limitations: working set must fit in memory, one graph per store, single-user mode. Not for analytics, multi-tenancy, or data >RAM. Honestly documented in limitations.md. Binaries signed, install verifies SHA256 via SSH signatures.
// USE CASES
Best for: For AI agent developers needing local graph memory
- Embed graph memory into AI agents without deploying a database
- Run Cypher queries locally via CLI, Python, or browser
- Use MCP server for graph access from LLM clients
// QUICK START
curl -sSfL https://relatedb.ai/install.sh | bash
pip install relate-db
npm install @relate/relate
relate upgradeCommands are taken from the repository README — check the current version on GitHub before running.
New repositories every 30 minutes
REDDYX AI scans GitHub 24/7 and ships the best AI/ML/Web3 projects to Telegram.
Join on Telegram