EJDB

active

by 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.

documentembedded libraryopen source (permissive)mature

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

✓Secondary indexes
✓JSON
✓Durable persistence
✓Online schema changes
–Transactions
–Joins
–Full-text search
–Vector search
–Geospatial
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Compression
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Streaming ingest
–Offline sync
–Runs in WebAssembly

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

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsC API, HTTP REST / WebSocket (optional)
client languagesC, JavaScript, Java, Swift, Dart, Kotlin

Alternatives to EJDB

Compare all→
SQLiteRelational75.5

The in-process SQL engine that ships in every phone, browser and OS: one file, zero servers.

ejdb vs sqlite →
UnQLiteKey-Value4.1

Embedded, transactional key-value and JSON document engine in a single C file, with Jx9 scripting.

ejdb vs unqlite →
NitriteDocument2.7

Embedded NoSQL document store for Java and Android with pluggable MVStore or RocksDB storage.

ejdb vs nitrite →
LiteDBDocument10.8

Serverless single-file NoSQL document database for .NET, in the spirit of SQLite.

ejdb vs litedb →
Couchbase LiteDocument7.9

Embedded JSON document database with SQL++ queries, vector search and sync to Couchbase.

ejdb vs couchbase-lite →
PoloDBDocument3.2

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.