A Comet Apps product.. Built for autonomous agents to extend. Perfect for founders who move fast.
export async function POST(req: Request) {
const { userId } = await auth();
if (!userId) return apiError('Unauthorized', 401);
// Check subscription limits
const { allowed } = await checkTodoLimit(userId);
if (!allowed) return apiError('Limit reached', 403);
const body = await req.json();
const result = createTodoSchema.safeParse(body);
const todo = await TodoModel.create({
...result.data,
userId,
});
return apiResponse(todo, 201);
}Production-ready infrastructure so you can focus on what matters
Clerk authentication with webhooks, mobile support, and user sync. Ready to go.
Subscription tiers, usage limits, and billing portal. Just add your API keys.
Connection pooling, indexes, and patterns. Scales from prototype to production.
Clear patterns and CLAUDE.md instructions. AI agents can extend this reliably.
Tailwind CSS and shadcn/ui components. Dark mode and responsive out of the box.
Sentry integration, rate limiting, and structured logging. Know what's happening.
Clone the repo, add your environment variables, and run npm install.
Replace the TODO app with your feature. Follow the patterns, extend the types.
Push to Vercel. Your SaaS is live with auth, payments, and monitoring.
Start free, upgrade when you're ready