Persistence Fleet, killing a 33 MB JSON blob with one migration script
The slowest part of the old Persistence Fleet site was a JSON file. Thirty-five megabytes of aircraft photos, base64-encoded, living inside the same blob the app parsed on every load.
Persistence Athletics in Seattle has 20 museum-grade scale-model aircraft on its walls, organized into 6 wings. The first version of the showcase was a Replit full-stack app: Postgres, an admin panel, a Gemini call, Replit object storage, and that JSON blob. It worked. It also carried a backend and a database to serve content that never changes.
So I rebuilt it as a pure static site and threw the backend away.
The shape
A static Vite 5 build. React 18. TypeScript. Tailwind through PostCSS. wouter for routing, framer-motion for the gallery. Aircraft content lives in hand-edited TypeScript files, images on disk as WebP. nginx on a DigitalOcean box, TLS from Let's Encrypt. 20 aircraft, 6 wings, 3 items on the acquisition radar. The whole dist build is 1.4 MB across 84 files. npm audit reports 0 vulnerabilities. A deploy takes about 10 seconds.
old: Replit full-stack app, Postgres + admin + Gemini + object storage, 35 MB of base64 PNGs inside one JSON blob
new: static Vite + React + TS, no backend, no database, 0.9 MB of WebP across 33 filesOne script, one pass
The migration was a single file, migrate.mjs, run once. It read the legacy JSON, pulled each aircraft record out into a clean TypeScript object in aircraft.ts, and decoded every base64 image back into a real PNG on disk. Then sharp converted all of it to WebP at 80 percent quality.
The numbers told the story. Roughly 35 MB of base64 PNGs became 33 WebP files totaling 984 KB. That is about 97 percent smaller. The aircraft galleries alone average 28 KB per image. The site now loads the way a static site should, because it is one.
The data plate
Each aircraft gets a detail page built like a museum placard. A data plate with the airframe specs. A gallery lightbox. A short system story explaining what the aircraft is and why it earned a spot on the wall. And a Curator's Take, the one paragraph of opinion that makes the page feel like a person picked these.
The look is an engineering-blueprint aesthetic: deep navy, cyan accents, Antonio for display type, IBM Plex Sans Condensed for body, JetBrains Mono for the technical labels. It reads like a hangar manifest, which is the point.
The hamburger
On June 4, 2026 I shipped the mobile menu in Header.tsx. Navy and cyan, Antonio display type, the station time tucked inside the menu rather than crowding the bar. It closes on route change, locks body scroll while open, and gets out of the way. Small, but it is the kind of detail that separates a real site from a desktop layout someone forgot to finish.
Prerendering does the rest of the quiet work. prerender.mjs generates a static HTML stub per route with OG and Twitter cards plus JSON-LD: CollectionPage, BlogPosting, VisitorAttraction, BreadcrumbList. Sitemap and robots.txt ship with the build. The crawlers see real pages, not an empty div waiting on JavaScript.
What I learned
A backend you do not need is a liability you keep paying for. The old app had Postgres, an admin panel, and object storage to serve 20 records that change a few times a year. Killing all of it removed the database, the AI dependency, and the attack surface in one move. Content lives in TypeScript files now, edited by hand, versioned in git.
Base64 in JSON is a tax you pay on every load. Encoding images as text inside the data blob inflated 35 MB of photos into something the app parsed and shipped wholesale. Pulling them out to real WebP files cut the image footprint to 0.9 MB, about 97 percent. The fix was not clever, it was just moving bytes to where bytes belong.
A one-shot script beats a careful manual migration. I could have copied 20 aircraft by hand and gotten it wrong on number 14. Instead migrate.mjs did the extraction and decoding in one pass, deterministically, and I deleted it when it was done. The legacy app is gone and the new content is clean enough to edit forever.
If you are carrying a backend to serve content that does not move, or paying for infrastructure heavier than the problem, that is the kind of thing I fix at Autosterea.
First published on ravikantdewangan.com.

