Just published to npm multiwaydb - simple in-memory database,
structured as a series of named key/value stores, accessible directly
via JS or over REST.
a) Can initialize from json file on disk
b) Can instantly clear one table or the whole database
c) Can be accessed simultaneously via the same in-memory process using
db.get, db.set, db.del, db.find; and via REST API (hence "multiway")
I released it under MIT this time, much easier.
Look for it in npm as "multiwaydb", or at
https://github.com/deitch/multiwaydb
I use it primarily for testing - my test harness loads the database
using the Direct API, the app accesses it using the REST API, I can
test results directly in the test harness using the Direct API - but
interested in how people would use it.