Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Type safe and validated Server Actions in your Next.js project.

License

NotificationsYou must be signed in to change notification settings

TheEdoRan/next-safe-action

Repository files navigation

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

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 thenext-safe-action v8 website.

Looking for v7 docs?

You can keep using version 6 and eventually upgrade to version 7. Check out the v7 documentationhere.

Migrate from v7 to v8

Check out thev7 to v8 migration guide to learn how to update your code for v8.

Installation

npm i next-safe-action

Playground

You can find a basic working implementation of the libraryhere.

Sponsors

A big shout-out to all oursponsors! You’re the driving force behind this library's growth, and we're truly grateful for your support. ❤️

🥉 Enthusiasts (Bronze)

ArcJet
ArcJet

☕ Supporters

Pontus Abrahamsson
Pontus Abrahamsson
Robin Wieruch
Robin Wieruch

👷 Past sponsors

Vercel
Vercel
Liam Murray
Liam Murray
David Chalifoux
David Chalifoux
Rein Undheim
Rein Undheim
Merthan Merter
Merthan Merter
Marco Moroni
Marco Moroni
Gustavo Felisberto
Gustavo Felisberto

Contributing

If you want to contribute to next-safe-action, please check out thecontributing guide.

If you found bugs or just want to ask a question, feel free to open an issue or a discussion by following theissue templates.

Contributors

Made withcontrib.rocks.

License

next-safe-action is released under theMIT License.


[8]ページ先頭

©2009-2025 Movatter.jp