fake-indexeddb 6.x
Use fake-indexeddb ^6.0.0 as a pure-JavaScript, in-memory IndexedDB implementation in Node.js scripts and test environments.
- For
fake-indexeddb@6.2.5- Verified
- 2026-09-08, 3 examples executed
- Package
@modootoday/pmcp-fake-indexeddb@6.0.0
What it covers
- What this package provides
- Global setup
- Explicit imports
- Resetting in-memory state
- Common version-6 mistakes
- Other entry points
- Not covered
One example from this skill
This is the skill's own text, not a summary of it. It runs: that is what verifying means here.
import "fake-indexeddb/auto";
import assert from "node:assert/strict";
const request = indexedDB.open("global-example", 1);
await new Promise<void>((resolve, reject) => {
request.onupgradeneeded = () => {
const db = request.result;
const store = db.createObjectStore("books", { keyPath: "isbn" });
store.createIndex("by_title", "title", { unique: true });
store.put({ isbn: 123456, title: "Quarry Memories", author: "Fred" });
};
request.onsuccess = () => {
const db = request.result;
const read = db.transaction("books").objectStore("books").get(123456);
read.onsuccess = () => {
assert.deepEqual(read.result, {
isbn: 123456,
title: "Quarry Memories",
author: "Fred",
});
db.close();
resolve();
};
read.onerror = () => reject(read.error);
};
request.onerror = () => reject(request.error);
});
What it did in the sandbox
Verifying this skill meant installing the package and running code against it with no route out. This is what happened, quoted from the run. The full ledger lists every package examined, including the ones that never became a skill.
-
prepare: huskythe package -
prepare: huskythe package
Getting it
With a subscription:
npx -y @modootoday/pmcp login
npx -y @modootoday/pmcp install @modootoday/pmcp-fake-indexeddb
It installs as a dev dependency of your project, and the MCP server finds it there like any other skill.