vercel-reference-architecture

Featured

Implement a Vercel reference architecture with layered project structure and best practices. Use when designing new Vercel projects, reviewing project structure, or establishing architecture standards for Vercel applications. Trigger with phrases like "vercel architecture", "vercel project structure", "vercel best practices layout", "how to organize vercel project".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Vercel Reference Architecture ## Overview Implement a production-ready Vercel project architecture with clear separation across edge, server, and client layers. Covers directory structure, middleware patterns, API route organization, shared utilities, and configuration management. ## Prerequisites - Understanding of Vercel's deployment model (edge, serverless, static) - TypeScript project setup - Next.js 14+ (recommended) or other Vercel-supported framework ## Instructions ### Step 1: Directory Structure ``` my-vercel-app/ ├── public/ # Static assets (served from CDN) │ ├── favicon.ico │ └── images/ ├── src/ │ ├── app/ # Next.js App Router pages │ │ ├── layout.tsx # Root layout │ │ ├── page.tsx # Home page │ │ ├── api/ # API routes (serverless functions) │ │ │ ├── health/route.ts │ │ │ ├── users/route.ts │ │ │ └── webhooks/ │ │ │ └── vercel/route.ts │ │ ├── dashboard/ # Protected pages │ │ │ ├── layout.tsx │ │ │ └── page.tsx │ │ └── (marketing)/ # Public pages (route group) │ │ ├── pricing/page.tsx │ │ └── about/page.tsx │ ├── lib/ # Shared utilities (server + client) │ │ ├── api-client.ts # External API wrapper │ │ ├── db.ts # Database client (lazy singleton) │ │ ├── env.ts # Typed environment variables │ │ └── errors.ts # Error clas...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category