I wanted to build something for the kids in the family: a globe you can spin, zoom into, and land on a handful of real places. Not a geography quiz, just a toy. There's a well-known concept for this kind of thing (myearthtoy.com), but I didn't want to reuse anyone's assets or code. I built my own: original landmark geometry, own interaction design, own data pipeline. The result is Terra Toy, live at terra-toy.heyvaibhav.dev.
Starting with discipline, not features
Before I touched a single landmark, I set up the boring stuff: a directory layout from a written plan, a CI workflow with a real check job, and e2e/preview checks stubbed out but visible in the pipeline rather than silently skipped. It's tempting to skip this on a side project because nobody's reviewing your PRs. I did it anyway, because the pattern I was building (a reusable setup for this kind of 3D web toy) is worth more than this one globe. The next similar project starts from a working skeleton instead of a blank folder.
Ten landmarks, one card each
The toy has ten landmark models: things like Mount Fuji, the Sydney Opera House, and a stretch of the Great Wall, each with its own icon on the globe and its own info card. You can deep-link straight to one with a ?focus parameter, which also made the automated tests easier to write: fly to a known landmark, check the card renders, done.
Writing the cards taught me something unglamorous: a landmark card is only as good as the one fact you choose to print on it. The Great Wall is a good example. Most people picture the restored, heavily photographed section near Beijing and assume that's "the Great Wall." The actual structure is a patchwork of walls built across centuries, and its real length is a very different number from the stretch tourists walk. Getting that one line of text right took more care than modeling the wall itself.
The map decision I didn't want to make
The part that actually slowed me down wasn't 3D rendering, it was borders. I used a public domain basemap (Natural Earth) for the globe's political overlay, and that dataset flags a long list of places as "disputed." Some of those flags are genuine, contested sovereignty claims. Others are just coastline artifacts, sea fringes that got tagged as disputes by whatever process built the dataset, with no real-world controversy behind them.
A toy aimed at kids is the last place I wanted to take a side on a live geopolitical dispute. So I set myself one rule and applied it everywhere, with no exceptions and no per-territory judgment calls: drop the non-disputes (the coastline artifacts), and for everything that remains, render it as a neutral, uniformly-labeled "disputed area" rather than assigning it to one claimant or another. Places like Taiwan, Kosovo, Somaliland, Gaza, the West Bank, Belize, and Sabah are rendered as whole territories, not broken up or specially highlighted, because the moment you start making exceptions for the disputes you've personally heard of, you've made a political statement by omission for the ones you haven't.
It's a small decision in a kids' toy, but it generalizes: any software that touches a world map eventually has to pick a policy for contested geography, even if the honest answer is "we'd rather not comment." The fix isn't to find the "correct" position on each dispute. It's to pick one consistent, boring rule and apply it everywhere, so the toy's behavior is predictable and doesn't quietly encode fifty individual opinions.
The bug that only shows up in your hand
The last fix before I called this one stable was a layout bug I only found by actually holding a phone sideways. On short landscape screens, the landmark info card and the landmarks menu were colliding with the HUD controls, stacking on top of buttons you needed to tap. Nothing in a desktop browser or a tall-phone simulator caught it. The fix was to float the card and the menu clear of the HUD row specifically on that screen shape, rather than trying to make one layout serve every orientation.
It's a reminder that a lot of real-world device testing isn't about more automated coverage, it's about physically rotating the device the way an actual kid would and seeing what breaks.
What I'd keep doing
Three things from this one carried over cleanly to anything else I build as a public-facing toy: set up CI before features, not after; choose one line of text per unit of content and make sure it's actually true, not just plausible; and when the domain forces an opinion you don't want to give, replace it with a rule instead of a hundred individual judgment calls.
Terra Toy is small. The decisions behind it weren't.