Install
Install the Node package:
npm install mumpix
MumpixDB is the reasoning ledger and structured memory engine of the Mumpix platform. This page is the fast path: install it, run hello world, understand the core API, then move deeper into the full storage-plane docs.
Install the Node package:
npm install mumpix
Create hello-world.js:
const { Mumpix } = require("mumpix");
async function main() {
const db = await Mumpix.open("./hello-world.mumpix", {
consistency: "eventual",
});
await db.remember("User prefers short answers.");
await db.remember("Project uses MumpixDB for memory.");
const answer = await db.recall("what does the user prefer?");
console.log("recall:", answer);
const all = await db.list();
console.log("memories:", all);
const stats = await db.stats();
console.log("stats:", stats);
await db.close();
}
main().catch((err) => {
console.error(err);
process.exit(1);
});
Run it:
node hello-world.js
MumpixDB gives you a local-first durable memory loop: write memory, read memory, inspect state, close cleanly.
const db = await Mumpix.open("./agent.mumpix", {
consistency: "eventual",
});
await db.remember(text);
await db.rememberAll(["one", "two"]);
await db.recall(query);
await db.recallMany(query, 5);
await db.has(query);
await db.list();
await db.clear();
await db.stats();
await db.close();
const db = await Mumpix.open("./agent.mumpix", {
consistency: "strict",
});
Use verified mode when you need audit-oriented flows:
const db = await Mumpix.open("./verified.mumpix", {
consistency: "verified",
});
await db.remember("Verified write example.");
const audit = await db.audit();
console.log(audit);
await db.close();