An alternative to both memory and file storage is to use a datastore. [NeDB](https://github.com/louischatriot/nedb) is one such implementation that is native to Node.js.