0.2.3 • Published 9 months ago

zsa-react v0.2.3

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

zsa

zsa is a library for building typesafe server actions in Next.js. It provides a simple, scalable developer experience with features like validated inputs/outputs, procedures (middleware) for passing context to server actions, and React Query integration for querying server actions in client components.

Installation

Install zsa using your preferred package manager:

npm i zsa zsa-react zsa-react-query zsa-openapi zod

Features

  • Validated inputs and outputs using Zod schemas
  • Procedures for adding context and authorization to server actions
  • Callbacks for running additional logic based on server action lifecycle
  • Built-in loading states and error handling
  • React Query integration for querying server actions on the client side
  • Support for FormData as input type
  • Retry functionality and timeouts for server actions
  • TypeScript support for a fully typesafe experience

Documentation

View the full documentation and examples on zsa.vercel.app.

Support

If you need help with anything, feel free to DM (@ido_pesok) on X.

Contributors

0.2.3

9 months ago

0.1.0

1 year ago

0.0.1

1 year ago

0.2.1

12 months ago

0.1.2

1 year ago

0.2.0

12 months ago

0.1.1

1 year ago

0.1.8

12 months ago

0.1.7

12 months ago

0.1.9

12 months ago

0.1.4

1 year ago

0.2.2

12 months ago

0.1.3

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.0.0

1 year ago