{"library":"next-safe-action","type":"library","category":null,"description":"next-safe-action is a library designed for Next.js projects to create type-safe and validated Server Actions. It leverages modern Next.js, React, and TypeScript features to ensure end-to-end type safety from client-side component calls to server-side action execution. The current stable version is 8.5.2, with minor and patch releases occurring frequently to refine types, add features, and improve developer experience. Key differentiators include robust input/output validation, a flexible middleware system for authorization or logging, advanced server error handling, and support for optimistic updates, making it a powerful tool for building reliable and predictable data mutations in Next.js applications.","language":"javascript","status":"active","version":"8.5.2","tags":["javascript","next","nextjs","react","rsc","react server components","mutation","action","actions","typescript"],"install":[{"cmd":"npm install next-safe-action","imports":["import { createSafeActionClient } from 'next-safe-action';","import { useAction } from 'next-safe-action/hook';","const action = client.action(schema, async (input) => { /* ... */ });"]},{"cmd":"yarn add next-safe-action","imports":[]},{"cmd":"pnpm add next-safe-action","imports":[]}],"homepage":null,"github":"https://github.com/next-safe-action/next-safe-action","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/next-safe-action","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/next-safe-action/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}