[Done] Add subscription service — auth, Stripe billing, API keys, dashboard #1

Open
opened 2026-02-10 20:16:09 +00:00 by repi · 0 comments
Owner

Summary

Full subscription service for CodeBoard, replicating the AgentLens pattern.

What was implemented

  • Auth: NextAuth v5 with email+password credentials, JWT sessions
  • User flows: Registration, login, email verification, password reset
  • Stripe billing: Free (15/day), Starter ($5/1k/mo), Pro ($20/100k/mo)
  • API keys: Management with cb_ prefix, hash-based validation
  • Dashboard: Generations history, settings page, billing management
  • Rate limiting: Redis daily counter (free tier), DB monthly counter (paid)
  • Generate route: Bearer API key + session auth, anonymous still allowed
  • UI: Auth-aware navbar, pricing section on landing page
  • Middleware: Route protection, CORS for codeboard.vectry.tech
  • Docker: All env vars configured, Prisma migration deployed

Commits

  • 64ce70d — feat: add subscription service
  • e72f55f — chore: add auth/billing Prisma migration

Status: Deployed to codeboard.vectry.tech

## Summary Full subscription service for CodeBoard, replicating the AgentLens pattern. ## What was implemented - **Auth**: NextAuth v5 with email+password credentials, JWT sessions - **User flows**: Registration, login, email verification, password reset - **Stripe billing**: Free (15/day), Starter ($5/1k/mo), Pro ($20/100k/mo) - **API keys**: Management with `cb_` prefix, hash-based validation - **Dashboard**: Generations history, settings page, billing management - **Rate limiting**: Redis daily counter (free tier), DB monthly counter (paid) - **Generate route**: Bearer API key + session auth, anonymous still allowed - **UI**: Auth-aware navbar, pricing section on landing page - **Middleware**: Route protection, CORS for codeboard.vectry.tech - **Docker**: All env vars configured, Prisma migration deployed ## Commits - `64ce70d` — feat: add subscription service - `e72f55f` — chore: add auth/billing Prisma migration **Status**: Deployed to codeboard.vectry.tech
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: repi/codeboard#1