Overview
ClipGen turns a prompt or a template into a short video. It is a full product rather than a demo: people sign in, are rate-limited, pay for plans, and get their clips stored and delivered.
Architecture
Request path
BrowserReact
Next.jstRPC routes
PrismaORM
NeonPostgres
Authentication
Sign inOAuth
Sessionwritten by hand
Redisrate limiting
Payments
Stripecheckout
Webhookone-time + recurring
Planupdated in database
Media
Promptor template
Gemini Veogeneration
Cloudinarystorage + delivery
SendGrid handles transactional email.
Key features
Templates or scratch
Start from a template or write your own prompt.
Accounts
Sessions and OAuth implemented by hand.
Paid plans
One-time and recurring payments through Stripe webhooks.
Rate limiting
Redis-backed limits on generation requests.
Technical stack
- Next.js
- tRPC
- Prisma
- Neon
- Redis
- Stripe
- Cloudinary
- SendGrid
- Gemini Veo