Mentat
discontinuedby Mozilla · since 2016 · also known as Project Mentat, Datomish
Mozilla's archived Rust knowledge base: Datomic-style datoms and Datalog queries stored in SQLite.
discontinued. Mozilla ended development in Sept 2018 and archived the repository. Consider Datahike, DataScript or XTDB.
Overview
Project Mentat was an embedded, persistent store from Mozilla that brought Datomic and DataScript ideas to client applications: data as immutable entity-attribute-value datoms, schema as data, an append-only transaction log, and Datalog queries, all persisted in SQLite. It started in 2016 as Datomish, written in ClojureScript, and was rewritten in Rust with Swift and Android SDKs and experimental sync, aimed at Firefox and mobile apps. Mozilla stopped development in September 2018 and the repository is archived; a community fork exists but is barely active. It is still a useful design study for putting a Datalog layer on top of SQLite.
Strengths & trade-offs
Strengths
- +Datomic-style datom model and Datalog queries in an embeddable library
- +Rides on SQLite for durability and portability
- +Schema-as-data makes vocabularies easy to extend over time
Trade-offs
- −Archived since 2018; no fixes or releases
- −Sync and many planned features were never finished
- −Small user base and little documentation beyond the wiki
Great for
- +Studying how to layer Datalog over a relational engine
- +Prototyping local-first apps with a datom store
Think twice for
- −Production applications
- −Server-side or multi-user databases
Capabilities
Native or official first-party support · 5 of 25 tracked
Scale & consistency
- Comfortable data size
- Small · ≤ 100 GB
- Horizontal scaling
- None
- Multi-region
- No
- Transactions
- Full ACID
- Consistency
- Strong
- Schema
- Strict
- Architecture
- Embedded
- Query languages
- Datalog
Single SQLite file per store; designed for client devices.
Deployment
Ecosystem
Alternatives to Mentat
Open-source, durable Datalog database for Clojure with Datomic-style immutable history.
mentat vs datahike →Immutable in-memory database with Datomic-style Datalog queries for Clojure, ClojureScript and JavaScript.
mentat vs datascript →Bitemporal SQL database on object storage that keeps every version of every row.
mentat vs xtdb →Immutable Datalog database from Nubank where every fact is timestamped and queries run in the app process.
mentat vs datomic →The in-process SQL engine that ships in every phone, browser and OS: one file, zero servers.
mentat vs sqlite →PostgreSQL extension that adds openCypher graph queries alongside SQL.
mentat vs apache-age →Mentat FAQ
What is Mentat?
Mentat is a relational database by Mozilla, first released in 2016. Project Mentat was an embedded, persistent store from Mozilla that brought Datomic and DataScript ideas to client applications: data as immutable entity-attribute-value datoms, schema as data, an append-only transaction log, and Datalog queries, all persisted in SQLite. It started in 2016 as Datomish, written in ClojureScript, and was rewritten in Rust with Swift and Android SDKs and experimental sync, aimed at Firefox and mobile apps. Mozilla stopped development in September 2018 and the repository is archived; a community fork exists but is barely active. It is still a useful design study for putting a Datalog layer on top of SQLite.
Is Mentat open source?
Yes. Mentat is open source. License: Apache License 2.0.
Does Mentat support ACID transactions?
Yes. Mentat supports full ACID transactions, with strong consistency.
Does Mentat scale horizontally?
Mentat does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at small scale (≤ 100 GB).
How can I run Mentat?
You can self-host it and embed it in your application.
What is Mentat best for?
Mentat is a strong fit for studying how to layer Datalog over a relational engine and prototyping local-first apps with a datom store. Think twice for production applications.
What are the best alternatives to Mentat?
Common alternatives to Mentat include Datahike, DataScript, XTDB, Datomic and SQLite. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
Is Mentat still maintained?
Mentat is discontinued. Mozilla ended development in Sept 2018 and archived the repository. Consider Datahike, DataScript or XTDB.
How popular is Mentat?
Mentat ranks #540 of 844 databases on the WhichDB Score (1.5/100), and #166 among relational databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.



