ejdb
EJDB2 is a lightweight, embeddable JSON database engine written in C that stores documents in a single file. It supports a query language (JQL) inspired by XPath, offers HTTP/WebSocket network endpoints, and provides native bindings for multiple languages including Swift, Java, Dart, and Node.js.
Key facts
Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.
| Field | Value |
|---|---|
| Repository | Softmotions/ejdb |
| Owner | Softmotions |
| Primary language | C |
| License | MIT — OSI-approved |
| Stars | 1.5k |
| Forks | 134 |
| Open issues | 35 |
| Latest release | v2.73 (2022-11-14) |
| Last updated | 2026-07-07 |
| Source | https://github.com/Softmotions/ejdb |
What ejdb is
EJDB2 is a C11-based embedded JSON database with a custom query language (JQL) for filtering, projecting, and modifying documents. It uses IOWOW as its persistent key-value storage backend and IWNET for HTTP/WebSocket APIs, supporting collection joins, indexes, and online backups.
Get the ejdb source
Clone the repository and explore it locally.
git clone https://github.com/Softmotions/ejdb.gitcd ejdb# follow the project's README for install & configurationNeed it deployed, integrated, or customized instead? DEV.co ships production installs.
Best use cases
Implementation considerations
- C library requires careful memory management in host code; consider language bindings (Swift, Java, Dart, Node.js) to reduce complexity.
- Single-file database means no built-in replication; implement custom synchronization logic if multi-device sync is required.
- JQL has no SQL-like joins for multiple collections; collection joins exist but have different semantics than relational outer joins.
- HTTP/WebSocket API (jbs) must be deployed separately if network access is needed; consider authentication (X-Access-Token) and network isolation.
- Index creation and performance tuning require understanding of JQL query patterns; lack of query planner visibility may complicate optimization.
When to avoid it — and what to weigh
- High-performance distributed systems — EJDB2 is optimized for embedded and mobile use cases, not horizontal scaling. If you need multi-node replication, sharding, or distributed consensus, use PostgreSQL, MongoDB, or CockroachDB instead.
- Complex relational queries — JQL is simpler than SQL and lacks features like window functions, recursive CTEs, and complex aggregations. Relational workloads are better served by PostgreSQL or similar.
- Real-time analytics and OLAP — EJDB2 is transactional (OLTP-oriented). Time-series, analytical, and columnar workloads should use ClickHouse, TimescaleDB, or similar specialized systems.
- Requires commercial support or SLA guarantees — Issues tracker is disabled and the project is maintained but not by a company offering commercial support contracts. Community-driven maintenance may not meet enterprise SLA requirements.
License & commercial use
MIT License: permissive, allows commercial use, modification, distribution, and proprietary derivatives with minimal restrictions. Requires only license and copyright notice retention.
MIT license explicitly permits commercial use without royalties or vendor approval. However, no vendor provides commercial support, SLAs, or indemnification. Organizations requiring enterprise support, maintenance guarantees, or liability coverage should conduct independent legal review and consider establishing internal support arrangements or alternative databases with commercial backing.
DEV.co evaluation signals
Editorial assessment — not user reviews. Directional, with an explicit confidence level.
| Signal | Assessment |
|---|---|
| Maintenance | Active |
| Documentation | Adequate |
| License clarity | Clear |
| Deployment complexity | Low |
| DEV.co fit | Good |
| Assessment confidence | High |
HTTP/WebSocket API uses token-based authentication (X-Access-Token header) with no built-in TLS enforcement visible in documentation; deploy behind reverse proxy with TLS termination. No published security audit, vulnerability disclosure process, or hardening guidance. Single-file database has no encryption-at-rest; filesystem permissions are the only access control. Consider threat modeling for sensitive data storage.
Alternatives to consider
SQLite
Single-file embedded database with mature ecosystem, stronger query language (SQL), wider language support, and formal security audit history. Use if you need relational queries or prefer a more established project.
Firebase Realtime Database / Firestore
Cloud-hosted JSON document store with built-in replication, multi-user sync, and commercial support from Google. Use if you need managed infrastructure and cross-device synchronization without self-hosting.
Realm
Embeddable JSON-like database optimized for mobile (iOS, Android, React Native, Dart) with transparent object mapping and cloud sync options. Use if your primary target is mobile and you want opinionated schema/sync.
Build on ejdb with DEV.co software developers
Our engineers can assess whether EJDB2 fits your architecture, evaluate embedded database alternatives, and guide secure deployment. Contact us for a technical consultation.
Talk to DEV.coRelated on DEV.co
Explore the category and the services that help you build with it.
ejdb FAQ
Can EJDB2 be used in a commercial product?
Does EJDB2 support multi-process or multi-user access?
How do I synchronize EJDB2 data across devices?
What platforms does EJDB2 support?
Custom software development services
DEV.co is a software development agency delivering custom software development services to companies building on open source. Our software developers and web developers design, integrate, and ship production systems — spanning web development, APIs, AI, data, and cloud. If ejdb is part of your open-source databases roadmap, our team can implement, customize, migrate, and maintain it.
Need Help Evaluating EJDB2 for Your Project?
Our engineers can assess whether EJDB2 fits your architecture, evaluate embedded database alternatives, and guide secure deployment. Contact us for a technical consultation.