Trophy for Developers

Add gamification to your app in minutes

Production-ready APIs and type-safe SDKs for achievements, streaks, points, leaderboards, and more. Focus on your product while we handle the gamification infrastructure.

SDKs for
NodeJSGoJava.NETPHPPythonRuby

Quick Start

Ship gamification in minutes

Get up and running with Trophy in four 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");

Lightning-Fast Integration

Simple APIs you'll love

Use our pre-built gamification API to effortlessly build engaging user experiences. Get a team that's 100% focused on engagement.

NodeJS
Go
Java
.NET
PHP
Python
Ruby
Type-safe SDKs.
We spend time worrying about abstractions and let you focus on what matters: building a great experience for your users.
Intuitive documentation.
Documentation built by developers for developers. Get started in minutes, not hours.
Effortless debugging.
Get to the root of the issue fast with detailed event logs and error messages.
// Server: Handle user writing submission

// Validate submission
if (!text || text.length === 0) return;

const wordCount = text.split(' ').length;

// Track event in Trophy
await trophy.metrics.event(
  "words",
  {
    user: {
      id: "user-123",
      email: "[email protected]"
    },
    value: wordCount
  }
);

// Save progress
await saveProgress(wordCount);

return wordCount;

Built for production workloads

Reliable infrastructure designed for performance at scale.

API Uptime
99.99%
Avg Response Time
<50ms
Integration Time
< 1 hour
API Calls / Month
10M+

Gamification infrastructure that retains users

Boost retention and customer lifetime value. Try for free up to 100 MAUs.

Trophy