next-safe-action-open-api
v1.8.0
Published
Type safe and validated Server Actions in your Next.js project.
Downloads
219
Maintainers
Readme
next-safe-action is a library that takes full advantage of the latest and greatest Next.js, React and TypeScript features to let you define type safe Server Actions and execute them inside React Components.
How does it work?
Like magic. 🪄
https://github.com/TheEdoRan/next-safe-action/assets/1337629/664eb3ee-92f3-4d4a-ba1b-a3b1c13fff04
Features
- ✅ Pretty simple
- ✅ End-to-end type safety
- ✅ Form Actions support
- ✅ Powerful middleware system
- ✅ Input/output validation using multiple validation libraries
- ✅ Advanced server error handling
- ✅ Optimistic updates
Documentation
Explore the documentation for the current stable version of the library on the next-safe-action v7 website. ✨
Looking for v6 docs?
You can keep using version 6 and eventually upgrade to version 7. Check out the v6 documentation here.
Migrate from v6 to v7
Check out the v6 to v7 migration guide to learn how to update your code for v7.
Installation
npm i next-safe-action
Playground
You can find a basic working implementation of the library here.
Contributing
If you want to contribute to next-safe-action, please check out the contributing guide.
If you found bugs or just want to ask a question, feel free to open an issue or a discussion by following the issue templates.
Contributors
Made with contrib.rocks.
License
next-safe-action is released under the MIT License.