Skip to content

This website is still under development, so some information may not be accurate yet.Under development · details may not be accurate

Gatanki

A free daily puzzle site with 37 logic and geography games, live at gatanki.com: every puzzle is made and checked by a computer, with streaks, leaderboards and friends.

Gatanki: Fast, satisfying puzzles, new every day. The home page in a browser window beside the Vials puzzle on a phone.

The idea

Gatanki (Bulgarian for "riddles") is a collection of short daily puzzles: logic grids, paths, number and sorting puzzles, deduction and strategy games, and geography guessing games. Every game has a new daily puzzle plus easy, medium, hard and expert levels, and all of it is free, with no sign-up needed to play. None of the puzzles are written by hand. Each game has its own generator and solver, so there is always another puzzle, and every one is checked by the computer before it reaches the site.

Implementation

  • Bun workspaces for the website, the API and a shared puzzle engine, all in TypeScript.
  • React 19 and React Router 7 in framework mode with Vite: every game page is prerendered and hydrates straight into the game.
  • A puzzle engine with a generator, a solver and hints for each game. Banks of puzzles for every difficulty are generated ahead of time, and the daily schedule is worked out from the date.
  • An Elysia API on Bun with Better Auth: sign-in with an emailed code or Google, a username and animal avatar, and streaks, XP and leaderboards kept by the server.
  • PostgreSQL through Drizzle ORM, running beside the app on my own server with nightly backups. The app ships as a Docker image built in GitHub Actions.
  • Geography games draw countries from TopoJSON with d3-geo, and the hidden-answer games get each daily puzzle from the API instead of shipping it with the page.
  • Sentry error reporting on the website and the API, with uploaded source maps, and self-hosted Umami analytics.

Challenges

  • Writing a generator and a solver for 37 different games, each producing puzzles that feel right at four difficulty levels.
  • Keeping the answers to the guessing games out of the page source while still prerendering every page.
  • Giving 37 different boards the same controls on a phone and a desktop: hints, undo, restart, pause and sharing.
  • Accounts without passwords: a six-box code entry with paste and autofill, a profile step that can't be skipped, and policy notices that reach only the players who joined before a change.

Result

Gatanki is live at gatanki.com in early access, with 37 games in 11 categories, daily leaderboards for everyone, friends and groups, and challenge links with their own link previews. It deploys automatically on every push to main, and the engine's daily schedule, streaks, points and rewards are covered by Bun tests.

Games

Every game has a daily puzzle and four difficulty levels.

  • Grid logic: Crowns, Parcels, Halves, Quilts, Inks
  • Paths: Trail, Footbridges, Circuits, Fuses
  • Numbers: Sudoku, Minesweeper, Balances, Targets
  • Sorting: Vials, Swaps, Crates, Belts
  • Moves: Scampers, Captures, Tugboats, Rinks, Ferries
  • Deduction: Fibs, Beams, Lineups, Pegs
  • Spatial and shapes: Tangles, Foldouts, Seedpods, Sticks, Layers
  • Coding and strategy: Rovers, Fours
  • Geography: Crossings, Homing, Outlines, Banners

Features

  • A new daily puzzle in every game
  • Hints, undo, restart and a timer
  • Streaks and XP that follow you across devices
  • Leaderboards for everyone, your friends or a group
  • Challenge links to send a puzzle to a friend
  • Light and dark themes