Databases are hard. You need a server or it's sql. NullDB is a NoSQL DB made in under 5 minutes (4:08 to be exact) that focuses on simplicity.
This DB was made as a joke and it shouldn't be used for production
Make a new file (for case of these examples db.json) and place this as contents
{}
const NullDB = require("./ndb") // Import NullDB
let db = new NullDB(__dirname + "\\db.json") // Make a new DBconst NullDB = require("./ndb") // Import NullDB
let db = new NullDB(__dirname + "\\db.json")// Make a new DB
db.set("foo", "bar") // Set foo to bar
db.commit() // Commit changesconst NullDB = require("./ndb") // Import NullDB
let db = new NullDB(__dirname + "\\db.json") // Make a new DB
console.log(db.get("foo")) // Get value of foo