Admin panel

Platform admins (people who run the SaaS, not organization admins) get /admin on the web:

  • Totals: users, sign-ups in the last 7 days, organizations, projects
  • Users: search, make admin, ban / unban, sign in as a user to see what they see (a banner takes you back)
  • Organizations with member counts

Grant the first admin from the terminal:

pnpm admin:grant you@example.com

After that, admins can promote others from /admin.

User management uses Better Auth's admin plugin (authClient.admin.*). Extra admin data comes from apps/api/src/routes/admin.ts, guarded by requireSuperAdmin; add your own admin endpoints there.