work/packrat

Backup box prototype

Packrat

A backup box built for Packrat, a family photo service: plug in an iPhone, press one big key, and it makes an encrypted full backup.

Prototype

Backing up, 42% through.
Progress running across the keys.

Packrat is a family photo service: help bringing photos and videos together from old phones, computers, drives, discs and apps, sorting them out and planning backup copies. The Packrat page says what it offers. This page is about the backup box being built for it, the first hardware-shaped thing on this site. There is no keyboard and no app to install. The whole interface is a Stream Deck's glowing keys, a voice from a small speaker and, if you want one, a status screen.

Runs on
A small Linux box with a Stream Deck and a speaker; an optional status screen
Built with
Rust (capture engine, iPhone protocols, appliance daemon, Stream Deck and direct-to-display UIs)
Started
October 2026

Inside the box

One key, one encrypted backup

  1. Diagram of the Packrat backup box. You unlock the iPhone, tap Trust and press Back up now on the Stream Deck. The phone connects over USB to the iPhone protocols layer (USB multiplexing, lockdown pairing, encrypted MobileBackup2 and photo transfer), which feeds the capture engine. The capture engine, with its job journal and consent, writes an encrypted backup to the box itself and sends nothing to the cloud. An appliance daemon, a typed state machine on a local socket, starts jobs and drives the Stream Deck keys, the optional status screen and the speaker. The pairing record is deleted after each job.
    Inside the backup box: one key starts the job, the phone's data is encrypted from the first byte, and the backup stays on the box.

The walk-up flow

Plug the phone in. The keys say Unlock your iPhone, then Tap Trust on your iPhone, then a green Back up now. During the backup a progress bar runs across the keys with a time estimate, a spoken cue marks the start and the end, and a green check says Done, safe to unplug. A hold-to-stop key is always there.

Errors are written for people: not enough space, phone unplugged halfway (Resume or Start over), Trust not given, password needed, unsupported phone, or a plain "Something went wrong" with Try again.

The screen

One sentence at a time

Every state of the appliance's status screen says what is happening and what to do next, in words a non-technical person can act on.

  1. Status screen: asking you to tap Trust on the phone.
    Status screen: asking you to tap Trust on the phone.
  2. Ready, with the size of the backup to copy.
    Ready, with the size of the backup to copy.
  3. Backing up, 42% through.
    Backing up, 42% through.
  4. Done, safe to unplug.
    Done, safe to unplug.
  5. A plain-language error: not enough space.
    A plain-language error: not enough space.

The keys

A Stream Deck as the only buttons

  1. The Stream Deck, ready, with the green Back up now key.
    The Stream Deck, ready, with the green Back up now key.
  2. Progress running across the keys.
    Progress running across the keys.
  3. Done.
    Done.
  4. Trust was not given, with a way forward.
    Trust was not given, with a way forward.

Private by design

Backups are encrypted from the first byte and written to the box itself; the box sends nothing to the cloud or anywhere else. Where any further copies live is part of the backup plan agreed with each family. The phone's pairing records are deleted after each job. Photos that only exist in iCloud cannot be captured, and the box says so rather than pretending.

How it's built

  • A Rust workspace: an encrypted capture engine with a job journal and consent, the iPhone side (USB multiplexing, lockdown pairing, encrypted MobileBackup2 and photo transfer) with a wire-level mock iPhone, a small typed state machine served over a local socket, the appliance daemon, the Stream Deck UI and a screen UI that draws straight to the display.
  • One layout abstraction drives several Stream Deck models, from the six-key Mini to the 32-key XL.
  • A subtle safety catch: the USB multiplexer must start with pre-flight disabled, or it writes a plaintext pairing record.
  • Both UIs render every state headlessly in simulators, which is where these pictures come from. 151 tests run against the fake iPhone.
  • Built in parallel against a fixed contract (core, and deck plus deployment), then merged on an integration branch. Not yet deployed to the box; the first real-phone test is still to come.

1 / 10

Diagram of the Packrat backup box. You unlock the iPhone, tap Trust and press Back up now on the Stream Deck. The phone connects over USB to the iPhone protocols layer (USB multiplexing, lockdown pairing, encrypted MobileBackup2 and photo transfer), which feeds the capture engine. The capture engine, with its job journal and consent, writes an encrypted backup to the box itself and sends nothing to the cloud. An appliance daemon, a typed state machine on a local socket, starts jobs and drives the Stream Deck keys, the optional status screen and the speaker. The pairing record is deleted after each job.
Diagram of the Packrat backup box. You unlock the iPhone, tap Trust and press Back up now on the Stream Deck. The phone connects over USB to the iPhone protocols layer (USB multiplexing, lockdown pairing, encrypted MobileBackup2 and photo transfer), which feeds the capture engine. The capture engine, with its job journal and consent, writes an encrypted backup to the box itself and sends nothing to the cloud. An appliance daemon, a typed state machine on a local socket, starts jobs and drives the Stream Deck keys, the optional status screen and the speaker. The pairing record is deleted after each job.