Sitelet https://trophy.so/developers

Trophy for Developers

Add app gamification in minutes

Trophy is a gamification platform with pre-built APIs and type-safe SDKs for adding achievements, streaks, points, and leaderboards to your web or mobile app.

SDKs for
NodeJSGoJava.NETPHPPythonRuby

Quick start

Ship gamification in minutes

Get up and running with Trophy in five simple steps. No complex configuration required.

1

Install the SDK

Add Trophy to your project with your package manager.

npm install @trophyso/node
2

Initialize the client

Set up the Trophy client with your API key.

import { TrophyApiClient } from '@trophyso/node';

const trophy = new TrophyApiClient({
  apiKey: process.env.TROPHY_API_KEY
});
3

Track your first event

Send user events to power gamification features.

await trophy.metrics.event("lessons", {
  user: { id: "user-123" },
  value: 1
});
4

Fetch gamification data

Retrieve achievements, streaks, points, and more.

const streak = await trophy.users.streak("user-123");
const points = await trophy.users.points("user-123");
5

Display gamification UI

Use open-source UI components.

npx shadcn@latest add https://ui.trophy.so/streak-calendar

Built for production workloads

Reliable infrastructure designed for performance at scale.

Uptime SLA
99.99%
p95 API Latency
200ms
Monthly API Requests
150M
Users Tracked
1M+