Search the site

Press Enter to search, Esc to close.

Kalemdaş: How We Built Word Games That Start With a Link

Kalemdaş is where you play word and logic games with your friends in the browser: kalemdas.com. You open a game, share the link, and everyone joins from their own phone.

The name comes from the Turkish kalem, a pen, and the -daş of arkadaş, a friend: those who share a pen. In this article I describe how we built it: how a room works, which decisions we made and why, and what it costs us.

The first commit landed on 12 October 2026, and more than 850 commits have followed since. The site first opened as "Utopical Games" at games.utopical.dev and moved to its own domain on 27 October. Its codebase deliberately shares the layout of this site's repository, whose architecture I described in a separate article: The Architecture You're Visiting: How This Site Runs on GCP

One link, one table

The product makes a single promise: to gather a group of friends around the same game in a few seconds, without asking anyone to open an account or install an app. In the Poetry Game everyone writes a poem from the two or three words a round brings; in Name Place Animal a letter is drawn and every category needs a word that starts with it; in Word Search you find the words hidden in a grid of letters; in Sudoku everyone solves the same grid. We keep adding new games to the list.

The host opens a game and sends the link to the group, as a link, a QR code or through the phone's share menu. The same link opens both a player's seat and a spectator's; whoever joins chooses which.

An account is optional. Playing as a guest is the default: nobody is asked to sign in to open, join or play a room. Someone who signs in with Google or Apple keeps their stats, badges, streak and friends list. What an account keeps is counters, never what was written.

How a room works

A visitor who taps the link is signed in in the background through anonymous authentication, without filling in anything. If they sign in with Google during a game, the same identity is linked to the account, so the room in progress is not lost. Guest identities older than thirty days are deleted on their own.

Each room is a Firestore document, and players see its changes at once through realtime listeners. The real decision was who moves the room forward:

  • A room moves on only on the server. A single callable function, stepRoom, takes every phase step on the server's clock inside one transaction. The Firestore rules refuse every phase change that comes from a client, the host's included.
  • Round content is drawn as the game starts. Words, letters, questions and grids are drawn on the server for every round at once, when the game begins. That keeps rounds from repeating, and since the host's browser draws nothing, the host cannot know a round before everyone else.
  • Results are never written. Scores are computed on each player's device and stored nowhere, and a result that is never written cannot be forged.
  • The game logic lives in one place. The functions bundle the app's own game code, so the client and the server judge a step with the same code; a second copy kept by hand would drift over time.

Rooms are not permanent. Each room gets an expiry date when it opens, and Firestore's TTL policy deletes an expired room together with its subdocuments. Game rooms are never included in backups either.

No server, a static site

utopical.dev renders its pages on the server. In Kalemdaş we deliberately did not: the public pages are prerendered at build time, and the rooms run in the browser. There is no server producing pages; Firebase Hosting only serves files.

That had a price: the preview of a room link shared on WhatsApp should show the game itself. We solved it in the build step rather than with a server. For each language, the app's shell is copied once per game, with that game's title, description and image written into it. The language redirect at the root address is done not by a function either, but by Hosting's own rewrite rules.

The site is a PWA. Once it has loaded, the service worker opens the game guides and solo practice even without an internet connection; a room, naturally, still needs one.

One function, one cold start

In second-generation Cloud Functions, every function is a Cloud Run service of its own. At first each call had its own function, and each one woke up with a cold start after a spell of idleness. On 25 November 2026 we measured a week of logs from both environments: the first request an instance took waited 2.6 seconds at the median and 3.4 to 4.3 seconds at the 90th percentile, while a warm instance answered in 0.1 to 0.3 seconds.

We turned down keeping an instance always on for each function: that meant about eight dollars a month per function, growing with every new call. Instead, we gathered every call into a single function. A session now waits for one cold start, at its first call, rather than one on every page.

One codebase, three platforms

The Android and iOS apps are not a separate codebase: the same web build runs inside the phone with Capacitor. A small platform file is swapped at build time, so the website's bundle carries not a single line of Capacitor, while the apps use the native share menu, haptics and notifications.

