[1] https://github.com/techfort/LokiJS
LokiJS has multiple persistence options, with JSON files in the filesystem being just one of them.
Alternatively, you could also just use it in-memory or with IndexedDB.
[1] https://github.com/techfort/LokiJS