MongoDB data directory viewer

Drop the files of a MongoDB data directory to see inside: the collections from MongoDB's catalog, every document as BSON with its record ID, every index key decoded from KeyString, the pages and cells of any WiredTiger table, and the journal, replayed on top of the last checkpoint as MongoDB does at startup.

Drop a data directory here (the folder itself, or all its files: WiredTiger.turtle, WiredTiger.wt, _mdb_catalog.wt, the collection-* and index-* files, and journal/)

Read in your browser, a page at a time. Nothing is uploaded.

What to drop

The dbPath of a stopped mongod (/data/db in the official image, /var/lib/mongodb in packages), or a copy of it. Dropping the folder reads its subfolders too; diagnostic.data is skipped. Files are read in your browser, all at once, so very large directories need a lot of memory. The sample is 186.9 KB to download.

What it reads

WiredTiger's row-store files with snappy, zstd or zlib compression, every page checksummed, cells with time windows and prefix compression, overflow items; the metadata, the catalog and the size storer; BSON of every type; KeyString keys for indexes of every common type (ascending and descending, compound, multikey, unique); the journal, snappy-compressed records included, replayed as recovery does. Not yet: clustered collections (string record IDs), time-series buckets, Decimal128 values in index keys, encrypted storage, and the history store's old versions.

The parsers are written from the WiredTiger and MongoDB source and tested against a data directory MongoDB 8.3.17 wrote: every document and index key must match what MongoDB returns, at the checkpoint and after replaying the journal. They do not use MongoDB or WiredTiger code.