JSPM

  • Created
  • Published
  • Downloads 32
  • Score
    100M100P100Q67571F
  • License MIT

A high-performance graph database with ACID transactions

Package Exports

  • sombradb
  • sombradb/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sombradb) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

SombraDB - Node.js Bindings

High-performance graph database for Node.js and TypeScript, powered by Rust.

⚠️ Alpha Software: Sombra is under active development. APIs may change, and the project is not yet recommended for production use. Feedback and contributions are welcome!

Installation

npm install sombradb

Features

  • Property Graph Model: Nodes, edges, and flexible properties
  • ACID Transactions: Full transactional support with rollback
  • Fast Performance: Native Rust implementation with NAPI bindings
  • TypeScript Support: Full type definitions included
  • Cross-Platform: Pre-built binaries for Linux, macOS, and Windows

Quick Start

import { SombraDB, SombraPropertyValue } from 'sombradb';

const db = new SombraDB('./my_graph.db');

const createProp = (type: 'string' | 'int' | 'float' | 'bool', value: any): SombraPropertyValue => ({
  type,
  value
});

const user = db.addNode();
db.setNodeLabel(user, 'User');
db.setNodeProperty(user, 'name', createProp('string', 'Alice'));

const post = db.addNode();
db.setNodeLabel(post, 'Post');

db.addEdge(user, post, 'AUTHORED');

const neighbors = db.getNeighbors(user);
console.log(`User ${user} authored ${neighbors.length} posts`);

Documentation

Building from Source

npm install
npm run build
npm test

Repository

GitHub

License

MIT