A community-driven leaderboard for tracking Claude Code usage metrics.
app/: Next.js frontend (Leaderboard UI).app/cli: Thecrank-clitool (Node.js).supabase/: Database schema and migrations.
- Node.js 18+
- Supabase Project (or local instance)
- X (Twitter) Developer Account (for Auth)
Run the migration SQL files in your Supabase SQL Editor to set up the schema:
supabase/schema.sql(Base schema)supabase/migrations/*(Apply any subsequent migrations)
-
Navigate to the app directory:
cd app -
Install dependencies:
npm install
-
Create
.env.localwith your Supabase credentials:NEXT_PUBLIC_SUPABASE_URL=your_supabase_url NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key SUPABASE_SERVICE_ROLE_KEY=your_service_role_key (for admin API routes)
-
Run the development server:
npm run dev
To work on the CLI locally:
-
Navigate to the CLI directory:
cd app/cli -
Install dependencies:
npm install
-
Build the CLI:
npm run build
-
Link for local testing:
npm link
Now you can run
crank-cliglobally.
Users can join the leaderboard by running:
npx crank-cli login
npx crank-cli setupnpx crank-cli statusDeploy the app/ directory to Vercel.
Publish to npm:
cd app/cli
npm publish