Skip to main content

GetJar SDK

Build powerful gaming platforms with our comprehensive API

npm install @getjar/sdk
💻

Developer-First Design

Built by developers, for developers. Clean API design with intuitive endpoints, comprehensive documentation, and TypeScript support out of the box.

🚀

Production-Ready

Battle-tested infrastructure with rate limiting, error handling, authentication, and webhook support. Scale from prototype to millions of users.

🎯

Complete Platform

Everything you need in one API: user management, achievements, leaderboards, products, transactions, and analytics. No need to integrate multiple services.

Simple, Powerful, Developer-Friendly

GetJar SDK provides everything you need to build, manage, and scale your gaming platform. From user management to achievements, leaderboards to in-app purchases - we've got you covered.

  • ✨ TypeScript-first with full type safety
  • 🚀 Auto-generated from OpenAPI spec
  • 📦 Zero configuration required
  • 🔐 Built-in authentication handling
  • ⚡ Optimized for performance

    import { Configuration, LeaderboardsApi } from '@getjar/sdk';
  
    const config = new Configuration({
        basePath: 'https://sdk.getjar.com',
        baseOptions: {
            headers: {
                'x-api-key': 'YOUR_API_KEY'
            }
        }
    });
  
    const leaderboards = new LeaderboardsApi(config);
  
    // Submit a score
    const result = await leaderboards.submitScore({
        appId: 'my-game',
        userId: 'user-123',
        submitScoreDto: { score: 15000 }
    });
    
    console.log(`Rank: #${result.data.rank}`);

Everything You Need to Build Amazing Games

🎮 Game Management

Create and manage games with versioning, categories, and platform support

👥 User Systems

Complete user management with profiles, authentication, and currency systems

🏆 Achievements

Rich achievement system with multiple types, rarities, and progression tracking

📊 Leaderboards

Competitive leaderboards with daily and all-time rankings

💰 Monetization

In-app purchases, subscriptions, and virtual currency management

📈 Analytics

Session tracking, user analytics, and detailed performance metrics