projects

stampbook

2026 · rebuilt
built with
react 19, vite 8, tailwindcss 4, motion 13, maplibre 6, indexeddb
stampbook

the book

the first version went by travel journal: three trips written into the code, each a card with a photo, a date and a google maps link. the rebuild is named after the book the trips go in, so that's what it looks like: an indian passport's navy cover with gold foil, pale security paper with a guilloche pattern, and every trip inked on a visa page as its own entry stamp in red, blue or green.

round red and boxed blue stamps for goa, thiruvananthapuram and llanfairpwllgwyngyll, the longer names set smaller and tighter
goa, thiruvananthapuram and llanfairpwllgwyngyll on the same size stamp. the longer the name, the smaller and tighter it's set.

the map

you search a place with photon, which runs on openstreetmap data, or tap the map to drop a pin and it works out where that is. the map is maplibre with openfreemap tiles recoloured to the paper, and their own borders are swapped for natural earth's india point of view, so jammu and kashmir, ladakh and arunachal pradesh show whole.

the same map of north india twice: the stock tiles with kashmir split by dashed lines, and stampbook with india's full border
the tiles as they ship on the left, with kashmir cut up by dashes. stampbook's borders on the right.

one map

there's only ever one map. it's rendered once and carried from page to page, so opening a stamp flies it in to the place with its pin marked, and going back pulls it out to fit every trip. on a phone it glides from the top of the home page to the top of the entry instead of loading again, while the stamp you tapped flies into its entry.

on the device

trips, notes and photos stay on the device in indexeddb, photos resized before they're kept, with a backup file to move them. a range date picker counts the days you stayed, and it all fits every screen from a 320px phone up without a pixel of layout shift.

last updated