Home - louischatriot/nedb GitHub Wiki

Embedded persistent database for Node.js, in pure Javascript, with no dependency (except npm modules of course). The API is a subset of MongoDB's. You can use it as a persistent or an in-memory only datastore.

Module name on npm is nedb, and there is now a browser version.

API

It's a subset of MongoDB's API (the most used operations). The current API will not change, but I will add operations as they are needed. Summary of the API:

  • Creating/loading a database
  • Inserting documents
  • Finding documents
  • Updating documents
  • Removing documents
  • Indexing
  • Api reference

Change log

If you wonder why something doesn't work as in the documentation, first thing to do is to check the change log to see if it is supported in your version.