Vordli

Daily Wordle inside Telegram, in Russian, Ukrainian and English, with a leaderboard per group chat.

  • typescript
  • telegram
  • postgres
  • node
Status
live
Main language
TypeScript
Last commit
October 25, 2026
Vordli preview

Vordli is Wordle as a Telegram Mini App. Everyone gets the same five-letter word each day and six guesses, and the leaderboard belongs to the group chat the game was opened from. Three editions run from one codebase as separate bots; the English one serves the real NYT answer for the date.

What it does

  • Keeps a live board image in the group with everyone who has guessed today.
  • Opens each day’s group post with the chat’s streak and yesterday’s results.
  • Reveals the finished day’s answer in a results channel as a spoilered image.
  • Sells hints and custom words for a future day for Telegram Stars, with a moderation queue.
  • Prints the chat’s all-time table as text on /leaderboard.

Drawing board images without stalling the server

The server is Node 22 with Fastify, grammY and Postgres, and board images are drawn with canvas. PNG encoding turned out to be about 80% of a render: a 40-player board took 1.34 s, 1.06 s of it in the encode. canvas.toBuffer() does that synchronously. At the midnight rollover, when the recap renders for every chat and every player opens the app, it stopped the server from answering requests. The async canvas.encode('png') moves the same work to a libuv thread.

The live board is redrawn as people guess, so its drawing also moved to a worker thread. The main-thread stall per board dropped from 20.6 ms to 7.3 ms, at a cost of about 20 ms more wall clock, and any worker failure falls back to rendering in-process. Refreshes are throttled per chat to one every 10 to 90 seconds, scaled by the number of active chats so the total stays under Telegram’s limit of about 30 messages per second.

← all projects