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

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.

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

  1. 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.
    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

  1. A verified card's file list.
    A verified card's file list.
  2. Every file selected, with the total size.
    Every file selected, with the total size.
  3. Filtering by filename.
    Filtering by filename.
  4. A hand-copied card with no manifest.
    A hand-copied card with no manifest.
  5. The same card sorted largest first.
    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.

1 / 6

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.
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.