{"id":22697128,"url":"https://github.com/patelvivekdev/server-actions","last_synced_at":"2026-05-18T09:10:53.724Z","repository":{"id":233437331,"uuid":"786261779","full_name":"patelvivekdev/server-actions","owner":"patelvivekdev","description":"Learn how to use server actions in Nextjs","archived":false,"fork":false,"pushed_at":"2025-03-21T17:38:25.000Z","size":939,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-20T11:44:41.324Z","etag":null,"topics":["file-upload","next-auth","nextjs14","server-actions","supabase","supabase-storage"],"latest_commit_sha":null,"homepage":"https://server-actions-patelvivekdev.vercel.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patelvivekdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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,"zenodo":null}},"created_at":"2024-04-13T22:58:38.000Z","updated_at":"2025-04-29T07:54:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"e5beca87-13a2-40fa-982a-91acf7c05165","html_url":"https://github.com/patelvivekdev/server-actions","commit_stats":null,"previous_names":["patelvivekdev/server-actions"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/patelvivekdev/server-actions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patelvivekdev%2Fserver-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patelvivekdev%2Fserver-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patelvivekdev%2Fserver-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patelvivekdev%2Fserver-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patelvivekdev","download_url":"https://codeload.github.com/patelvivekdev/server-actions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patelvivekdev%2Fserver-actions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271012280,"owners_count":24684517,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["file-upload","next-auth","nextjs14","server-actions","supabase","supabase-storage"],"created_at":"2024-12-10T05:12:12.280Z","updated_at":"2025-10-09T15:02:02.102Z","avatar_url":"https://github.com/patelvivekdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Table of Contents\n\n- [Server actions with Next.js.](#server-actions-with-nextjs)\n  - [A simple example of server actions with Next.js, Turso, AuthJS, TailwindCSS, ShadCn UI, Zod.](#a-simple-example-of-server-actions-with-nextjs-turso-authjs-tailwindcss-shadcn-ui-zod)\n  - [Getting Started](#getting-started)\n  - [Learn More](#learn-more)\n  - [Deploy on Vercel](#deploy-on-vercel)\n  - [Author](#author)\n  - [Links](#links)\n\n# Server actions with Next.js.\n\n### A simple example of server actions with Next.js, Turso, AuthJS, TailwindCSS, ShadCn UI, Zod.\n\n- [x] server actions to mutate data in Next.js.\n- [x] Turso for database.\n- [x] AuthJS for authentication.\n- [x] TailwindCSS for styling.\n- [x] ShadCn UI for UI components.\n- [x] Zod for form validation.\n- [x] server actions for file upload.\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://patelvivek.dev/og?title=server-actions\" alt=\"Server Actions\" /\u003e\n\u003c/div\u003e\n\n## Getting Started\n\nFirst, run the development server:\n\n```bash\nnpm install\nnpm run dev\n\n# or\nbun install\nbun dev\n```\n\nCopy the `.env.example` to `.env.local` and fill in the required values.\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n## Learn More\n\nTo learn more about Server Actions, take a look at the following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations) - learn about Next.js features and API.\n- [React](https://react.dev/reference/react/use-server#server-actions-in-forms) - Learn Server Actions in forms.\n- [useActionState hooks](https://react.dev/reference/react/useActionState) - Learn how to use useActionState hook.\n- [useFormStatus hooks](https://react.dev/reference/react-dom/hooks/useFormStatus) - Learn how to use useFormStatus hook.\n- [useOptimistic hooks](https://react.dev/reference/react/useOptimistic) - Learn how to use useOptimistic hook.\n\nExtra resources:\n\n- [Turso](https://turso.tech) - learn about Turso features and API.\n- [Drizzle](https://orm.drizzle.team/) - learn about Drizzle features and API.\n- [AuthJS Documentation](https://authjs.dev/getting-started) - learn about AuthJS features and API.\n- [ShadCn UI Documentation](https://ui.shadcn.com/) - learn about ShadCn UI features and API.\n\n## Deploy on Vercel\n\n![Deploy with Vercel](https://vercel.com/button)\n\n## Author\n\n- [patelvivek.dev](https://patelvivek.dev)\n\n## Links\n\n- [Live Demo](https://server-actions-patelvivekdev.vercel.app/)\n- [Blog Post](https://patelvivek.dev/blog/server-actions)\n\n\u003cp align=\"center\"\u003e\n  Made with ❤️ by Vivek Patel\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatelvivekdev%2Fserver-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatelvivekdev%2Fserver-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatelvivekdev%2Fserver-actions/lists"}