vs

Datahike vs DataScript

Datahike: Open-source, durable Datalog database for Clojure with Datomic-style immutable history. DataScript: Immutable in-memory database with Datomic-style Datalog queries for Clojure, ClojureScript and JavaScript.

key differences

  • Datahike is primarily a relational database; DataScript is graph.
  • Only Datahike has time travel.

choose datahike for

  • +Clojure apps wanting Datalog and history without Datomic
  • +Knowledge graphs and research data with provenance
  • +Embedded databases in ClojureScript apps

best at · OLTP, Knowledge graph, Embedded

choose datascript for

  • +Client-side application state for ClojureScript apps
  • +Local-first note-taking and outliner tools
  • +In-memory graph queries over modest datasets

best at · Embedded, Local-first, Knowledge graph

overview
Primary model
Relational
Graph
Also supports
Graph
Key-Value
Type
Database engine
Embedded library
Status
Active
Active
Developer
replikativ (Christian Weilbach and contributors)
Nikita Prokopov (tonsky)
First release
2018
2014
Latest version
0.8.1913 (Oct 26, 2026)
1.8.1 (Aug 15, 2026)
License
Open source (copyleft)Eclipse Public License 1.0
Open source (copyleft)Eclipse Public License 1.0
Free tier
✓
✓
popularity
WhichDB Score
5.8
14.4
Rank
#374
#233
GitHub stars
1.9K
5.8K
Stack Overflow questions
–
24
scale & guarantees
Comfortable data size
Small (≤ 100 GB)
Small (≤ 100 GB)
Horizontal scaling
None
None
Multi-region
None
None
ACID
Full
Full
Consistency
Strong
Strong
Schema
Flexible
Flexible
Architecture
Embedded, Client server
Embedded, In memory
deployment
Self-hosted
✓
✓
Vendor-managed cloud
—
—
Serverless
—
—
Embedded
✓
✓
Edge
—
—
Clouds
–
–
capabilities
Transactions
✓
✓
Joins
✓
✓
Secondary indexes
✓
✓
Full-text search
—
—
Vector search
—
—
Geospatial
—
—
JSON
—
—
Change data capture
—
—
Triggers
—
—
Stored procedures
—
—
Materialized views
—
—
TTL / expiry
—
—
Pub/Sub
—
—
Columnar storage
—
—
In-memory
✓
✓
Durable persistence
✓
✓
Compression
—
—
Encryption at rest
—
—
Role-based access
—
—
Time travel
✓
—
Branching
—
—
Online schema changes
—
—
Streaming ingest
—
—
Offline sync
—
—
Runs in WebAssembly
—
—
interfaces
Query languages
Datalog, Pull API
Datalog, Pull API
Client languages
Clojure, ClojureScript, Java
Clojure, ClojureScript, JavaScript
Best for
OLTP, Knowledge graph, Embedded
Embedded, Local-first, Knowledge graph

Datahike vs DataScript: FAQ

What is the difference between Datahike and DataScript?

Datahike: Open-source, durable Datalog database for Clojure with Datomic-style immutable history. DataScript: Immutable in-memory database with Datomic-style Datalog queries for Clojure, ClojureScript and JavaScript. Datahike is primarily a relational database; DataScript is graph. Only Datahike has time travel.

When should I choose Datahike over DataScript?

Choose Datahike for clojure apps wanting Datalog and history without Datomic; knowledge graphs and research data with provenance; and embedded databases in ClojureScript apps. Choose DataScript for client-side application state for ClojureScript apps; local-first note-taking and outliner tools; and in-memory graph queries over modest datasets.

Is Datahike or DataScript more popular?

DataScript ranks #233 on the WhichDB Score (14.4/100) and Datahike ranks #374 (5.8/100). Popularity is not fit: check the requirements that matter for your project.

Are Datahike and DataScript open source?

Yes. Datahike is open source. License: Eclipse Public License 1.0. Yes. DataScript is open source. License: Eclipse Public License 1.0.