Tommo's Corner
My travel blog, rebuilt as a self-hosted site with its own writing app.
- Astro
- MDX
- Tailwind
- Node
- SQLite
- TipTap
- MapLibre
- Docker
- Cloudflare Tunnel
The problem
My Japan blog lived on WordPress.com, with the photos on Flickr. It did the job, but I couldn’t really change anything, and I wanted things WordPress wasn’t going to give me: maps of where I’d actually been, full-res photos, and a way to write up a trip from my phone while I’m still on it.
What I built
A new blog, front end and back end, running on my home server. A migration script brought all 43 posts across from WordPress, along with the 4K originals from Flickr, and the old WordPress links redirect to the new pages so nothing from Google breaks.
The public side is Astro and MDX. Posts can drop in widgets: a slider comparing an anime scene with the real place, location cards and route maps (MapLibre), photo grids, and a lightbox that loads the full-size photos. Every place from every post ends up on one big map.
Behind that is the Studio, a writing app built on TipTap. I can write and publish from my phone, drag photos straight in, and pick places off a map. It keeps drafts and revision history, and saves are checked for broken markup and edit clashes before they’re written. Once a post is saved, the live site rebuilds itself in about 10 seconds.
The back end is Node endpoints for comments, page stats and the Studio. Stats go into SQLite without cookies or stored IP addresses, and new posts go out to subscribers as an email newsletter.
Hosting it myself
It runs in Docker on my home server. There are no ports open on my router; visitors come in through a Cloudflare Tunnel.
Deploys are one command: it builds the next version, runs it next to the live one, smoke-tests it in a headless browser at phone and desktop sizes, then swaps it in. Rollback is one command as well. Nightly backups go to my NAS and Cloudflare R2, and Home Assistant tells me if the site goes down.
Where it’s at
It’s live with all the old posts, every place pinned on the map, and 27,000+ reads carried over from the WordPress days. It’s also the main thing I’m working on at the moment, so it keeps changing.