Social game · 2026 — present

Pebbler® for Telegram

From the first spin to the smallest feedback state.

Open the app

I build and operate Pebbler, a casual social game inside Telegram. The experience combines character customisation, career quests, animated rewards, and a persistent game economy.

My work spans design, React and TypeScript interfaces, authentication and payments, Cloudflare Workers APIs, PostgreSQL storage, and localisation. I collaborate with a designer across projects and work with a senior Unity developer on our shared multiplayer codebase.

Making the wheel feel responsive

A spin is a sequence of interactions: pressing the button, watching the wheel move, seeing the pointer settle, and collecting a reward. The interface needs to make those transitions feel connected while preventing another spin from starting at the wrong moment.

I keep the spin controller separate from the page’s presentation. The controller supplies outcomes, balances and available actions; presentation hooks coordinate the wheel, pointer, button and wing. The view combines the pending, spinning and reward states to decide when its controls are busy.

The figure below uses the application’s component and authored wheel configuration, with the prize lineup checked against the live app. A local controller cycles through outcomes so you can try the interactions and read the source alongside them.

Source code
Holy Wheel interface

Holy Wheel. Live prize lineup, checked October 2026. Spin, change the multiplier, and collect rewards; outcomes cycle locally and balances are simulated.

Copy link ↗

Bringing career progression to life

The career page brings a character, a layered environment and several skill tracks into one scene. Completing a quest changes the player’s progress, but it also needs a visible response from the world around them.

JobScene connects quest completion with progress indicators, reward flights and character reactions. Scene configuration supplies the environment and its tracks, while the component coordinates their presentation. It also accepts a suspended state so presentation work can pause when the scene is obscured.

Here, the Pirate Cook scene runs with the matching outfit, sample quests and a local balance. Completing a quest shows how the progression and feedback fit together.

Source code
Career scene interface

Career scene. Explore the Pirate Cook scene and complete the sample quests. Progress stays inside this demo.

Copy link ↗

Making the Gnome your own

The changing room brings clothing categories, skin colors and a live character preview together. Equipping a hat, shirt or pair of glasses updates the animated Gnome while the inventory keeps the current selection visible.

The Spine character layers clothing, facial expressions and body animation. Its emote recordings follow the animation clock, and the shared sound controls stop playback when a preview is muted or hidden.

I created many of Pebbler Telegram’s sound effects using ElevenLabs’ Sound Effects web app, then integrated them into the game’s interactions and animations.

Try the changing room below with all 46 clothing items available locally. Choose an emote to see and hear the character react, or open the same changing room from the Career demo and take your outfit back into the scene.

Source code
Gnome changing room interface

Gnome changing room. Choose clothing, change skin color and play an emote with its original sound. All 46 wardrobe items are available here; selections stay inside this demo.

Copy link ↗

Designing the purchase flow

The bundle dialog has to communicate the offer at a glance: what is included, what it costs, and whether it is still available. The artwork is only one part of that job. The component also handles localised amounts, countdowns, purchase limits, busy states and error messages.

I keep checkout ownership outside the dialog. It receives availability and purchase state, and calls an action supplied by its owner. Invoice creation, duplicate prevention and reward grants belong to that checkout flow. This lets the same presentation run in isolated scenarios without creating a real payment.

The example below simulates a successful purchase. It changes the interface state locally and never creates an invoice.

Source code
VIP bundle interface

VIP bundle. Try the VIP bundle offer. The checkout is simulated; no invoice or payment is created.

Copy link ↗

Protecting reward withdrawals from abuse

An earlier version of Pebbler offered crypto rewards and attracted automated accounts. I built a verification workflow using AWS Rekognition Face Liveness, connecting the React camera interface with backend checks at withdrawal. I compared new enrolments with existing face vectors to detect the same person across multiple accounts, sending matches to review before permitting withdrawal.

I also implemented periodic re-verification at randomised three-to-six-month intervals, triggered when a player next attempts a withdrawal. The new scan must match the enrolled face before withdrawal can proceed. The interface handles consent, camera guidance and retries, while the server evaluates provider results and authorises the withdrawal.

After rollout, I observed no further reward payouts to fully automated bots. Human-operated farms remained possible, but requiring live participation and recurring identity checks increased the effort needed to maintain abusive accounts.

The database behind the game

Pebbler stores its persistent game state in PostgreSQL. The DBML diagram below shows the database tables and their relationships alongside the interfaces they support.

DBML source code

Interactive database diagram

Load the interactive diagram to explore the schema.

Pebbler database schema. Explore the tables and relationships in the DBML representation of the database.

Testing the states around the happy path

I use Storybook to work through purchase states, localised layouts and reward presentation in isolation. Vitest browser tests cover checkout retries, resumable orders, and responses that arrive after navigation.

These views also sit on shared foundations. I maintain authentication libraries and a typed React state library used across our own applications, so recurring integration and state patterns can be maintained in one place.

Telegram authentication Typed React state

From design to implementation

To make the handoff more useful for AI coding tools, I built Figma Agent Context: a plugin that exports geometry, design variables, assets and visual references together.

I used that workflow to build nearly all of the Holy Wheel page, the bundle offer dialogs, and most of the career page. The interfaces above are examples of where the tool was used in production work.

How Figma Agent Context works
Pebbler wardrobe interface showing a character and a grid of hats in owned and locked states
An inventory with clear owned, equipped, and locked states, alongside a live character preview.
Browse all screenshots