UNPKG

safe-actions-state

Version:

A lightweight, type-safe utility for Next.js server & client actions with built-in authentication and RBAC(role based access control) checks, Zod validation, auto retries if server action fails, and real-time toast feedback out of the box. Just write your

77 lines (76 loc) 2.29 kB
{ "name": "safe-actions-state", "version": "1.1.16", "author": "Sadiq Vali", "keywords": [ "nextjs", "server-actions", "client-actions", "rbac", "role-based-access-control", "authentication", "authorization", "zod-validation", "type-safe", "typescript", "auto-retry", "toast-notifications", "error-handling", "form-validation", "field-errors", "react-hooks", "middleware", "next-auth", "safe-actions", "abort-controller", "async-state-management" ], "description": "A lightweight, type-safe utility for Next.js server & client actions with built-in authentication and RBAC(role based access control) checks, Zod validation, auto retries if server action fails, and real-time toast feedback out of the box. Just write your DB logic & Zod schema, we handle zod validation, authentication, RBAC authorization, error handling, retries & UI feedback seamlessly. No extra code from your side, just focus on your business logic & DB interaction only! 🚀", "files": [ "dist", "README.md", "LICENSE", "package.json" ], "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", "license": "MIT", "sideEffects": false, "scripts": { "rollup": "rollup -c --bundleConfigAsCjs", "pub": "bun run del && bun i && bun run rollup && bun publish", "del": "rm -rf dist node_modules bun.lockb" }, "repository": { "type": "git", "url": "https://github.com/SadiqVali786/safe-actions-state.git" }, "devDependencies": { "@rollup/plugin-commonjs": "^28.0.3", "@rollup/plugin-node-resolve": "^16.0.1", "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^12.1.2", "@types/bun": "latest", "@types/react": "^19.0.12", "next": "^15.2.3", "react": "^19.0.0", "rollup": "^4.37.0", "rollup-plugin-dts": "^6.2.1", "rollup-plugin-peer-deps-external": "^2.2.4", "sonner": "^2.0.3", "tslib": "^2.8.1", "typescript": "^5", "zod": "^3.24.2", "zod-error": "^1.5.0" }, "peerDependencies": { "@types/react": "^19.0.12", "typescript": "^5", "zod": "^3.24.2", "zod-error": "^1.5.0", "next": "^15.2.3", "react": "^19.0.0", "sonner": "^2.0.3" } }