Rusty Red is an embedded property-graph database. One .RR file is a database: create it, write records, close it, copy the file, and open it somewhere else.
use rustyred::{Database, NodeRecord};
use serde_json::json;
let mut db = Database::create("notes.rr")?;
db.upsert_node(NodeRecord::new("part:bolt", ["Part"], json!({"sku": "B-1"})))?;The command line is smaller than the library:
rustyred create notes.rr
rustyred query notes.rr --cypher 'MATCH (p:Part) RETURN p' --params-json '{}'
rustyred inspect notes.rr --json
rustyred verify notes.rr --json
Queries are read-only. Writes go through Database::mutate and Database::upsert_node. There is no account, no server, and no model. After you designate a vector width, a numeric array is stored as a content-addressed payload. The library does not turn that array into a semantic embedding.
Build with Rust 1.96.1 (rust-toolchain.toml), the candidate's explicitly supported compiler floor. No lower compiler is claimed.
cargo test -p rustyred --locked
cargo run -p parts-catalog -- parts.rr
See docs/getting-started.md, docs/api-contract.md, and docs/storage-format.md.
Node.js and Bun use the same database through @rustyreddb/node, a Node-API binding in crates/rustyred-node built with napi-rs. It covers the facade, including full-text search and compaction; see its README.
Browsers use it through @rustyreddb/browser, a wasm-bindgen binding in crates/rustyred-wasm. The graph lives in the origin private file system and is held by a dedicated worker; calls are asynchronous and a read can be subscribed to. It has no full-text search or compaction yet; see its README.
The engine crates (rustyred-engine and its siblings) are the database implementation. rustyred is the supported entry point. Generic GraphBLAS and query-saturation sources are retained as optional extension crates. GraphBLAS requires native libraries and remains experimental. HTTP and MCP server products are outside this embedded beta. See release preparation for the tested feature matrix and package route.