DEV Community

sazerfenor
sazerfenor

Posted on AI-assisted

A daily Wordle hint page that never shows yesterday's answer as today's

The most common complaint about daily puzzle hint sites is opening "today's answer" and getting yesterday's. I built a small hint site for the four NYT word games, and most of the work went into making that impossible.

Fetch often, publish late

A scheduled job runs every 15 minutes. It fetches today's and tomorrow's puzzle when they're missing, refreshes them every few hours in case the publisher corrects something, and backfills any missing day from the last month. A date's page goes live only once that date has started in Central Europe, so answers don't appear early. If today's puzzle isn't in yet, the page says "not updated yet". It never falls back to an older answer.

Hints computed from the answer

The hints are worked out from the answer itself, so they can't drift from it:

The data sources and schedule are written up in how we get the answers. The site isn't affiliated with The New York Times and has nothing to play. You play on the publisher's site. Disclosure: it's mine.

If you've built anything on a daily schedule, how do you handle the "not published yet" window?

Top comments (0)