Introduction
Type safe modern server actions for Next.js
next-cool-action
This library is a fork of next-safe-action with minor changes. It started as an experiment and may diverge over time.
next-cool-action is a library that provides type safety for Server Actions in your Next.js applications.
Features
- End-to-end type safety with full TypeScript support
- Input validation using your favorite validation library (Zod, Valibot, etc.)
- Customizable error handling
- React hooks for seamless client-side integration
- Middleware support for authentication and more
Quick Start
Get started in minutes:
npm install next-cool-action zodThen check out the Getting Started guide to learn how to create your first type-cool action.