A gamified AI usage tracking platform for developers. Track your AI tool consumption, compete on leaderboards, and share your stats.
burntop helps developers visualize and gamify their AI coding assistant usage across tools like Claude Code, Cursor, Gemini CLI, Aider, and more. Features include:
- Usage Dashboard - Track tokens, costs, and usage patterns over time
- Leaderboards - Compete globally or with friends
- Shareable Cards - Generate OG images and embeddable badges
- CLI Sync - Automatic usage data collection from local tools
Run burntop directly without installing:
bunx burntop syncOr install globally:
bun add -g burntop # recommended
npm install -g burntop
pnpm add -g burntopNote: The CLI requires Bun runtime.
# Authenticate with your account
bunx burntop login
# Sync your local data to the cloud
bunx burntop sync
# View your AI usage stats
bunx burntop stats
# View the leaderboard
bunx burntop leaderboard
# See all available commands
bunx burntop --helpThe CLI automatically detects and parses usage data from:
- Claude Code -
~/.claude/projects/**/*.jsonl - Cursor - SQLite database in Application Support
- Gemini CLI -
~/.gemini/tmp/*/chats/session-*.json - Aider -
~/.aider/ - Continue -
~/.continue/sessions/
This is a monorepo using bun workspaces:
packages/
backend/ # FastAPI backend with async SQLAlchemy
frontend/ # TanStack Start web application
cli/ # CLI tool for syncing usage data
- Node.js 20+
- Bun 1.3+
- Docker and Docker Compose (for local database)
bun installThe application requires PostgreSQL. Use Docker Compose for local development:
# Start PostgreSQL container
docker compose up -d
# Run database migrations
cd packages/backend && uv run alembic upgrade headDatabase configuration:
- Local connection:
postgresql://burntop:burntop_dev_password@localhost:5432/burntop - Container name:
burntop-postgres - Environment variables in
packages/backend/.env
To stop the database:
# Stop container (preserves data)
docker compose down
# Remove container and data (destructive)
docker compose down -v# Start all packages in dev mode
bun dev
# Or run only the frontend
bun --filter frontend dev
# Or run only the backend
cd packages/backend && uv run uvicorn src.app.main:app --reload| Command | Description |
|---|---|
bun dev |
Start all packages in dev mode |
bun build |
Build all packages |
bun lint |
Run ESLint |
bun lint:fix |
Fix auto-fixable lint issues |
bun format |
Format with Prettier |
bun typecheck |
Run TypeScript type checking |
bun test |
Run tests |
- Frontend: TanStack Start, TanStack Router, TanStack Query, Tailwind CSS, shadcn/ui
- Backend: FastAPI, async SQLAlchemy 2.0, Pydantic v2
- Database: PostgreSQL
- Auth: Better Auth with GitHub OAuth
- CLI: TypeScript with Commander.js, Bun runtime
MIT