velobase-harness
Next.js AI SaaS base with credits, usage billing, workers and anti-abuse
A Next.js 15 and tRPC application with Prisma on Postgres and BullMQ on Redis that already has accounts, subscriptions, a credit ledger, Stripe and NowPayments, entitlement checks, affiliate accounting, server-side attribution, anti-abuse controls (rate limits, Turnstile, disposable-email checks), lifecycle email, an admin area and a multi-provider AI chat module. One command starts Postgres and Redis in Docker. For builders turning an AI prototype into a paid product.
Strengths
- Credit ledger, usage metering and entitlements are built in, not left to you
- Anti-abuse for free credits: rate limits, Turnstile, disposable-email checks, clawbacks
- Runs as one process or split web, worker and API by SERVICE_MODE
- Docker compose, English and Chinese docs, AGENTS.md and CLAUDE.md
Weaknesses
- No unit-test script; only service-mode smoke tests
- Large surface area; the framework guide asks for domain design before coding
- Payments are Stripe and NowPayments; others need adapters
- Seed shows 607 stars; young project
- TypeScript, ai-sdk, openai, anthropic, google
- Needs postgres, redis, docker, stripe, model-api-keys
- GitHub template
- Docker
- env example file
- sign-in: Auth.js