Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

972 B
Raw Blame
/**
 * Gamification module — barrel export.
 *
 * @module lib/gamification
 */

export { emitGamificationEvent } from "./events";
export {
  updateScore,
  getRank,
  getTopN,
  getNeighbors,
  rotateScope,
  type LeaderboardScope,
  type LeaderboardEntry,
} from "./leaderboard";
export { validateScoreChange, getAnomalies } from "./antiCheat";
export { BUILTIN_BADGES } from "./badges";
export {
  xpForLevel,
  cumulativeXpForLevel,
  calculateLevel,
  xpToNextLevel,
  getLevelTitle,
  getLevelTier,
  XP_REWARDS,
  type XpAction,
} from "./xp";
export { getStreak, getAggregateStreak, updateStreak, type StreakData } from "./streaks";
export {
  recordBadgeUnlock,
  consumeBadgeUnlocks,
  createBadgeNotificationStream,
} from "./notifications";
export { transferTokens, getBalance, getHistory } from "./sharing";
export { createInvite, redeemInvite as redeemInviteCode } from "./invites";
export { connectServer, disconnectServer, listServers } from "./servers";