I just came across a very very useful tool: dexie-logger, with clear purpose and clean code: To log all the calls against IndexedDB at the DBCore level in dexie and measure performance. It’s a game changer when in need to understand what’s happening under the hood.

It’s also extremely easy to apply. I tried it with one of my apps that exposes the Dexie instance `db` on window. I could apply the logger directly in devtools and see it in action:
// I imported it dynamically in devtools console:
const {default: dexieLogger} =
await import ('https://unpkg.com/dexie-logger?module');
// I applied it into my already opened Dexie db and reopened it:
db.use(dexieLogger({tableWhiteList: ["tasks", "activities"]}));
db.close();db.open();
Voila! I got every access of the tables “tasks” and “activities” logged.
Please star this fantastic tool on Github: https://github.com/10play/dexie-logger. It seems the project is already 3 years old and that there are more ideas for it, such as integrating it as a devtools extension. Feel inspired to contribute? It would be amazing to see it as a devtools extension.
The project also has its own logotype and web site:

This is really worth some more attention. Thank you Noam Golani for a great tool!
dexie-logger was originally published in Dexie.js on Medium, where people are continuing the conversation by highlighting and responding to this story.
© 2014-2025 Awarica AB
Made with love for great people.
Read Terms & Conditions and Privacy Policy.