We release the apps with fastlane, under one version number, from the developer's Mac. We set up no separate CI for mobile: at this scale, the macOS minutes of an iOS build were not worth the cost.

Security comes first

Firestore, authentication and storage all sit behind App Check. reCAPTCHA Enterprise on the web, Play Integrity on Android and App Attest on iOS let only the real site and the real apps reach those resources.

Kalemdaş has no passwords: sign-in is through Google and Apple only. We tried a mailed sign-in link as well, but took it out the same day because it did not meet our security principle.

Profile photos uploaded by members do not go straight to storage: they first pass Cloud Vision's inappropriate-content check and are written to a separate bucket by the server alone.

Where AI is, and where it is not

In Name Place Animal, a host with a premium membership can bring an AI referee to the table, when every player is an adult and every player has consented. As each review opens, the server asks a language model which answers do not fit their category, and those answers open struck through. The table can accept an answer back with enough votes: the referee's word is where the discussion starts, never where it ends.

The model receives only the letter, the categories and the answers; never a player's name or identity, and nothing is stored. The primary model is Claude Haiku, with Google's Gemini as its backup; if one does not answer, the call moves to the other.

We drew a line for the paid membership too: every game, mode and theme, friendships and messaging are all free. Only what genuinely costs money per member is paid, namely using your own photo and the AI features. No score, time or hint is ever sold.

Cost

The bill of a serverless architecture grows with traffic, so before launch we worked out what a room consumes. A four-player, three-round room makes about 30–40 writes, 150–250 reads and 8–12 function calls. Our monthly estimate from that:

Rooms a monthEstimated monthly bill
Up to 1,000$0 (within the free quotas)
10,000about $30–32
100,000about $135–210
1,000,000about $855–1,035

At the first growth step, about 95 percent of the bill comes from App Check. We accepted that knowingly: App Check is the site's main guard and was on from day one. Lengthening the token lifetime as traffic grows, and moving to another attestation provider if needed, are on our roadmap. The AI referee costs a tiny fraction of a cent per round, and every AI feature is capped by a fixed daily budget.

Quality and deployment

Nothing is deployed by hand. The flow is the same as on this site: every push to the develop branch runs lint and the whole test suite, and the develop → beta → main merges deploy beta and production. Every deployment ends with end-to-end tests against the live site; if one fails, the CI/CD pipeline rolls back to the last green release on its own.

As of 23 November, the app's unit tests alone had reached 5,258. Beside them run the Firestore rules tests, browser tests with Playwright, and automated walks that play a real room from start to finish as host, player and spectator.

We develop the repository together with AI agents, and the agents' instructions follow the layered layout of this site's repository. I described how that layout was set up here: Claude Code CLI and Antigravity CLI: Where Should a Rule Live?

Conclusion

Most of the decisions behind Kalemdaş answer the same question: how do we gather a group of friends at the same table with one link, safely and at almost no cost? The shortest way to see the result is to open a game and send the link to a friend: kalemdas.com.

If you have a similar product in mind, write to us.


This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License .

Please review our Terms of Use for details on quotation and data mining restrictions.


About Us

In the software industry since 2008, we turn your Utopical ideas into reality with modern AI, robust cloud infrastructures, and custom software.

Our Projects

  • Kalemdaş kalemdas.com — word and logic games to play with friends in the browser.
  • Sevgiyle Büyüyen Fidanlar sevgiyle.org — a personal publication of stories, dreams and writing drawn from nature and everyday life.
  • Super Murat supermurat.com — “Let me make you smile”: a long-running personal blog of notes and humour.
  • Jeux d’Art app.jeuxdart.com — digital and printed artworks and events in one platform.

Our Open Source Projects

  • super-firebase-angular A full-stack sample application that brings Firebase and Angular together · archived
  • hamsi-manager A desktop file manager written for bulk file operations (Python) · archived
  • super-reader A personal RSS reader you can deploy on your own Firebase project · archived

Follow Us