HelixDB/helix-db
Über uns
HelixDB ist eine in Rust entwickelte OLTP-Graphdatenbank auf Objektspeicher mit integrierter nativer Vektorsuche und Volltextsuche.
Daten und AnalyseGemessener Sternzuwachs
- in 24h
- +1
- in 7 days
- +22
- in 15 days
- +41
- in 1 month
- +78
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalHelixDB is an open-source (Apache 2.0) graph database with native vector search and BM25 full-text search, built in Rust on object storage. Store entities, relationships, embeddings, and text in one transactional engine and query them together from Rust, TypeScript, Go, or Python.
| Graph | Vector | Full-text |
|---|---|---|
| Model entities, relationships, and typed properties as a labeled property graph. | Approximate nearest-neighbor search, prefiltered by graph traversal. | BM25 keyword search over node and edge properties. |
Helix Foundry
Helix Foundry connects your databases, apps and documents, has an agent draft an ontology over them, and loads it into HelixDB as one graph you can explore and ask questions of, with every value traced to the row or quote it came from. Try it on a sample company, free with no install, or run it yourself from HelixDB/helix-foundry (Apache 2.0).
Getting started
Install the CLI. On macOS and Linux:
curl -sSL "https://install.helix-db.com" | bash
On Windows PowerShell:
irm https://raw.githubusercontent.com/HelixDB/helix-db/main/crates/cli/install.ps1 | iex
Create a project, start a local instance (requires Docker or Podman), and run the generated query:
mkdir my-helix-app && cd my-helix-app
helix init local # writes helix.toml and examples/request.json
helix start dev # serves http://localhost:6969
helix query dev --file examples/request.json
Local data lives in memory by default; helix start dev --disk persists it across restarts.
To run HelixDB inside your own process without a server, use
embedded mode.
The full walkthrough is in the quickstart.
Already installed? Run helix update.
Or let an agent build it
helix chef installs the HelixDB query skills and docs MCP, scaffolds a project, starts a local
instance, seeds example data, and hands off to the first coding agent it finds, in this order:
Claude Code → OpenAI Codex → OpenCode → Cursor Agent. Describe what you want to build and it
builds a working app, frontend included.
helix chef
Cypher
Source builds also support Cypher reads and CRUD through POST /v2/cypher,
embedded clients, and helix cypher. See the Cypher guide
for the supported language profile, SDK calls, parameters, lossless results,
and transaction rules. Use SDK and server builds from this checkout for Cypher.
For implementation work, the codebase map covers package dependencies, query execution, storage ownership and correctness gates.
Query from your app
Write queries with an SDK and send them to a running instance through POST /v2/query. There is
no build or deploy step, and every SDK produces the same JSON request. (/v2/ is the wire
endpoint version; the current HelixDB and SDK generation is v3.) The examples below target the
local instance on http://localhost:6969. New to the query model? Start with the
Query walkthrough.
| SDK | Package | Current release | Setup guide |
|---|---|---|---|
| Rust | helix-db |
4.1.0 |
Rust setup |
| TypeScript | @helix-db/helix-db |
4.1.0 |
TypeScript setup |
| Python | helix-db |
0.5.0 |
Python setup |
| Go | github.com/helixdb/helix-db/sdks/go |
v0.5.0 |
Go setup |
Rust
The crate is published as helix-db and imported as helix_db:
cargo init && cargo add [email protected] tokio sonic-rs
use helix_db::Client;
use helix_db::dsl::prelude::*;
#[query]
pub fn add_user(name: String) -> WriteBatch {
write_batch()
.var_as(
"user",
g().add_n("User", vec![("name", name)])
.value_map(None::<Vec<String>>),
)
.returning(["user"])
}
#[query]
pub fn get_user(name: String) -> ReadBatch {
read_batch()
.var_as(
"user",
g().n_with_label("User")
.where_(Predicate::eq("name", name))
.value_map(None::<Vec<String>>),
)
.returning(["user"])
}
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::new(None)?; // defaults to http://localhost:6969
// #[query] helpers return Result<QueryRequest, QueryError>
let new_user: sonic_rs::Value = client
.query(add_user("John Doe".to_string())?)
.send()
.await?;
println!("new user: {:#}", sonic_rs::to_string_pretty(&new_user)?);
let user: sonic_rs::Value = client
.query(get_user("John Doe".to_string())?)
.send()
.await?;
println!("user: {:#}", sonic_rs::to_string_pretty(&user)?);
Ok(())
}
TypeScript
Requires Node.js 20+:
npm init -y && npm install @helix-db/[email protected]
import {
Predicate, PropertyProjection,
defineParams, g, param, readBatch, writeBatch,
} from "@helix-db/helix-db";
const addUserParams = defineParams({ name: param.string() });
function addUser(p = addUserParams) {
return writeBatch()
.varAs("user",
g().addN("User", { name: p.name })
.project([PropertyProjection.new("name")]),
)
.returning(["user"]);
}
const getUserParams = defineParams({ name: param.string() });
function getUser(p = getUserParams) {
return readBatch()
.varAs("user",
g().nWithLabel("User")
.where(Predicate.eq("name", p.name))
.project([PropertyProjection.new("name")]),
)
.returning(["user"]);
}
const HELIX_URL = "http://localhost:6969/v2/query";
const newUser = await fetch(HELIX_URL, {
method: "POST",
headers: { "content-type": "application/json" },
body: addUser().toQueryJson(addUserParams, { name: "John Doe" }),
}).then((r) => r.json());
console.log("new user:", newUser);
const user = await fetch(HELIX_URL, {
method: "POST",
headers: { "content-type": "application/json" },
body: getUser().toQueryJson(getUserParams, { name: "John Doe" }),
}).then((r) => r.json());
console.log("user:", user);
Python
python -m pip install helix-db==0.5.0
from helixdb import Client, Predicate, g, param, define_params, read_batch, write_batch
add_user_params = define_params({"name": param.string()})
add_user = (
write_batch()
.var_as("user", g().add_n("User", {"name": add_user_params.name}))
.returning(["user"])
)
get_user_params = define_params({"name": param.string()})
get_user = (
read_batch()
.var_as(
"user",
g()
.n_with_label("User")
.where(Predicate.eq("name", get_user_params.name))
.value_map(["name"]),
)
.returning(["user"])
)
client = Client("http://localhost:6969")
new_user = client.query(
add_user.to_query_request(add_user_params, {"name": "John Doe"})
)
print("new user:", new_user)
user = client.query(
get_user.to_query_request(get_user_params, {"name": "John Doe"})
)
print("user:", user)
Go
go mod init example.com/my-helix-app
go get github.com/helixdb/helix-db/sdks/[email protected]
package main
import (
"context"
"fmt"
"log"
helix "github.com/helixdb/helix-db/sdks/go"
)
func getUsers() helix.Request {
return helix.ReadQuery("get_users").
VarAs("users", helix.G().NWithLabel("User").ValueMap("$id", "name")).
Returning("users")
}
func main() {
client, err := helix.NewClient("http://localhost:6969")
if err != nil {
log.Fatal(err)
}
var response map[string]any
if err := client.Exec(context.Background(), getUsers(), &response); err != nil {
log.Fatal(err)
}
fmt.Println(response)
}
Helix Cloud
Helix Cloud is the managed, high-availability deployment. Object storage is the durable system of record, a single writer commits every transaction with full ACID guarantees, and reader nodes auto-scale with query load. Sign up or talk to a founder.
helix auth login
helix init cloud # pick a workspace, project, and database; links them in helix.toml
helix query production --file request.json
See the Cloud CLI workflow for authentication and resource commands, and the architecture for how it scales.
FAQ
What is HelixDB used for?
Memory and retrieval for AI applications: long-term agent memory, GraphRAG and hybrid RAG, and internal knowledge graphs that tie documents, people, tools and decisions together. One query can combine graph traversal, vector similarity and BM25 keyword search.
Do I still need a separate vector database next to my graph database?
No. Vectors are properties on nodes and edges, indexed natively, so embeddings, relationships and text live in one transactional engine. Graph and vector writes commit or roll back together, and there is no second store to keep in sync.
Can vector search be limited to related data?
Yes. A vector search can be prefiltered by a graph traversal, so similarity runs over the nodes connected to, say, one user or one project instead of the whole index. See the prefiltering guide.
Is HelixDB open source, and can I self-host it?
Yes. The engine is Apache 2.0. Run it embedded inside your own process, as a local or self-hosted
server (in memory, on disk, or on S3-compatible object storage), or on Helix Cloud. All three use
the same SDKs; server and Cloud clients send queries to POST /v2/query, while embedded clients
run them inside your process.
Can I bring existing Cypher queries?
Source builds run a supported openCypher profile for reads and CRUD through POST /v2/cypher,
embedded clients and helix cypher. The Cypher guide
lists what is covered; anything outside it is written with the SDKs.
Docs and community
License
HelixDB is licensed under the Apache License 2.0.
Just Use Helix.
Ähnliche Projekte entdecken
Wird geladen…

