Skip to content

batuhankendirli/ldb-viewer

Repository files navigation

LDB Viewer

A browser-based viewer for LevelDB and RocksDB SSTable files. Drop in a .ldb or .sst file and instantly browse its key/value entries — no server, no upload, everything runs locally in your browser.

Features

  • Drag-and-drop or click-to-browse file loading
  • Supports LevelDB and RocksDB SSTable formats
  • Supports uncompressed and Snappy-compressed blocks
  • Virtualized table for smooth scrolling through millions of entries
  • Search across keys and values with match highlighting
  • Displays deleted (tombstone) entries distinctly
  • Binary keys/values rendered as readable hex

Getting Started

npm install
npm run dev

Then open http://localhost:5173.

Build

npm run build

Output goes to dist/. You can serve it with any static file server.

Browser Requirements

A modern browser with support for:

Chrome 90+, Firefox 90+, and Safari 15+ all work.

Known Limitations

  • The entire file is loaded into memory. Files larger than a few hundred MB may be slow or cause the tab to run out of memory.
  • Only no compression (0x00) and Snappy (0x01) block compression are supported. Zstd, LZ4, and other compression types will return an error.
  • Checksums (CRC32) stored in block footers are not verified.

Tech Stack

License

MIT

About

Created this project for personal use, but decided to make it public since it might be useful for others as well. It's a web-based viewer for LevelDB/RocksDB SSTable files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors