JSPM

next-safe-action

4.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 212694
  • Score
    100M100P100Q170899F
  • License MIT

A typesafe server actions implementation for Next.js with RSC using Zod.

Package Exports

  • next-safe-action
  • next-safe-action/hook

Readme

next-safe-action is a library that takes full advantage of the latest and greatest Next.js, React and TypeScript features, using Zod, to let you define typesafe Server Actions and execute them inside Client Components.

Documentation

Explore the documentation for version 4 of the library on next-safe-action website.

If you are looking for old versions documentation, check out:

Migration guide

Version 4.x.x of the library introduced some breaking changes to the API. Please check out the v3 to v4 migration guide on the website for more information.