| Crates.io | sombra |
| lib.rs | sombra |
| version | 0.3.6 |
| created_at | 2025-10-22 19:13:52.035089+00 |
| updated_at | 2025-10-26 02:32:53.514287+00 |
| description | High-performance graph database with ACID transactions, single-file storage, and bindings for Rust, TypeScript, and Python |
| homepage | |
| repository | https://github.com/maskdotdev/sombra |
| max_upload_size | |
| id | 1896095 |
| size | 916,495 |
Core Rust library for Sombra, a high-performance graph database.
Note: This is alpha software under active development. APIs may change between minor versions.
This package contains the core graph database implementation for Sombra. It provides the foundational data structures, storage engine, and graph algorithms that power the Node.js and Python bindings.
Add to your Cargo.toml:
[dependencies]
sombra = "0.4.0"
use sombra::prelude::*;
let mut db = GraphDB::open("my_graph.db")?;
let mut tx = db.begin_transaction()?;
let user = tx.add_node(Node::new(0))?;
let post = tx.add_node(Node::new(1))?;
tx.add_edge(Edge::new(user, post, "AUTHORED"))?;
tx.commit()?;
let neighbors = db.get_neighbors(user)?;
println!("User {} authored {} posts", user, neighbors.len());
See the main Sombra documentation for full API reference.
MIT