项目前身为 Kuzu,旧文档和示例可能仍用 Kuzu 命名;各语言包名不统一,NodeJS 是 @ladybugdb/core、Rust 是 lbug;C/C++ 与 CLI 需从 releases 页下载预编译二进制

ladybug
LadybugDBMIT活跃维护用 C++ 实现的支持 Cypher 查询语言的图数据库,适合构建代码知识库和知识图谱,为检索与 RAG 场景提供图数据存储和查询能力。
LadybugDB a graph database
嵌入式图数据库,专为超大规模复杂分析查询提速,前身是 Kuzu
用 C++ 实现的支持 Cypher 查询语言的图数据库,适合构建代码知识库和知识图谱,为检索与 RAG 场景提供图数据存储和查询能力。
核心能力
- 支持属性图模型与 Cypher 查询语言
- 可嵌入应用,无需独立服务器进程
- 内置全文搜索与向量索引
- 列式磁盘存储配 CSR 邻接表索引
- 向量化查询处理与多核并行
容易踩的坑
- v0.22.3Release 0.22.3最新正式版2026-11-07 · 2026-11-07 16:00 UTC
What's Changed
- fix(storage): throw instead of crashing on torn WAL tail reads by @adsharma in https://github.com/LadybugDB/ladybug/pull/1522
Full Changelog: https://github.com/LadybugDB/ladybug/compare/v0.22.2...v0.22.3
- v0.22.1Release v0.22.12026-10-28 · 2026-10-28 21:06 UTC
查看更新说明
What's Changed
- fix(optimizer): keep writes under a filter that folds to false by @555aaditya in https://github.com/LadybugDB/ladybug/pull/1401
- fix(optimizer): keep the rows of a second DISTINCT after WITH DISTINCT on a primary key by @zahariash in https://github.com/LadybugDB/ladybug/pull/1353
- fix(storage): don't claim a page group the size cap refused by @zahariash in https://github.com/LadybugDB/ladybug/pull/1389
- fix(function): cast regexp, split and list-sort arguments to their declared types by @zahariash in https://github.com/LadybugDB/ladybug/pull/1398
- fix(optimizer): keep the outer rows of a COUNT subquery join by @555aaditya in https://github.com/LadybugDB/ladybug/pull/1402
- fix(planner): intersect instead of a cross product in OPTIONAL MATCH between bound nodes by @zahariash in https://github.com/LadybugDB/ladybug/pull/1405
- fix(processor): stop OPTIONAL MATCH and EXISTS reading another node table's neighbours by @zahariash in https://github.com/LadybugDB/ladybug/pull/1413
- fix(function): take list_filter's NULL result from the row's own list by @zahariash in https://github.com/LadybugDB/ladybug/pull/1426
- fix(evaluator): stop list lambda bodies from crashing or reading other elements by @zahariash in https://github.com/LadybugDB/ladybug/pull/1427
- fix(optimizer): keep the ORDER BY when an aggregate reads the rows its LIMIT keeps by @zahariash in https://github.com/LadybugDB/ladybug/pull/1412
- fix(optimizer): compose nested SKIP/LIMIT when capping DISTINCT by @555aaditya in https://github.com/LadybugDB/ladybug/pull/1428
- fix(binder): give CASE the common type of all its branches by @555aaditya in https://github.com/LadybugDB/ladybug/pull/1429
- fix(binder): reject ALTER ADD/DROP FROM ... TO on a non-rel table by @555aaditya in https://github.com/LadybugDB/ladybug/pull/1430
- test(storage): gate ADD-vs-scan race on reader progress, not sleeps by @adsharma in https://github.com/LadybugDB/ladybug/pull/1431
- Fix/relationship scan batch state by @jkumz in https://github.com/LadybugDB/ladybug/pull/1434
- feat(storage): add external table hooks for extension-backed formats by @adsharma in https://github.com/LadybugDB/ladybug/pull/1445
- fix(function): handle negative and oversized counts in string functions by @zahariash in https://github.com/LadybugDB/ladybug/pull/1442
- fix(function): keep concat_ws separators around a skipped NULL by @555aaditya in https://github.com/LadybugDB/ladybug/pull/1451
- fix(processor): refuse IMPORT DATABASE inside a manual transaction by @555aaditya in https://github.com/LadybugDB/ladybug/pull/1452
Full Changelog: https://github.com/LadybugDB/ladybug/compare/v0.22.0...v0.22.1
- v0.22.0Release 0.22.02026-10-25 · 2026-10-25 04:31 UTC
查看更新说明
What's Changed
- fix(storage): refresh node group scan state after a checkpoint by @kory-io in https://github.com/LadybugDB/ladybug/pull/1094
- fix(storage): validate disk array and overflow page indices by @kory-io in https://github.com/LadybugDB/ladybug/pull/1095
- fix(aggregate): return [] instead of null for collect() on empty/all-null input by @adsharma in https://github.com/LadybugDB/ladybug/pull/1100
- c_api: add lbug_value_create_blob function to C API by @Tyagiquamar in https://github.com/LadybugDB/ladybug/pull/1103
- fix(binder): allow implicit cast STRING -> UUID (fixes #1102) by @adsharma in https://github.com/LadybugDB/ladybug/pull/1106
- feat: minimal engine enablers for the GQL extension (incl. standalone-call rewrite batch fix) by @chiangchenghsin-hash in https://github.com/LadybugDB/ladybug/pull/1104
- fix(storage): harden checkpoint crash recovery by @aikins01 in https://github.com/LadybugDB/ladybug/pull/1099
- fix(storage): harden checkpoint crash recovery (fixes #1098) by @adsharma in https://github.com/LadybugDB/ladybug/pull/1107
- fix(storage): detect stale pre-0.21 string hash indexes loudly (Fixes #1092) by @adsharma in https://github.com/LadybugDB/ladybug/pull/1108
- fix(storage): don't zero CSR header and length-chunk buffers by @zahariash in https://github.com/LadybugDB/ladybug/pull/1114
- fix(storage): bounds-check disk array updates in release builds by @kory-io in https://github.com/LadybugDB/ladybug/pull/1115
- fix(csv): remove shadowed variable in dialect detection by @adsharma in https://github.com/LadybugDB/ladybug/pull/1124
- Grouped aggregate over variable-length paths without materializing walks by @adsharma in https://github.com/LadybugDB/ladybug/pull/1080
- fix(planner): range selectivity from observed column min/max by @adsharma in https://github.com/LadybugDB/ladybug/pull/1126
- fix(posix): query F_GETLK before close and split lock error messages by @adsharma in https://github.com/LadybugDB/ladybug/pull/1131
- fix(processor): keep the child's selection vector intact in hash join build by @zahariash in https://github.com/LadybugDB/ladybug/pull/1119
- fix(opt): skip grouped reachable-count rewrite with rel predicate by @adsharma in https://github.com/LadybugDB/ladybug/pull/1133
- fix(storage): clean stale spill file lazily after lock is held by @adsharma in https://github.com/LadybugDB/ladybug/pull/1132
- fix(gds): emit single length-0 row when closed walks fail node predicate by @adsharma in https://github.com/LadybugDB/ladybug/pull/1134
- fix(storage): drop unused selVector capture in ColumnStats::updateMinMax by @adsharma in https://github.com/LadybugDB/ladybug/pull/1138
- fix(storage): keep rel scans on the CSR state they started with by @kory-io in https://github.com/LadybugDB/ladybug/pull/1116
- fix(test): make vfs + checkpoint tests work on Windows by @adsharma in https://github.com/LadybugDB/ladybug/pull/1139
- fix(planner): slim scalar-seeded chain for correlated PK equalities by @adsharma in https://github.com/LadybugDB/ladybug/pull/1125
- fix(storage): pad uncompressed flush buffer to allocated page range on disk by @Tyagiquamar in https://github.com/LadybugDB/ladybug/pull/1091
- fix(processor): don't re-materialize probe-side exprs as join payloads by @adsharma in https://github.com/LadybugDB/ladybug/pull/1137
- fix(processor): do not compact flat join keys' selection vectors on null by @zahariash in https://github.com/LadybugDB/ladybug/pull/1141
- fix(binder): allow aggregating a value derived from an earlier aggregate by @zahariash in https://github.com/LadybugDB/ladybug/pull/1118
- fix(wal): tag WAL records with their owning catalog and route replay per owner by @aikins01 in https://github.com/LadybugDB/ladybug/pull/1113
- fix(fs): resolve UTF-8 paths as Unicode on Windows by @es-alficody in https://github.com/LadybugDB/ladybug/pull/1144
- fix(storage): version column min/max stats as STORAGE_VERSION_48 by @adsharma in https://github.com/Lad
- v0.21.22026-10-01 · 2026-10-01 13:53 UTC
这个版本没有写更新说明。
- v0.21.1Release 0.21.12026-09-30 · 2026-09-30 00:27 UTC
查看更新说明
What's Changed
- fix(planner): keep factorized cardinality on extend to avoid fan-out double-count by @adsharma in https://github.com/LadybugDB/ladybug/pull/1065
- fix(optimizer): accept bushy triangle join in anti-edge chain rewrite by @adsharma in https://github.com/LadybugDB/ladybug/pull/1064
- fix(order-by): compare trailing keys after string tie in key block merge by @adsharma in https://github.com/LadybugDB/ladybug/pull/1072
- ci(win-arm): install OpenSSL 3.5 via winget, locate VS with vswhere by @adsharma in https://github.com/LadybugDB/ladybug/pull/1073
- ci(win-arm): install OpenSSL and use msvc-dev-cmd in python wheel builds by @adsharma in https://github.com/LadybugDB/ladybug/pull/1078
- fix(main): size default buffer pool from cgroup memory limit when containerized by @adsharma in https://github.com/LadybugDB/ladybug/pull/1075
- fix(ice-disk): reopen parquet reader when multi-rel scan switches tables by @adsharma in https://github.com/LadybugDB/ladybug/pull/1077
- ci(macos): relocate OpenSSL dep in httpfs/llm extensions, drop pixi rpath by @adsharma in https://github.com/LadybugDB/ladybug/pull/1076
- fix(storage): keep COPY segment sizing linear for compressible columns by @adsharma in https://github.com/LadybugDB/ladybug/pull/1074
- fix(mapper): unmap fused-away scans; tolerate unmapped SEMI_MASKER targets by @adsharma in https://github.com/LadybugDB/ladybug/pull/1079
Full Changelog: https://github.com/LadybugDB/ladybug/compare/v0.21.0...v0.21.1
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Ladybug
Ladybug is an embedded graph database built for query speed and scalability. Ladybug is optimized for handling complex analytical workloads on very large databases and provides a set of retrieval features, such as a full text search and vector indices. Our core feature set includes:
- Flexible Property Graph Data Model and Cypher query language
- Embeddable, serverless integration into applications
- Native full text search and vector index
- Columnar disk-based storage
- Columnar sparse row-based (CSR) adjacency list/join indices
- Vectorized and factorized query processor
- Novel and very fast join algorithms
- Multi-core query parallelism
- Serializable ACID transactions
- Wasm (WebAssembly) bindings for fast, secure execution in the browser
Ladybug is being developed by LadybugDB Developers and is available under a permissive license. So try it out and help us make it better! We welcome your feedback and feature requests.
The database was formerly known as Kuzu.
Installation
| Language | Installation |
|---|---|
| Python | pip install ladybug |
| NodeJS | npm install @ladybugdb/core |
| Rust | cargo add lbug |
| Go | go get github.com/LadybugDB/go-ladybug |
| Swift | lbug-swift |
| Java | Maven Central |
| C/C++ | precompiled binaries |
| CLI | precompiled binaries |
To learn more about installation, see our Installation page.
Getting Started
Refer to our Getting Started page for your first example.
Build from Source
You can build from source using the instructions provided in the developer guide.
Contributing
We welcome contributions to Ladybug. If you are interested in contributing to Ladybug, please read our Contributing Guide.
License
By contributing to Ladybug, you agree that your contributions will be licensed under the MIT License.
Contact
You can contact us at [email protected] or join our Discord community.