Every word came from somewhere.

Unrolling the map…
How it's built

A word, a globe and a private scoreboard

Homeword is a daily geography puzzle about where English words come from, built to practice serverless design on AWS. One word a day: you guess where on Earth it was born by dropping up to three leaves on a globe. Each leaf turns to point toward the answer, and wilts first if you were more than 2,000 miles off. Land inside the right country and you win. Then you get one bonus leaf to find the exact spot, or you can skip straight to the answer. Friends and family in the same circle see where everyone's first leaf landed.

  1. Today's wordThe page asks an AWS API for the word and a random place to start the globe, always far from the answer.
  2. Drop a leafTap the globe where you think the word started.
  3. Server scores itA Lambda function checks the leaf against the country's real borders and saves it in DynamoDB. You only get back a direction.
  4. Found it?A hit ends the round with leaf confetti. The country turns green and you get one bonus leaf for the exact spot.
  5. The revealThe word's route is drawn from its birthplace to you, and your leaves pile up at the bottom of the page.

Decisions worth noting

  • No peeking. The birthplace and your distances never reach the browser until your round is over, so the page source can't spoil it. During the bonus leaf the server sends only the outline of the country you already found.
  • Direction, not distance. A leaf points one of eight compass directions toward the answer. That is enough to steer the next guess without turning the game into a math problem.
  • Real borders. Country outlines come from Natural Earth, padded slightly so a guess on the coast still counts and simplified so the whole world fits in one compressed DynamoDB item. The server tests each leaf with a point-in-polygon check.
  • The globe is hand-rolled. Each pixel is projected back to a latitude and longitude and looked up in a land texture built from the same data. No map library.
  • Points out of 100. Finding the country on leaf 1, 2 or 3 sets the base (60, 45 or 30), the bonus leaf adds up to 40 and close misses add a few more. The server works it out, so two people who both found it on leaf 3 usually end up with different scores.
  • Earlier words open up. Finish today's word and the server lets you play any day before it, with the same scoring and the same secrecy.
  • A counter that never resets. Every leaf anyone drops adds one to a single DynamoDB item with an atomic update, so two people playing at the same moment can't lose a count.
  • No accounts, no location tracking. A random id lives in your browser, circles use first names, and you pick your own city from a list.
  • The whole world, on purpose. Most English words trace back to Latin, French or German, so a random word would land in Europe most days. The list is hand-picked from everywhere else, words with disputed origins are left out, and no region comes back within six days.

Built with

  • AWS Lambda (Python)
  • API Gateway
  • DynamoDB
  • CloudFormation
  • Canvas
  • Natural Earth
  • Vanilla JS
  • Vercel