Grafeo – 一种用 Rust 构建的快速、精简、可嵌入的图数据库。
Grafeo – A fast, lean, embeddable graph database built in Rust

原始链接: https://grafeo.dev/

## Grafeo:高性能图数据库 Grafeo是一个用Rust构建的极速图数据库,专为嵌入式使用和独立服务器部署而设计。它在性能方面表现出色,始终在LDBC SNB等基准测试中名列前茅,同时保持较低的内存占用。 主要特性包括**多语言查询支持**(GQL、Cypher、Gremlin、GraphQL、SPARQL和SQL/PGQ)和**双数据模型支持**,适用于带标签属性图(LPG)和RDF三元组。Grafeo还集成了**向量搜索**功能,使用HNSW进行语义相似性查找。 Grafeo在设计时充分考虑了内存安全性和并发性,提供**ACID事务**以及对多种语言的绑定,包括Python、Node.js、Go等。丰富的**生态系统**提供了与LangChain和LlamaIndex等AI工具的集成,以及交互式可视化选项。 Grafeo采用Apache-2.0许可证,并提供Python和Rust中的简单示例,方便快速上手。它是一种通用的解决方案,适用于从边缘设备到大型生产集群的各种应用。

Hacker News 新闻 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Grafeo – 用 Rust 构建的快速、精简、可嵌入的图数据库 (grafeo.dev) 19 分,由 0x1997 发表于 1 小时前 | 隐藏 | 过去 | 收藏 | 1 条评论 帮助 satvikpendem 4 分钟前 [–] 似乎有很多这样的数据库,它与 Helix DB 相比如何?另外,为什么会想用 GraphQL 查询数据库,而 GraphQL 并非为此目的而设计的? 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

Grafeo Playground


Why Grafeo?

  • High Performance


    Fastest graph database tested on the LDBC Social Network Benchmark, both embedded and as a server, with a lower memory footprint than other in-memory databases. Built in Rust with vectorized execution, adaptive chunking and SIMD-optimized operations.

  • Multi-Language Queries


    GQL, Cypher, Gremlin, GraphQL, SPARQL and SQL/PGQ. Choose the query language that fits the project and expertise level.

  • LPG & RDF Support


    Dual data model support for both Labeled Property Graphs and RDF triples. Choose the model that fits the domain.

  • Vector Search


    HNSW-based similarity search with quantization (Scalar, Binary, Product). Combine graph traversal with semantic similarity.

  • Embedded or Standalone


    Embed directly into applications with zero external dependencies, or run as a standalone server with REST API and web UI. From edge devices to production clusters.

  • Rust Core


    Core database engine written in Rust with no required C dependencies. Optional allocators (jemalloc/mimalloc) and TLS use C libraries for performance. Memory-safe by design with fearless concurrency.

  • ACID Transactions


    Full ACID compliance with MVCC-based snapshot isolation. Reliable transactions for production workloads.

  • Multi-Language Bindings


    Python (PyO3), Node.js/TypeScript (napi-rs), Go (CGO), C (FFI), C# (.NET 8 P/Invoke), Dart (dart:ffi) and WebAssembly (wasm-bindgen). Use Grafeo from the language of choice.

  • Ecosystem


    AI integrations (LangChain, LlamaIndex, MCP), interactive notebook widgets, browser-based graphs via WebAssembly, standalone server with web UI and benchmarking tools.


Quick Start


Features

Dual Data Model Support

Grafeo supports both major graph data models with optimized storage for each:

Query Languages

Choose the query language that fits the project:

Language Data Model Style
GQL (default) LPG ISO standard, declarative pattern matching
Cypher LPG Neo4j-compatible, ASCII-art patterns
Gremlin LPG Apache TinkerPop, traversal-based
GraphQL LPG, RDF Schema-driven, familiar to web developers
SPARQL RDF W3C standard for RDF queries
SQL/PGQ LPG SQL:2023 GRAPH_TABLE for SQL-native graph queries

Architecture Highlights

  • Push-based execution engine with morsel-driven parallelism
  • Columnar storage with type-specific compression
  • Cost-based query optimizer with cardinality estimation
  • MVCC transactions with snapshot isolation
  • Zone maps for intelligent data skipping

Installation


License

Grafeo is licensed under the Apache-2.0 License.

联系我们 contact @ memedata.com