Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including sails-nedb with all npm packages installed. Try it out:

var sailsNedb = require("sails-nedb")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

sails-nedb v0.10.0

NeDB adapter for Sails / Waterline - 0.10.x


NEDB Adapter Build Status

Waterline adapter for NeDB.

A persistent object store which uses Node Embedded Database as the storage engine.


Install from NPM.

$ npm install sails-nedb --save

The NeDB dependency is actually pulled from my forked repo of the original, because I needed to add aggregation support at the DB layer.

Sails Configuration

Add the nedb config to the config/connections.js file. No special configuration is necessary.


A big thanks to the contributors of NeDB, sails-disk, and sails-mongo. sails-nedb owes it in no small amount to each of these projects for its existence :).

About Sails.js

About Waterline

Waterline is a new kind of storage and retrieval engine. It provides a uniform API for accessing stuff from different kinds of databases, protocols, and 3rd party APIs. That means you write the same code to get users, whether they live in mySQL, LDAP, MongoDB, or Facebook.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free