What is TailStack?
TailStack is a production-grade Project Architecture framework designed to serve as a robust starting point for ERN Stack (Express, React, Node.js) applications. It implements the TailStack Architecture—a proven structure for full-stack development—providing a scalable, secure, and maintainable foundation.TailStack is not a rigid framework. It’s designed to be fully customizable, whether you’re building a startup MVP or a large-scale enterprise solution.
Architecture Philosophy
The TailStack Architecture is built on several core principles:1. Monorepo-First Design
TailStack embraces the monorepo pattern for full-stack applications, providing:- Unified codebase: Frontend and backend in a single repository
- Shared configurations: TypeScript, ESLint, and tooling consistency
- Cross-platform automation: Smart scripts for clean, install, and deployment
- Atomic commits: Changes across frontend and backend in a single commit
2. Production-Ready from Day One
Every template includes:- Security best practices: CORS, environment variable management, and secret detection with Gitleaks
- Git workflow automation: Husky hooks, commitlint for conventional commits
- Performance optimization: Node clustering, Vite’s lightning-fast HMR
- Type safety: Full TypeScript coverage across the stack
3. AI-Powered Development
TailStack is supercharged with pre-configured Agent Skills for AI-driven development:Vercel React Best Practices
57 rules across 8 categories for React/Next.js optimization, maintained by Vercel
Node.js Backend Patterns
Comprehensive guidance for building scalable, production-ready Node.js applications
Tailwind v4 + shadcn/ui
AI agents that understand shadcn/ui components and Tailwind CSS v4 engine
Agent Skills are located in
.agent/, .claude/, .cursor/, and .opencode/ directories. Learn more at skills.shThe Three Templates
TailStack provides three distinct architecture templates, each optimized for specific use cases:- Core Monorepo
- React Template
- Node Template
Full-Stack ERN Monorepo
The flagship template featuring a complete Express + React + Node.js setup in a unified monorepo.Best for:- Full-stack applications requiring tight frontend-backend integration
- Startups and MVPs that need rapid development
- Complex projects with shared business logic
- Teams wanting a unified codebase and deployment pipeline
- Concurrent development with
pnpm dev - Pre-configured inter-service communication
- Weather app demo showcasing full-stack integration
- Node cluster for maximum backend performance
- All three agent skills included
packages/core/Project Structure:Comparison Matrix
| Feature | Core Monorepo | React Template | Node Template |
|---|---|---|---|
| Frontend | Vite + React 19 | Vite + React 19 | — |
| Backend | Express 5 + TS | — | Express 5 + TS |
| UI System | Tailwind 4 + Shadcn | Tailwind 4 + Shadcn | — |
| Routing | React Router 7 | React Router 7 | Express Router |
| Clustering | ✅ | — | ✅ |
| Weather Demo | ✅ Full-stack | ✅ Frontend-only | — |
| Agent Skills | 3 skills | 2 skills | 1 skill |
| Dev Command | pnpm dev (both) | pnpm dev | pnpm dev |
| Best For | Full-stack apps | SPAs/Dashboards | APIs/Services |
Automation Scripts
All templates include cross-platform automation scripts (both PowerShell and Bash):Smart Clean
clean.ps1 / clean.shHigh-velocity two-phase purge:- Parallel processing for faster deletion
- Kills locking processes (Node, VS Code)
- 3-retry verification loop for stubborn files
- Removes all
node_modulesand lock files
Smart Install
install.ps1 / install.shIntelligent parallel installer:- Concurrent dependency installation
- CPU/RAM load monitoring (90% threshold)
- Auto-suspend/resume state machine
- Prevents system crashes during heavy operations
Getting Started
Choose your template and scaffold a new project:Next Steps
Core Monorepo Deep Dive
Explore the full-stack ERN monorepo architecture
Project Structure
Understand the directory organization and file layout
React Template
Learn about the frontend-only architecture
Node Template
Discover the backend-only architecture