- Language
- TypeScript
- Database
- PostgreSQL
- Hosting
- Cloudflare
- Running for
- Recently surveyed
- Team
- Just Me (Solo Vibe Coder)
Why this architecture
Choose your stack based on real projects, not guesswork. Context: Launch this week as fast as possible driver. Survey verified stack.
Tech stack by layer
17 technologiesBackend & APIs
Data & Persistence
Infrastructure & Deploy
Use this stack
Scaffold it with your agent
Paste this prompt into Claude Code, Cursor, Windsurf or AGY to start a project with Stack It Fast's architecture.
- 1Copy the promptThe full markdown spec, with every layer and decision.
- 2Open your AI toolClaude Code, Cursor, Windsurf or Copilot, in a new repo.
- 3Paste and scaffoldUse it as the first instruction; review before you ship.
use-this-stack.md · 50 lines · 5.3 KB
# MISSION: Scaffold "Stack It Fast" Production Architecture
You are an expert Senior Staff Software Architect and Full-Stack Engineer. Your mission is to scaffold and implement a production-grade, highly reliable, and modular codebase following the proven architecture of **Stack It Fast**.
---
## 1. PROJECT SPECIFICATIONS & BENCHMARK
- **Reference Architecture**: Stack It Fast
- **What It Does**: Stack It Fast is a directory of real production tech stacks from verified engineers, pairing each architecture with ready-to-use AI coding agent rule files and scaffolding prompts.
- **Domain & Category**: Content Directory & Showcase
- **Production Scale**: Just Me (Solo Vibe Coder)
- **Development Mode**: HYBRID
- **Architectural Rationale**: Choose your stack based on real projects, not guesswork. Context: Launch this week as fast as possible driver. Survey verified stack.
- **Live Website Reference**: https://stackitfast.com/
---
## 2. PRODUCTION TECH STACK
- **Full Stack Array**: Astro (SSR & Island Architecture), TypeScript, React Islands (Interactive Widgets Hydrated on Demand), Tailwind CSS, Astro Server Endpoints, tRPC v11, Hono / Edge API, PostgreSQL (Supabase / Neon), SQL Migrations, Redis Cache, Cloudflare Pages / Workers (Global Edge CDN), Cloudflare Hyperdrive / Neon Edge, GitHub Actions Automated Pipeline, Turborepo Monorepo Architecture, Strict TypeScript (noImplicitAny, strictNullChecks), Zod Schema-First Input Verification, Playwright Automated E2E Testing
- **License of the reference repo**: Community Verified
- **Frontend**: Astro — Astro in frontend layer; React Islands (Interactive Widgets Hydrated on Demand) — React Islands (Interactive Widgets Hydrated on Demand) in frontend layer; Tailwind CSS — Tailwind CSS in frontend layer
- **Backend & APIs**: TypeScript — TypeScript in backend layer; tRPC — tRPC in backend layer; Hono — Hono in backend layer; SQL — SQL in backend layer; GitHub Actions Automated Pipeline — GitHub Actions Automated Pipeline in backend layer; Strict TypeScript (noImplicitAny, strictNullChecks) — Strict TypeScript (noImplicitAny, strictNullChecks) in backend layer; Zod — Zod in backend layer; Playwright Automated E2E Testing — Playwright Automated E2E Testing in backend layer
- **Data & persistence**: PostgreSQL — PostgreSQL in data layer; Redis — Redis in data layer
- **Infrastructure & deploy**: Cloudflare — Cloudflare in infra layer; Turborepo — Turborepo in infra layer
---
## 3. NON-NEGOTIABLE ARCHITECTURAL GUARDRAILS
1. **Monorepo & Modular Separation**:
- Structure as a Turborepo monorepo with strict package boundaries:
- `apps/web`: Application UI, routing, layouts, and server endpoints.
- `packages/ui`: Shared design tokens, CSS variables, and Radix UI primitive components.
- `packages/db`: Database schemas, client singleton, declarative migrations, and seed scripts.
- `packages/config`: Shared TypeScript, ESLint, and build configurations.
2. **Strict Type Safety & Zero `any` Policy**:
- Enable `strict: true`, `noImplicitAny: true`, and `strictNullChecks: true`.
- Validate ALL external inputs, API request bodies, and query parameters with **Zod** schemas before execution.
3. **Frontend & Rendering Guidelines**:
- Leverage Astro's Island Architecture: keep pages static (.astro) by default for zero-JS baseline and instant Google search indexing. Hydrate interactive React components with 'client:load' or 'client:visible' only where needed for user state.
4. **Design System & Aesthetics**:
- Keep every color, radius, shadow and font in a single token file (CSS variables) and consume tokens everywhere; never hardcode hex values in components.
- Prefer crisp 1px borders and one subtle shadow scale over blurry default shadows. Pair one sans-serif for body/headings with one monospace for tags, badges, metrics, and code.
5. **Data Layer & Reliability**:
- Write declarative schema definitions with foreign keys, composite indexes on queried filters, and automated timestamp triggers.
- Use connection pooling and prepared statements for serverless database execution.
---
## 4. STEP-BY-STEP SCAFFOLDING ROADMAP
- **Phase 1: Workspace & Root Config**: Initialize package manager, monorepo configuration (`turbo.json`, `tsconfig.base.json`, `package.json`).
- **Phase 2: Database Schema & Client**: Set up the data layer (PostgreSQL, Redis): client, connection pool, models, and migration scripts.
- **Phase 3: Design Tokens & UI Primitives**: Build accessible `Button`, `Input`, `Card`, `Badge`, and layout wrappers inside `packages/ui`.
- **Phase 4: Core Application Routes & Handlers**: Implement primary authentication, user session handling, and application routes.
- **Phase 5: Quality Assurance & Build Verification**: Run `tsc --noEmit`, ESLint, Prettier, and smoke test suites to ensure zero compilation or runtime errors.
---
## 5. EXECUTION INSTRUCTIONS
1. Review all specifications, architectural guardrails, and stack choices above.
2. Present the full monorepo directory tree structure.
3. Systematically generate the complete, production-ready codebase according to the 5-phase roadmap above — starting with the root workspace setup, followed by the database schema, UI design system package, and full-stack application routes until the repository is fully scaffolded and ready to run.Scaffolded something with this prompt?
Would you pick this stack for a content directory & showcase project?
Copied 3 times
Similar architectures
- StarlightClassicDocumentation Portal · SoloShares Astro · TypeScript · Tailwind CSS
- DirectusClassicHeadless CMS · 20+ peopleShares TypeScript · PostgreSQL · Redis
- Cal.comClassicScheduling SaaS · 6-20 peopleShares TypeScript · PostgreSQL · tRPC
- AstroHybridIsland Architecture Web Framework · 1M+ MAUShares Astro · TypeScript · Turborepo
- StrapiClassicHeadless CMS · 20+ peopleShares TypeScript · PostgreSQL
- ToolJetHybridLow-Code Developer Tool Platform · 6-20 peopleShares TypeScript · PostgreSQL · Redis
use-this-stack.md