Leverine · Val Town Exporter

Export everything you own on Val Town, before it’s gone.

Val Town goes read-only on December 10, 2026 and shuts down entirely on January 10, 2027. Val Town Exporter downloads all of it — your vals, your blob storage, and your SQLite data — in one command, into a tidy self-hostable bundle on your own disk, using only Val Town’s documented public API and your own API token.

Act before December 10, 2026 $29, one time. The tool is built and packaged; checkout is not live yet — see Purchase. Create your API token before the read-only date, while you still can.

Purchase — $29 one-time What lands in the bundle

An archive box full of rescued apps, databases and gears being carried away from a small town as its drawbridge closes

How it works

Three steps, on your machine

Pure Python 3 standard library: no dependencies, no install, no telemetry, no account with us, no LLM. The exporter runs on your machine and talks only to Val Town’s API.

1

Create a token

Create an API token in Val Town (Settings → API Tokens) — do it before December 10, 2026 — and put it in the VALTOWN_TOKEN environment variable, never on the command line.

2

Run one command

python3 valtown_export.py --out ./my-valtown-export — or run with --dry-run first to list what would be exported, using metadata calls only.

3

Check the manifest

The bundle’s manifest.json indexes everything with sizes and SHA-256 hashes. complete: true means you have everything the API exposes. Resume is built in: if a run is interrupted, re-running into the same directory fetches only what’s missing.

The bundle

What lands on your disk

ValsFor each val: its full metadata exactly as the API returned it, the file and directory listing, environment variable names, and every file at its original path.
BlobsOne file per blob, byte for byte, with an index mapping each original blob key to its file, size, and hash.
SQLiteThe schema as replayable CREATE TABLE statements, a table summary with row counts, and every table’s columns and rows as the API returned them. The database is account-wide, so it is exported once, not per val.
Manifest & guidemanifest.json — the index of everything: ids, paths, sizes, SHA-256 hashes — plus a README explaining how to read and re-host the bundle.

Honest limits

Read these — they’re the honest part

Env-var valuesEnvironment variable values cannot be exported. Val Town’s API exposes environment variable names only — the values are not available through the API at all. The bundle records the names so you know what to recreate; the values must come from your own records. Copy them out of Val Town’s settings by hand before January 10, 2027 if you have no other record.
Default branch onlyOnly each val’s default (main) branch is exported. If you keep work on side branches, merge it or note it before the shutdown.
SQLite via queriesThere is no documented endpoint for downloading the raw database file, so SQLite is exported through queries: the schema is replayed and every row is dumped via the documented execute endpoint. BLOB cell values are preserved in the API’s own JSON encoding rather than decoded to bytes, and views are not dumped (they hold no data).
Config is metadata onlyRuntime configuration — cron schedules, email-handler addresses, custom domains, trigger wiring — is preserved only as metadata inside each val’s record. The bundle preserves the record; it does not re-create the configuration anywhere.
What “complete” meansA complete: true manifest means every item the API listed was downloaded and hash-verified. No exporter can prove the API listed everything — spot-check the counts against your own knowledge of your account.

Purchase

$29, one time — against a hard deadline

The exporter itself is MIT-licensed in the pack: yours to keep, modify, and share. The dates are not ours and they don’t move: read-only December 10, 2026; shutdown January 10, 2027. After that, unexported vals, blobs, and SQLite data are gone.

Val Town Exporter

$29

One-time purchase · USD

The exporter, its API module, and the bundle guide — one command, resumable, hash-verified.

Checkout status

Checkout opens at launch. The Paddle product for Val Town Exporter has not been created yet, so there is deliberately no buy button on this page today. When checkout opens, it will appear in this section at the $29 price above — and the December 10 read-only date is the one to plan around, token first.