Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Rust
  3. CozoDB

CozoDB

MPL-2.0Rustv0.7.6

A transactional, relational-graph-vector database that uses Datalog for query, designed as the hippocampus for AI.

Visit WebsiteGitHubGitHub
4.0k stars155 forks0 contributors

What is CozoDB?

CozoDB is a transactional, multi-model database that integrates relational, graph, and vector data, using Datalog as its query language. It solves the problem of managing interconnected and high-dimensional data in a single system, enabling complex queries like recursive graph traversals and vector similarity searches seamlessly. It is designed to be embeddable across environments—from browsers to servers—while scaling for performance and concurrency.

Target Audience

Developers building AI applications, graph analytics, or data-intensive systems that require unified relational, graph, and vector operations in an embeddable or scalable database.

Value Proposition

Developers choose CozoDB for its unique combination of Datalog's expressiveness, multi-model flexibility, and embeddability—offering graph algorithms, vector search, and time travel in a single transactional database without sacrificing performance.

Overview

A transactional, relational-graph-vector database that uses Datalog for query. The hippocampus for AI!

Use Cases

Best For

  • Building AI applications that require integrated vector similarity search and graph reasoning
  • Embedding a transactional database in mobile apps or browsers with WebAssembly
  • Performing complex recursive graph queries and algorithms like PageRank
  • Developing systems that need historical data querying (time travel) for auditing or analysis
  • Unifying relational, graph, and vector data models in a single database backend
  • Running high-concurrency OLTP workloads with embedded or client-server deployment

Not Ideal For

  • Projects heavily reliant on SQL and its ecosystem of ORMs, migration tools, and BI integrations
  • Teams requiring guaranteed long-term stability and backward compatibility, as pre-1.0 versions lack these promises
  • Simple applications needing only basic key-value or document storage without advanced querying
  • Environments where developers are unwilling to learn Datalog and prefer more common query languages like SQL

Pros & Cons

Pros

Expressive Datalog Querying

Uses a powerful Datalog dialect for recursion and composability, enabling complex graph operations like reachability and shortest paths naturally, as demonstrated in the tutorial examples.

Multi-Model Integration

Unifies relational, graph, and vector data in a single database with integrated HNSW vector search, allowing seamless joins and searches across data types without separate systems.

Wide Embeddability

Runs embedded in browsers via WASM, on mobile devices, and servers with multiple storage engines like RocksDB and SQLite, supporting diverse environments without setup.

Time Travel Capability

Offers optional immutable history tracking per relation for querying past data states, useful for auditing or analysis, as highlighted in the feature list.

Cons

Pre-1.0 Instability

Versions before 1.0 do not promise syntax/API stability or storage compatibility, risking breaking changes and making it unsuitable for production-critical applications without thorough testing.

Datalog Learning Curve

Requires learning Datalog, a niche query language compared to SQL, which can increase onboarding time and limit adoption in teams familiar with traditional databases.

Ecosystem Limitations

Has a smaller community and fewer third-party tools, libraries, and documentation compared to established databases, potentially increasing development effort for integrations.

Storage Engine Complexity

Supports multiple backends like RocksDB that require tuning via options files, and misconfiguration can lead to performance issues or corruption, as noted in the tuning section.

Frequently Asked Questions

Quick Stats

Stars4,014
Forks155
Contributors0
Open Issues42
Last commit1 year ago
CreatedSince 2022

Tags

#database#graph#time-travel#graph-algorithms#hnsw#client-server#vector-database#embedded-database#datalog#embeddable#cross-platform#graphdb#multi-model#graph-database#transactional#relational-database#rust

Built With

S
SQLite
s
sled
T
TiKV
W
WebAssembly
R
Rust
R
RocksDB

Links & Resources

Website

Included in

Rust56.6k
Auto-fetched 23 hours ago

Related Projects

SurrealDBSurrealDB

A scalable, distributed, collaborative, document-graph database, for the realtime web

Stars32,349
Forks1,279
Last commit3 days ago
QdrantQdrant

Qdrant - High-performance, massive-scale Vector Database and Vector Search Engine for the next generation of AI. Also available in the cloud https://cloud.qdrant.io/

Stars31,902
Forks2,329
Last commit1 day ago
RustFSRustFS

🚀2.3x faster than MinIO for 4KB object payloads. RustFS is an open-source, S3-compatible high-performance object storage system supporting migration and coexistence with other S3-compatible platforms such as MinIO and Ceph.

Stars28,517
Forks1,233
Last commit23 hours ago
NeonNeon

Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, code-like database branching, and scale to zero.

Stars22,167
Forks982
Last commit14 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub