Stack Candidate Generator
Generate 2-5 coherent stack candidates based on project requirements.
Standalone Usage
Can be invoked directly:
- "Suggest stack options for a SaaS application"
- "What are good tech stacks for a real-time chat app?"
- "Generate architecture options for an e-commerce platform"
Common Stack Patterns
Serverless / Low-Ops
| Pattern |
Best For |
| Next.js + Vercel + Supabase |
Frontend-heavy, rapid development |
| React + AWS Amplify + Aurora Serverless |
AWS-native, full-stack |
| React + Firebase |
Real-time features, Google ecosystem |
| React + Supabase |
PostgreSQL-centric, open-source |
Container-Based / Balanced
| Pattern |
Best For |
| React + AWS App Runner + RDS |
AWS containers, moderate control |
| React + Cloud Run + Cloud SQL |
GCP containers, simple scaling |
| Next.js + AWS ECS + Aurora |
Full control, AWS ecosystem |
| React + Azure Container Apps + Azure SQL |
Microsoft ecosystem |
Kubernetes / Full Control
| Pattern |
Best For |
| React + EKS + Aurora |
AWS K8s, enterprise scale |
| React + GKE + Cloud SQL |
GCP K8s, cost-effective |
| React + AKS + Azure SQL |
Azure K8s, enterprise |
Enterprise / .NET
| Pattern |
Best For |
| Blazor + Azure App Service + Azure SQL |
Microsoft full-stack |
| React + .NET API + SQL Server |
Enterprise, existing .NET |
| .NET + Aspire + Azure |
Distributed, orchestrated |
Required Components
Each candidate must specify:
- Frontend - Framework and hosting
- Backend/API - Runtime and hosting
- Database - Technology and managed/self-hosted
- Authentication - Provider/solution
- Hosting Model - Platform and strategy
- Local Dev Story - How to run locally
Selection Criteria
When generating candidates, consider:
| Requirement |
Low Budget |
Growth |
Scale |
| Compute |
Serverless |
Containers |
K8s |
| Database |
Managed serverless |
Managed provisioned |
Managed/dedicated |
| Ops maturity needed |
Low |
Medium |
High |
| Local dev complexity |
Low |
Medium |
Medium-High |
By Ops Maturity
- Low: Firebase, Supabase, Vercel, Amplify
- Medium: App Runner, Cloud Run, Container Apps
- High: ECS, GKE, EKS, self-managed
By Team Size
- Solo/Small (1-5): Serverless, BaaS platforms
- Medium (6-15): Containers, managed K8s
- Large (16+): K8s, multi-service architectures
By Offline Requirement
| Requirement |
Recommended Approach |
| None |
Standard server-centric architecture |
| Transient |
Retry logic, in-memory queue, graceful degradation |
| Session-Durable |
IndexedDB + service worker, background sync |
| Strong Offline-First |
CRDT-based (Y.js, Automerge), local-first (SQLite WASM) |
Output Contract
candidates:
- id: "<unique_id>"
name: "<descriptive name>"
summary: "<one-line summary>"
pattern_type: "<serverless|container|kubernetes|baas>"
components:
frontend:
technology: "<framework>"
hosting: "<platform>"
backend:
technology: "<runtime/framework>"
hosting: "<platform>"
database:
technology: "<database>"
hosting: "<managed|serverless|self-hosted>"
auth:
provider: "<solution>"
async:
technology: "<if needed>"
storage:
technology: "<if needed>"
fits:
budget: "<minimal|startup|growth|scale|enterprise>"
ops_maturity: "<low|medium|high>"
team_size: "<solo|small|medium|large>"
local_dev_story: |
<How a developer runs this end-to-end on a laptop>
offline_story:
level: "<none|transient|session_durable|strong_offline_first>"
technologies: ["<offline tech stack>"]
notes: "<implementation considerations>"
strengths:
- "<strength 1>"
- "<strength 2>"
tradeoffs:
- "<tradeoff 1>"
- "<tradeoff 2>"
Example Output
candidates:
- id: "next-vercel-supabase"
name: "Next.js + Vercel + Supabase"
summary: "Modern full-stack with minimal ops"
pattern_type: "serverless"
components:
frontend:
technology: "Next.js 14 (App Router)"
hosting: "Vercel Edge"
backend:
technology: "Next.js API Routes + Supabase Edge Functions"
hosting: "Vercel + Supabase"
database:
technology: "PostgreSQL"
hosting: "Supabase (managed)"
auth:
provider: "Supabase Auth"
storage:
technology: "Supabase Storage"
fits:
budget: "startup"
ops_maturity: "low"
team_size: "small"
local_dev_story: |
1. Clone repo
2. cp .env.example .env.local
3. supabase start (local Supabase)
4. npm run dev
Full stack running in < 5 minutes
strengths:
- "Zero DevOps needed"
- "Excellent DX"
- "Built-in auth, storage, realtime"
tradeoffs:
- "Vendor lock-in to Vercel/Supabase"
- "Limited compute customization"
1---2name: candidate-generator3description: Generate coherent stack candidates based on requirements. Use when user needs stack options, technology recommendations, or architecture patterns for their project.4---56# Stack Candidate Generator78Generate 2-5 coherent stack candidates based on project requirements.910## Standalone Usage1112Can be invoked directly:13- "Suggest stack options for a SaaS application"14- "What are good tech stacks for a real-time chat app?"15- "Generate architecture options for an e-commerce platform"1617## Common Stack Patterns1819### Serverless / Low-Ops2021| Pattern | Best For |22|---------|----------|23| Next.js + Vercel + Supabase | Frontend-heavy, rapid development |24| React + AWS Amplify + Aurora Serverless | AWS-native, full-stack |25| React + Firebase | Real-time features, Google ecosystem |26| React + Supabase | PostgreSQL-centric, open-source |2728### Container-Based / Balanced2930| Pattern | Best For |31|---------|----------|32| React + AWS App Runner + RDS | AWS containers, moderate control |33| React + Cloud Run + Cloud SQL | GCP containers, simple scaling |34| Next.js + AWS ECS + Aurora | Full control, AWS ecosystem |35| React + Azure Container Apps + Azure SQL | Microsoft ecosystem |3637### Kubernetes / Full Control3839| Pattern | Best For |40|---------|----------|41| React + EKS + Aurora | AWS K8s, enterprise scale |42| React + GKE + Cloud SQL | GCP K8s, cost-effective |43| React + AKS + Azure SQL | Azure K8s, enterprise |4445### Enterprise / .NET4647| Pattern | Best For |48|---------|----------|49| Blazor + Azure App Service + Azure SQL | Microsoft full-stack |50| React + .NET API + SQL Server | Enterprise, existing .NET |51| .NET + Aspire + Azure | Distributed, orchestrated |5253## Required Components5455Each candidate must specify:56571. **Frontend** - Framework and hosting582. **Backend/API** - Runtime and hosting593. **Database** - Technology and managed/self-hosted604. **Authentication** - Provider/solution615. **Hosting Model** - Platform and strategy626. **Local Dev Story** - How to run locally6364## Selection Criteria6566When generating candidates, consider:6768| Requirement | Low Budget | Growth | Scale |69|-------------|------------|--------|-------|70| Compute | Serverless | Containers | K8s |71| Database | Managed serverless | Managed provisioned | Managed/dedicated |72| Ops maturity needed | Low | Medium | High |73| Local dev complexity | Low | Medium | Medium-High |7475### By Ops Maturity7677- **Low**: Firebase, Supabase, Vercel, Amplify78- **Medium**: App Runner, Cloud Run, Container Apps79- **High**: ECS, GKE, EKS, self-managed8081### By Team Size8283- **Solo/Small (1-5)**: Serverless, BaaS platforms84- **Medium (6-15)**: Containers, managed K8s85- **Large (16+)**: K8s, multi-service architectures8687### By Offline Requirement8889| Requirement | Recommended Approach |90|-------------|---------------------|91| **None** | Standard server-centric architecture |92| **Transient** | Retry logic, in-memory queue, graceful degradation |93| **Session-Durable** | IndexedDB + service worker, background sync |94| **Strong Offline-First** | CRDT-based (Y.js, Automerge), local-first (SQLite WASM) |9596## Output Contract9798```yaml99candidates:100 - id: "<unique_id>"101 name: "<descriptive name>"102 summary: "<one-line summary>"103104 pattern_type: "<serverless|container|kubernetes|baas>"105106 components:107 frontend:108 technology: "<framework>"109 hosting: "<platform>"110 backend:111 technology: "<runtime/framework>"112 hosting: "<platform>"113 database:114 technology: "<database>"115 hosting: "<managed|serverless|self-hosted>"116 auth:117 provider: "<solution>"118 async:119 technology: "<if needed>"120 storage:121 technology: "<if needed>"122123 fits:124 budget: "<minimal|startup|growth|scale|enterprise>"125 ops_maturity: "<low|medium|high>"126 team_size: "<solo|small|medium|large>"127128 local_dev_story: |129 <How a developer runs this end-to-end on a laptop>130131 offline_story:132 level: "<none|transient|session_durable|strong_offline_first>"133 technologies: ["<offline tech stack>"]134 notes: "<implementation considerations>"135136 strengths:137 - "<strength 1>"138 - "<strength 2>"139140 tradeoffs:141 - "<tradeoff 1>"142 - "<tradeoff 2>"143```144145## Example Output146147```yaml148candidates:149 - id: "next-vercel-supabase"150 name: "Next.js + Vercel + Supabase"151 summary: "Modern full-stack with minimal ops"152153 pattern_type: "serverless"154155 components:156 frontend:157 technology: "Next.js 14 (App Router)"158 hosting: "Vercel Edge"159 backend:160 technology: "Next.js API Routes + Supabase Edge Functions"161 hosting: "Vercel + Supabase"162 database:163 technology: "PostgreSQL"164 hosting: "Supabase (managed)"165 auth:166 provider: "Supabase Auth"167 storage:168 technology: "Supabase Storage"169170 fits:171 budget: "startup"172 ops_maturity: "low"173 team_size: "small"174175 local_dev_story: |176 1. Clone repo177 2. cp .env.example .env.local178 3. supabase start (local Supabase)179 4. npm run dev180 Full stack running in < 5 minutes181182 strengths:183 - "Zero DevOps needed"184 - "Excellent DX"185 - "Built-in auth, storage, realtime"186187 tradeoffs:188 - "Vendor lock-in to Vercel/Supabase"189 - "Limited compute customization"190```