Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More β†’
Socket
Sign inDemoInstall
Socket

next-safe-action

Package Overview
Dependencies
Maintainers
1
Versions
244
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-safe-action

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

  • 7.10.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
32K
decreased by-13.56%
Maintainers
1
Weekly downloads
Β 
Created
Source
next-safe-action logo

next-safe-action

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.

Sponsors

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

Arcjet Logo
Arcjet

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.

Keywords

FAQs

Package last updated on 13 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc