# datalevin/datalevin

A simple, fast and versatile Datalog database

Repository: https://github.com/datalevin/datalevin
Canonical: https://ross.abutalabs.com/products/datalevin
Homepage: https://datalevin.org
Language: Clojure
License: EPL-2.0
License Family: copyleft
Topics: key-value-store, embedded-database, fulltext-search, vector-database, client-server-database, graph-database, document-database, ai-native
Last push: 2026-08-26T18:48:11+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 97, longevity 100
- inputs: {"age_days": 2277, "days_push": 7, "days_rel": 22, "gap_med": 3.0, "n_releases_24m": 31}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1470, forks 85 (observed 2026-08-28T04:04:49.305607+00:00)

## What it is
Datalevin is a durable Datalog database built on LMDB that unifies relational, graph, document, key-value, full-text, and vector search in a single ACID store. It runs embedded or client-server, with bindings for Clojure, Java, Python, and JavaScript, plus AI-native features like built-in embeddings and MCP tools.

## Use cases
- query data with datalog instead of sql
- embed a fast durable database in my application
- combine full-text and vector search in one database
- replace datomic with a simpler open-source alternative
- store and query graph relationships with recursive rules
- build a rag application with hybrid retrieval
- run a client-server database with acid transactions

## When to choose
- you prefer Datomic-style Datalog over SQL and want an open-source, simpler option
- you need multiple data models (relational, graph, document, KV) plus full-text and vector search without running separate stores
- you want an embedded database that can later scale to client-server or cluster deployment without data migration
- you build AI applications needing unified retrieval and MCP integration

## When to avoid
- your team and ecosystem are deeply SQL-oriented and you need broad SQL tooling compatibility
- you require the temporal/bitemporal history features of Datomic
- you need a managed cloud database service or very wide language ecosystem support
- your stack cannot run a JVM (Java 21+) or native LMDB dependencies

## Facets
- artifact type: library
- maturity: active
- function: database, vector-database, search-engine, rag, mcp
- domain: databases, artificial-intelligence, developer-tools
- platform: jvm, python, cross-platform, self-hosted
- tags: datalog, datomic-alternative, lmdb, embedded-database, fulltext-search, graph-database, document-database, key-value-store, clojure, search, nodejs

## Member repositories
- datalevin/datalevin (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:49.305607+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:34:48.854620+00:00, confidence not recorded.
  - readme: https://github.com/datalevin/datalevin (fetched 2026-08-28T04:04:49.305607+00:00, sha aebe957a7cf3)
  - homepage: https://datalevin.org (fetched 2026-08-29T11:42:53.500109+00:00, sha 61cf201c616f)
  - site_page: https://datalevin.org/docs/18-hybrid-queries (fetched 2026-08-29T11:42:53.522235+00:00, sha 65d4995e54c6)
  - site_page: https://datalevin.org/docs (fetched 2026-08-29T11:42:53.502627+00:00, sha 8d2ef88dd58d)
  - site_page: https://datalevin.org/docs/02-getting-started (fetched 2026-08-29T11:42:53.504475+00:00, sha aee33fb07679)
  - site_page: https://datalevin.org/docs/03-mental-model (fetched 2026-08-29T11:42:53.506627+00:00, sha a64a5b1aa0df)
  - site_page: https://datalevin.org/docs/04-storage-fundamentals (fetched 2026-08-29T11:42:53.509310+00:00, sha 128bfd9ebc95)
  - site_page: https://datalevin.org/docs/01-why-datalevin (fetched 2026-08-29T11:42:53.511892+00:00, sha b6b38c24a7bd)
  - site_page: https://datalevin.org/docs/22-production-operations (fetched 2026-08-29T11:42:53.514782+00:00, sha 56127a3d6392)
  - site_page: https://datalevin.org/docs/21-query-optimization-profiling (fetched 2026-08-29T11:42:53.518812+00:00, sha 5f8e482aea0c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
