{"id":22380014,"url":"https://github.com/d3sc/nextbase","last_synced_at":"2025-03-26T19:14:59.420Z","repository":{"id":245416565,"uuid":"818181133","full_name":"d3sc/nextbase","owner":"d3sc","description":"next js with supabase","archived":false,"fork":false,"pushed_at":"2024-06-24T16:05:49.000Z","size":336,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T00:45:14.630Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://nextbase-mu.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/d3sc.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}},"created_at":"2024-06-21T09:18:21.000Z","updated_at":"2024-07-09T02:19:01.000Z","dependencies_parsed_at":"2024-06-22T02:47:59.263Z","dependency_job_id":"1c2de35c-c6f1-45bb-bb39-6e3d478f2216","html_url":"https://github.com/d3sc/nextbase","commit_stats":null,"previous_names":["d3sc/nextbase"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3sc%2Fnextbase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3sc%2Fnextbase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3sc%2Fnextbase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3sc%2Fnextbase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d3sc","download_url":"https://codeload.github.com/d3sc/nextbase/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245718784,"owners_count":20661161,"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":[],"created_at":"2024-12-04T23:12:19.531Z","updated_at":"2025-03-26T19:14:59.400Z","avatar_url":"https://github.com/d3sc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://demo-nextjs-with-supabase.vercel.app/\"\u003e\n  \u003cimg alt=\"Next.js and Supabase Starter Kit - the fastest way to build apps with Next.js and Supabase\" src=\"https://demo-nextjs-with-supabase.vercel.app/opengraph-image.png\"\u003e\n  \u003ch1 align=\"center\"\u003eNext.js and Supabase Starter Kit\u003c/h1\u003e\n\u003c/a\u003e\n\n\u003cp align=\"center\"\u003e\n The fastest way to build apps with Next.js and Supabase\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#features\"\u003e\u003cstrong\u003eFeatures\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#demo\"\u003e\u003cstrong\u003eDemo\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#deploy-to-vercel\"\u003e\u003cstrong\u003eDeploy to Vercel\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#clone-and-run-locally\"\u003e\u003cstrong\u003eClone and run locally\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#feedback-and-issues\"\u003e\u003cstrong\u003eFeedback and issues\u003c/strong\u003e\u003c/a\u003e\n  \u003ca href=\"#more-supabase-examples\"\u003e\u003cstrong\u003eMore Examples\u003c/strong\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\n## Features\n\n- Works across the entire [Next.js](https://nextjs.org) stack\n  - App Router\n  - Pages Router\n  - Middleware\n  - Client\n  - Server\n  - It just works!\n- supabase-ssr. A package to configure Supabase Auth to use cookies\n- Styling with [Tailwind CSS](https://tailwindcss.com)\n- Optional deployment with [Supabase Vercel Integration and Vercel deploy](#deploy-your-own)\n  - Environment variables automatically assigned to Vercel project\n\n## Demo\n\nYou can view a fully working demo at [demo-nextjs-with-supabase.vercel.app](https://demo-nextjs-with-supabase.vercel.app/).\n\n## Deploy to Vercel\n\nVercel deployment will guide you through creating a Supabase account and project.\n\nAfter installation of the Supabase integration, all relevant environment variables will be assigned to the project so the deployment is fully functioning.\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fnext.js%2Ftree%2Fcanary%2Fexamples%2Fwith-supabase\u0026project-name=nextjs-with-supabase\u0026repository-name=nextjs-with-supabase\u0026demo-title=nextjs-with-supabase\u0026demo-description=This%20starter%20configures%20Supabase%20Auth%20to%20use%20cookies%2C%20making%20the%20user's%20session%20available%20throughout%20the%20entire%20Next.js%20app%20-%20Client%20Components%2C%20Server%20Components%2C%20Route%20Handlers%2C%20Server%20Actions%20and%20Middleware.\u0026demo-url=https%3A%2F%2Fdemo-nextjs-with-supabase.vercel.app%2F\u0026external-id=https%3A%2F%2Fgithub.com%2Fvercel%2Fnext.js%2Ftree%2Fcanary%2Fexamples%2Fwith-supabase\u0026demo-image=https%3A%2F%2Fdemo-nextjs-with-supabase.vercel.app%2Fopengraph-image.png\u0026integration-ids=oac_VqOgBHqhEoFTPzGkPd7L0iH6)\n\nThe above will also clone the Starter kit to your GitHub, you can clone that locally and develop locally.\n\nIf you wish to just develop locally and not deploy to Vercel, [follow the steps below](#clone-and-run-locally).\n\n## Clone and run locally\n\n1. You'll first need a Supabase project which can be made [via the Supabase dashboard](https://database.new)\n\n2. Create a Next.js app using the Supabase Starter template npx command\n\n   ```bash\n   npx create-next-app -e with-supabase\n   ```\n\n3. Use `cd` to change into the app's directory\n\n   ```bash\n   cd name-of-new-app\n   ```\n\n4. Rename `.env.local.example` to `.env.local` and update the following:\n\n   ```\n   NEXT_PUBLIC_SUPABASE_URL=[INSERT SUPABASE PROJECT URL]\n   NEXT_PUBLIC_SUPABASE_ANON_KEY=[INSERT SUPABASE PROJECT API ANON KEY]\n   ```\n\n   Both `NEXT_PUBLIC_SUPABASE_URL` and `NEXT_PUBLIC_SUPABASE_ANON_KEY` can be found in [your Supabase project's API settings](https://app.supabase.com/project/_/settings/api)\n\n5. You can now run the Next.js local development server:\n\n   ```bash\n   npm run dev\n   ```\n\n   The starter kit should now be running on [localhost:3000](http://localhost:3000/).\n\n\u003e Check out [the docs for Local Development](https://supabase.com/docs/guides/getting-started/local-development) to also run Supabase locally.\n\n## Feedback and issues\n\nPlease file feedback and issues over on the [Supabase GitHub org](https://github.com/supabase/supabase/issues/new/choose).\n\n## More Supabase examples\n\n- [Next.js Subscription Payments Starter](https://github.com/vercel/nextjs-subscription-payments)\n- [Cookie-based Auth and the Next.js 13 App Router (free course)](https://youtube.com/playlist?list=PL5S4mPUpp4OtMhpnp93EFSo42iQ40XjbF)\n- [Supabase Auth and the Next.js App Router](https://github.com/supabase/supabase/tree/master/examples/auth/nextjs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3sc%2Fnextbase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd3sc%2Fnextbase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3sc%2Fnextbase/lists"}