EJDB
activeby Softmotions (Anton Adamansky) · since 2012 · also known as EJDB2
Embeddable JSON document database in C, with a JQL query language and optional HTTP/WebSocket server.
Overview
EJDB2 is a small C library that gives applications an embedded JSON document store, roughly what SQLite is to SQL. Documents live in collections in a single file on the iowow key-value engine, are queried with JQL (an XPath-like filter and projection language) and can use secondary indexes. An optional built-in HTTP/WebSocket endpoint can expose a database to other processes. Bindings cover Node.js, Java, Android, Swift, Flutter and React Native. The maintainer ships frequent point releases (v2.95 in October 2026). It suits desktop, mobile and IoT apps that want JSON documents without running a server.
Strengths & trade-offs
Strengths
- +Single-file, serverless JSON store with a tiny footprint
- +JQL supports filtering, projections and JSON Patch updates
- +Optional network endpoint without changing storage
- +Bindings for mobile and cross-platform frameworks
- +MIT license
Trade-offs
- −Essentially a one-maintainer project
- −No replication or sync
- −Smaller community and fewer examples than SQLite with JSON1
Great for
- +Embedded JSON storage in desktop or IoT apps
- +Mobile apps needing a local document store
- +Lightweight local services with an HTTP API
Think twice for
- −Multi-user server workloads
- −Apps needing sync to a backend
Capabilities
Native or official first-party support · 4 of 25 tracked
Scale & consistency
- Comfortable data size
- Small · ≤ 100 GB
- Horizontal scaling
- None
- Multi-region
- No
- Transactions
- Limited ACID
- Consistency
- Strong
- Schema
- Schemaless
- Architecture
- Embedded, Single node
- Query languages
- JQL
Deployment
Ecosystem
Alternatives to EJDB
The in-process SQL engine that ships in every phone, browser and OS: one file, zero servers.
ejdb vs sqlite →Embedded, transactional key-value and JSON document engine in a single C file, with Jx9 scripting.
ejdb vs unqlite →Embedded NoSQL document store for Java and Android with pluggable MVStore or RocksDB storage.
ejdb vs nitrite →Serverless single-file NoSQL document database for .NET, in the spirit of SQLite.
ejdb vs litedb →Embedded JSON document database with SQL++ queries, vector search and sync to Couchbase.
ejdb vs couchbase-lite →Embedded BSON document database for Rust with a MongoDB-like API and optional wire-protocol server.
ejdb vs polodb →EJDB FAQ
What is EJDB?
EJDB is a document database by Softmotions (Anton Adamansky), first released in 2012. EJDB2 is a small C library that gives applications an embedded JSON document store, roughly what SQLite is to SQL. Documents live in collections in a single file on the iowow key-value engine, are queried with JQL (an XPath-like filter and projection language) and can use secondary indexes. An optional built-in HTTP/WebSocket endpoint can expose a database to other processes. Bindings cover Node.js, Java, Android, Swift, Flutter and React Native. The maintainer ships frequent point releases (v2.95 in October 2026). It suits desktop, mobile and IoT apps that want JSON documents without running a server.
Is EJDB open source?
Yes. EJDB is open source. License: MIT License.
Does EJDB support ACID transactions?
Partly. EJDB offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong consistency.
Does EJDB scale horizontally?
EJDB 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 EJDB?
You can self-host it and embed it in your application.
What is EJDB best for?
EJDB is a strong fit for embedded JSON storage in desktop or IoT apps, mobile apps needing a local document store and lightweight local services with an HTTP API. Think twice for multi-user server workloads.
What are the best alternatives to EJDB?
Common alternatives to EJDB include SQLite, UnQLite, Nitrite, LiteDB and Couchbase Lite. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
How popular is EJDB?
EJDB ranks #401 of 844 databases on the WhichDB Score (4.5/100), and #36 among document databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.



