{"id":13454399,"url":"https://github.com/TheEdoRan/next-safe-action","last_synced_at":"2025-03-24T05:33:42.308Z","repository":{"id":153245966,"uuid":"628457633","full_name":"TheEdoRan/next-safe-action","owner":"TheEdoRan","description":"Type safe and validated Server Actions in your Next.js project.","archived":false,"fork":false,"pushed_at":"2024-10-28T15:19:33.000Z","size":30066,"stargazers_count":2202,"open_issues_count":1,"forks_count":35,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-10-29T14:50:07.313Z","etag":null,"topics":["actions","app-dir","mutations","next","next-actions","nextjs","react","react-actions","react-server-components","rsc","server-actions","server-components","typesafe","typescript","zod"],"latest_commit_sha":null,"homepage":"https://next-safe-action.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheEdoRan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["TheEdoRan"]}},"created_at":"2023-04-16T02:12:14.000Z","updated_at":"2024-10-29T13:47:01.000Z","dependencies_parsed_at":"2024-01-14T04:13:13.149Z","dependency_job_id":"1c1106bb-9f67-4915-9f6e-a24df0820d5d","html_url":"https://github.com/TheEdoRan/next-safe-action","commit_stats":{"total_commits":454,"total_committers":10,"mean_commits":45.4,"dds":"0.028634361233480177","last_synced_commit":"45e0f9683425a84478aef7ab4257ca0420da688e"},"previous_names":[],"tags_count":286,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheEdoRan%2Fnext-safe-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheEdoRan%2Fnext-safe-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheEdoRan%2Fnext-safe-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheEdoRan%2Fnext-safe-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheEdoRan","download_url":"https://codeload.github.com/TheEdoRan/next-safe-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245153815,"owners_count":20569405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","app-dir","mutations","next","next-actions","nextjs","react","react-actions","react-server-components","rsc","server-actions","server-components","typesafe","typescript","zod"],"created_at":"2024-07-31T08:00:53.743Z","updated_at":"2025-03-24T05:33:42.302Z","avatar_url":"https://github.com/TheEdoRan.png","language":"TypeScript","funding_links":["https://github.com/sponsors/TheEdoRan","https://github.com/sponsors/TheEdoRan)!"],"categories":["TypeScript","actions","Tools"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/TheEdoRan/next-safe-action/main/assets/logo.png\" alt=\"next-safe-action logo\" width=\"36\" height=\"36\"\u003e\n  \u003ca href=\"https://github.com/TheEdoRan/next-safe-action\"\u003e\u003ch1\u003enext-safe-action\u003c/h1\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n**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.\n\n## How does it work?\n\nLike magic. 🪄\n\nhttps://github.com/TheEdoRan/next-safe-action/assets/1337629/664eb3ee-92f3-4d4a-ba1b-a3b1c13fff04\n\n## Features\n\n- ✅ Pretty simple\n- ✅ End-to-end type safety\n- ✅ Form Actions support\n- ✅ Powerful middleware system\n- ✅ Input/output validation using multiple validation libraries\n- ✅ Advanced server error handling\n- ✅ Optimistic updates\n\n## Documentation\n\n**Explore the documentation for the current stable version of the library on the [next-safe-action v7 website](https://next-safe-action.dev).** ✨\n\n### Looking for v6 docs?\n\nYou can keep using version 6 and eventually upgrade to version 7. Check out the v6 documentation [here](https://v6.next-safe-action.dev).\n\n## Migrate from v6 to v7\n\nCheck out the [v6 to v7 migration guide](https://next-safe-action.dev/docs/migrations/v6-to-v7) to learn how to update your code for v7.\n\n## Installation\n\n```bash\nnpm i next-safe-action\n```\n\n## Playground\n\nYou can find a basic working implementation of the library [here](https://github.com/TheEdoRan/next-safe-action/tree/main/apps/playground).\n\n## Sponsors\n\nA big shout-out to all our [sponsors](https://github.com/sponsors/TheEdoRan)! You’re the driving force behind this library's growth, and we're truly grateful for your support. ❤️\n\n\u003ctable\u003e\n  \u003ctr\u003e\n   \u003ctd align=\"center\"\u003e\u003ca href=\"https://arcjet.com/?ref=next-safe-action\"\u003e  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://arcjet.com/logo/arcjet-dark-lockup-voyage-horizontal.svg\"\u003e\n    \u003cimg src=\"https://arcjet.com/logo/arcjet-light-lockup-voyage-horizontal.svg\" alt=\"Arcjet Logo\" height=\"128\" width=\"auto\"\u003e\n  \u003c/picture\u003e\u003cbr /\u003eArcjet\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Contributing\n\nIf you want to contribute to next-safe-action, please check out the [contributing guide](https://github.com/TheEdoRan/next-safe-action/blob/main/CONTRIBUTING.md).\n\nIf you found bugs or just want to ask a question, feel free to open an issue or a discussion by following the [issue templates](https://github.com/TheEdoRan/next-safe-action/issues/new/choose).\n\n## Contributors\n\n\u003ca href=\"https://github.com/TheEdoRan/next-safe-action/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=TheEdoRan/next-safe-action\" /\u003e\n\u003c/a\u003e\n\nMade with [contrib.rocks](https://contrib.rocks).\n\n## License\n\nnext-safe-action is released under the [MIT License](https://github.com/TheEdoRan/next-safe-action/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheEdoRan%2Fnext-safe-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTheEdoRan%2Fnext-safe-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheEdoRan%2Fnext-safe-action/lists"}