adynato-web-api

Develop Web API conventions for Next.js and Node.js backends.

1|Updated Jan 17, 2026
One-click install
npx skills add https://github.com/adynato/skills --skill adynato-web-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adynato-web-api
Source: https://github.com/adynato/skills/tree/main/skills/adynato-web-api
Command: npx skills add https://github.com/adynato/skills --skill adynato-web-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill codifies conventions for building Web APIs in Adynato projects, aligning route handlers, middleware, authentication, validation, error handling, and consistent response formats for Next.js and Node.js backends.

Core Features & Use Cases

  • Route handlers for Next.js App Router and API Routes with robust request handling.
  • Validation with Zod for input schemas and query parameters.
  • Authentication integration using NextAuth.js, session checks, and protected routes.
  • Error handling patterns with standardized response shapes and a global API error wrapper.
  • Database access through Prisma with PostgreSQL and typed inputs.
  • Use Case: scaffold a secure API endpoint that lists users and supports creation with validation and auth.

Quick Start

Create a new API route under app/api/users/ and implement GET and POST using the patterns shown.

Frequently Asked Questions about adynato-web-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build secure Next.js route handlers with authentication and validation?

To build secure Next.js route handlers, you implement Zod for input validation and NextAuth.js for session checks within your App Router endpoints. This skill provides the conventions to enforce authentication and validate data before processing requests.

What is the best way to standardize error handling and API responses in a Next.js Web API?

Standardizing error handling involves implementing a global API error wrapper that catches exceptions and returns consistent response shapes. This skill codifies those patterns for Next.js and Node.js backends, ensuring predictable REST-like API outputs.

Can I use Prisma and PostgreSQL with Next.js App Router for database access?

Yes, you can use Prisma with PostgreSQL for database access in the Next.js App Router. This skill applies typed inputs and Prisma conventions to query your database securely within your route handlers.

How do I add rate limiting to my Node.js or Next.js API endpoints?

Rate limiting is added to API endpoints by integrating Upstash, which controls request frequency and protects your routes from abuse. This skill incorporates Upstash rate limiting alongside authentication and validation patterns.

Does this API pattern support creating and listing users with validation and auth?

Yes, this API pattern supports scaffolding secure endpoints to list and create users. It applies Zod validation for input schemas and NextAuth.js session checks to ensure only authorized requests are processed.