Framework: Next.js 14+ (App Router) Language: TypeScript/JavaScript Use Cases: Full-Stack Web Apps, SSR/SSG, E-commerce, Blogs, Dashboards
Next.js is a React framework providing server-side rendering, static site generation, API routes, and full-stack development in a single codebase. Version 14+ uses the App Router as the default, built on React Server Components.
| page.tsx | Route UI (makes segment publicly accessible) | | layout.tsx | Shared layout (wraps children, persists) | | loading.tsx | Loading UI (Suspense boundary) | | error.tsx | Error boundary (must be 'use client') | | not-found.tsx | 404 UI for this segment | | route.ts | API route handler (GET, POST, etc.) |
Next.js 14+ framework guardrails, patterns, and best practices for AI-assisted development. Use when working with Next.js projects, or when the user mentions Next.js/Next. Provides App Router patterns, server components, data fetching, and deployment guidelines. Source: ar4mirez/samuel.