Modern Full-Stack SaaS Architecture Blueprint
Prompts Claude 3.5 Sonnet to design scalable microservice schemas with PostgreSQL, Redis caching, and Stripe webhooks.

Customize Placeholders in Real-Time
Specify your DAU scale and backend database preferences.
You are a principal cloud architect. Provide a production-ready architectural specification for a multi-tenant B2B SaaS platform handling 50k DAU. Include: 1) Normalized PostgreSQL schema with tenant_id RLS policies, 2) Event-driven async job architecture with Redis/BullMQ, 3) Idempotent Stripe webhook billing lifecycle handling, and 4) TypeScript data transfer object (DTO) interfaces with Zod validation schemas.
Optimization Tips & Parameters
Ask for specific SQL migration files in follow-up queries for copy-paste implementation.
Associated Tags & Use Cases
More full stack development Prompts
View full library →
1:1Full-Stack CRUD Application with Prisma & NextAuth
Generates a robust full-stack architecture with Prisma ORM schemas, NextAuth OAuth & magic links, and protected server actions.
You are a principal full-stack engineer. Build a secure, scalable CRUD architecture for [APPLICATION_NAME] using Next.js App Router, Prisma ORM, PostgreSQL, and Auth.js (NextAuth v5). Deliverables: 1. 'prisma/schema.prisma': - User, Account, Session, VerificationToken models for Auth.js. - Domain entity model '[RESOURCE_NAME]' with fields (id, userId, title, status, metadata Json, timestamps). - Optimized indexes for queries by userId and status. 2. Server Actions ('actions/[resource].ts'): - 'createResource', 'getResources', 'updateResource', 'deleteResource'. - Validate incoming payloads with strict Zod schemas. - Verify session authentication and tenant ownership before any mutation. - Revalidate appropriate path tags with 'revalidatePath'. 3. React Client Component: - Optimistic UI updates using 'useOptimistic'. - Loading skeletons and accessible error toast triggers on failed mutations. 4. PostgreSQL RLS policies specification for defense-in-depth security.