route-handlers

Installation
SKILL.md

Next.js Route Handlers

Overview

Route Handlers allow you to create API endpoints using the Web Request and Response APIs. They're defined in route.ts files within the app directory.

Basic Structure

File Convention

Route handlers use route.ts (or route.js):

app/
├── api/
│   ├── users/
│   │   └── route.ts      # /api/users
│   └── posts/
│       ├── route.ts      # /api/posts
Related skills

More from davepoon/buildwithclaude

Installs
82
GitHub Stars
2.9K
First Seen
Jan 22, 2026