next-safe-action
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 actions on the server and call them from Client Components.
Take a look at:
next-safe-action - Library code and documentation
example-app - A basic implementation of the library