NeDB

Embeddable persistent document store for Node.js and browser with a MongoDB-compatible API. Stores data in a file-based append-only format (or in-memory for tests). No external server required — the DB runs in-process. @seald-io/nedb is the actively maintained fork of the original archived nedb project.

Evaluated Mar 06, 2026 (0d ago) v1.8.x (@seald-io/nedb 3.x)
Homepage ↗ Repo ↗ Databases embedded sqlite document-store nosql node.js browser offline lightweight
⚙ Agent Friendliness
64
/ 100
Can an agent use this?
🔒 Security
78
/ 100
Is it safe for agents?
⚡ Reliability
76
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
--
Documentation
80
Error Messages
72
Auth Simplicity
100
Rate Limits
100

🔒 Security

TLS Enforcement
100
Auth Strength
70
Scope Granularity
60
Dep. Hygiene
75
Secret Handling
85

Local embedded database. No network exposure. Data stored in plaintext — encrypt at rest if sensitive data. Original package abandoned; use @seald-io fork for security patches.

⚡ Reliability

Uptime/SLA
90
Version Stability
72
Breaking Changes
70
Error Recovery
70
AF Security Reliability

Best When

You need a zero-dependency embedded document database for a single-process Node.js agent, CLI tool, or Electron app.

Avoid When

You need horizontal scaling, replication, or the full MongoDB aggregation pipeline — use MongoDB Atlas or a proper embedded option like SQLite.

Use Cases

  • Store agent state, task queues, or conversation history in a persistent file-based document store without running a database server
  • Prototype agent backends with MongoDB-compatible query syntax before migrating to a real MongoDB instance
  • Build lightweight desktop or CLI agents that need persistent document storage without Docker or system dependencies
  • Cache LLM responses or agent results locally with document-oriented storage and indexes
  • Run integration tests against an in-memory NeDB instance as a MongoDB-compatible stub

Not For

  • Production workloads at scale — NeDB is single-process and not designed for high-concurrency or large datasets
  • Applications needing full MongoDB feature set (aggregation pipeline, $lookup joins, change streams)
  • Multi-process or clustered applications — NeDB does not support concurrent file access from multiple processes

Interface

REST API
No
GraphQL
No
gRPC
No
MCP Server
No
SDK
Yes
Webhooks
No

Authentication

Methods: none
OAuth: No Scopes: No

Local library — filesystem permissions control access. No built-in authentication.

Pricing

Model: open_source
Free tier: Yes
Requires CC: No

MIT license. Original project archived; @seald-io/nedb is the active fork.

Agent Metadata

Pagination
none
Idempotent
Partial
Retry Guidance
Not documented

Known Gotchas

  • NeDB's append-only format grows indefinitely — must call db.persistence.compactDatafile() periodically or on startup to prevent unbounded disk growth
  • The original nedb npm package is abandoned (last release 2016) — always use @seald-io/nedb for active maintenance and Node.js 18+ compatibility
  • No schema validation — documents can have any shape; agents must validate before insert to avoid data corruption
  • Queries use MongoDB-style selectors ($gt, $in, $regex) but lack $lookup and aggregation pipeline — complex joins require application-level code
  • In-memory mode (no filename) loses all data on process exit — only use for tests or ephemeral caches
  • Single-file storage means file corruption (power loss during write) can corrupt the entire database — use WAL-based SQLite for higher durability requirements

Alternatives

Full Evaluation Report

Detailed scoring breakdown, competitive positioning, security analysis, and improvement recommendations for NeDB.

$99

Scores are editorial opinions as of 2026-03-06.

5211
Packages Evaluated
26151
Need Evaluation
173
Need Re-evaluation
Community Powered