Get started1 / 12

Build on Stacked

Stacked runs offers, live ops events and leaderboards for your game. Your game sends events as players play. Stacked decides what each player sees, keeps their progress and scores, and tells your backend what to grant when they claim a reward.

How it works

One loop drives all three features. Your game reports what players do, and never has to know which offer, event or leaderboard is listening.

  1. 1Your gameSend eventsSign-ins, purchases, currency changes and any action of your own, sent through an SDK as players play.
  2. 2StackedTrack and scoreEach event updates the player's snapshot, moves offer progress, and adds points to live ops tracks and leaderboards.
  3. 3PlayerSee and claimYour game asks Stacked what to show a player: their offers, their event progress, their rank. What is complete, they claim.
  4. 4Your backendGrant the rewardStacked sends a signed webhook that says what to grant. Your backend verifies it and gives the items or currency.

You set everything up in the dashboard, or let an AI agent do it. Launching an offer, an event or a leaderboard needs no game update.

What you integrate

PieceRuns inWhat it does
A server SDK (Node.js, Go)Your backendSends events and signs player tokens
A client SDK (JavaScript, Unity)Your gameShows a player their offers and events, claims rewards, and gets live updates
A reward webhookYour backendGrants what a player claimed
The dashboardYour browserWhere you build offers, events and leaderboards, and watch them run

The Quickstart connects all four for one offer.

Quick reference

WhatValue
Dashboardhttps://buildon.stacked.xyz
Live APIhttps://api.stacked.xyz
Test APIhttps://api.sandbox.stacked.xyz
Backend authenticationx-api-key and x-client-id headers
Game client authenticationAuthorization: Bearer <player token>
Reward webhook eventuser.gain_rewards
MCP serverhttps://api.stacked.xyz/mcp

For AI agents

Building with a coding agent? Point it at /docs/llms-full.txt, every page of these docs as plain markdown, or the short index at /docs/llms.txt.

To let an agent run your Stacked setup itself, connect it to the MCP server.

All pages