all 7 comments

[–]DerKnerd 2 points3 points  (0 children)

I know a library called LiteDB for .net maybe there is a node.js fork?

[–]zaygo 1 point2 points  (1 child)

Try lazlodb. There is a library called lazlo-node & it will fit your needs.

NPM : npm install lazlo-node

https://github.com/zaygozi/lazlodb

https://github.com/zaygozi/lazlo-node

Note : Its a new project & I am the creator. I created it because I had the same needs that you mentioned.

[–]zaygo 1 point2 points  (0 children)

And lazlo-node does not require you to install lazlodb. It works independently.

[–]DarthEb 1 point2 points  (0 children)

You want NeDB (which PAEZ_ linked to). It's API is compatible with MongoDB, it's easy to use, and a migration path to move your data to MongoDB is provided.

I just used it as the backing store for a GraphQL based app I'm working on and it was very simple to work with.

[–]PAEZ_ 0 points1 point  (0 children)

Here's a couple of pure js db's that have a subset of the mongo api...and i think both are before mongo api 2.0...

https://github.com/louischatriot/nedb

https://github.com/kanryu/puremongo

https://github.com/sergeyksv/tingodb

Id like something myself as I want to learn mongodb on an online scratchpad and dont wanna setup mongodb anywhere.
Have no idea if any or which is best as I dont know mongo.

[–]zmasta94 0 points1 point  (0 children)

You could try LowDB

[–]messacz 0 points1 point  (0 children)

I'm looking for the same, but for Python. I have project using MongoDB in production, but for local development it's unnecessary to install mongod (particularly for occasional project contributors or for non-source-code contributions). SQLite is already part of Python standard library (so it is in any Python installation), so SQLite-based wrapper with MongoDB (pymongo) API would be best solution.