work/sdviewer
Card archive browser
SDVIEWER
A read-only browser for the camera-card archive: what each camera accounts for, every card's files, and zip downloads whose exact size is known before the first byte.
Live
SDVIEWER is the middle of the card pipeline: SDVAULT makes the archive, SDVIEWER lets you look inside it, and INGRESS files it into the library. The cards are mounted read-only, so the viewer cannot change an archived card even by accident.
The overview is a donut of the archive by camera, with totals and one tile per card showing its date, size, file count and camera split. Each tile carries a badge: Verified if SDVAULT made it with a hash manifest, Hand-copied if there is no manifest. An unchecked card never looks like a checked one.
A card's page has its own donut that doubles as a filter, a filename search, sorting, and a checkbox per file with a running total of what's selected. Download card is a plain streaming link; Download selection zips a hand-picked set.
- Runs on
- Web app on the home server, local network only
- Built with
- Node 22, zero npm dependencies, Docker
- Started
- August 2026
Archive
Every card, verified or not
The archive overview: bytes by camera, and one tile per card with its Verified or Hand-copied badge. The three cards are synthetic test data.
One card
Find, select, download
A verified card's file list. Every file selected, with the total size. Filtering by filename. A hand-copied card with no manifest. The same card sorted largest first.
Which camera made this file?
Attribution is a scoring rule. Directory evidence weighs 100, the filename 50, the extension 10: a bare .mp4 means nothing, but a DCIM folder named by the drone maker is conclusive. Every byte of every card is attributed, so each donut adds up to 100 percent. The rules live in one shared file that SDVAULT uses too.
Exact-size zips
The ZIP writer is the interesting part. It writes uncompressed ZIP64, because camera files are already compressed, and it can compute the exact size of the archive before reading any data. The download therefore has a real Content-Length and a real progress bar, even for a 147 GB card. One 20.8 GB test stream landed on exactly the 20,809,483,435 bytes it promised and passed unzip -t, including a 3 GB member. Checksums go in a data descriptor after each file, so nothing is read twice.
How it's built
- No npm dependencies: a hand-written HTTP server, indexer and ZIP writer on a slim Node 22 image.
- The index cache is invalidated by folder modification times. It polls every five minutes instead of watching for changes, because file watching is unreliable across the pooled drives the archive lives on.





