{"id":21205854,"url":"https://github.com/atinux/nuxthub-better-auth","last_synced_at":"2025-04-07T07:01:49.308Z","repository":{"id":261220779,"uuid":"877317999","full_name":"atinux/nuxthub-better-auth","owner":"atinux","description":"A demo of using Better Auth with Nuxt \u0026 NuxtHub (Cloudflare D1 \u0026 KV).","archived":false,"fork":false,"pushed_at":"2024-12-23T10:53:43.000Z","size":705,"stargazers_count":92,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-04T22:33:53.036Z","etag":null,"topics":["better-auth","cloudflare","d1","nuxt","nuxthub","vue"],"latest_commit_sha":null,"homepage":"https://better-auth.nuxt.dev","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/atinux.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-10-23T13:04:15.000Z","updated_at":"2025-04-01T23:43:33.000Z","dependencies_parsed_at":"2024-11-05T11:47:35.902Z","dependency_job_id":"e68b6b2d-14be-4f2e-b024-006dc77c2cd7","html_url":"https://github.com/atinux/nuxthub-better-auth","commit_stats":null,"previous_names":["atinux/nuxthub-better-auth"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atinux%2Fnuxthub-better-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atinux%2Fnuxthub-better-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atinux%2Fnuxthub-better-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atinux%2Fnuxthub-better-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atinux","download_url":"https://codeload.github.com/atinux/nuxthub-better-auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247608150,"owners_count":20965952,"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":["better-auth","cloudflare","d1","nuxt","nuxthub","vue"],"created_at":"2024-11-20T20:53:18.470Z","updated_at":"2025-04-07T07:01:49.263Z","avatar_url":"https://github.com/atinux.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# NuxtHub x BetterAuth\n\nA demo of using [BetterAuth](https://better-auth.com) with [NuxtHub](https://hub.nuxt.com) (Cloudflare Pages with D1 \u0026 KV).\n\nhttps://better-auth.nuxt.dev\n\n[![Deploy to NuxtHub](https://hub.nuxt.com/button.svg)](https://admin.hub.nuxt.com/new?repo=atinux/nuxthub-better-auth)\n\n## Features\n\n- Server-Side rendering on Cloudflare Workers\n- [SQL Database](https://hub.nuxt.com/docs/features/database) on the edge\n- Use [Key Value Storage](https://hub.nuxt.com/docs/features/kv) as secondary storage for sessions, etc.\n- `useAuth()` Vue composable for easy authentication\n- `serverAuth()` composable for accessing Better Auth instance on the server\n- One click deploy on 275+ locations for free\n\n## Setup\n\nMake sure to install the dependencies with [pnpm](https://pnpm.io/installation#using-corepack):\n\n```bash\npnpm install\n```\n\nCopy the `.env.example` file to `.env` and update the variables with your own values.\n\nThe `BETTER_AUTH_SECRET` should be a random string of your choosing used by Better Auth for encryption and generating hashes.\n\nThe `GITHUB_CLIENT_ID` and `GITHUB_CLIENT_SECRET` should be your GitHub OAuth application credentials (see [create an OAuth application](https://github.com/settings/applications/new)).\n\nThe `NUXT_UI_PRO_LICENSE` should be your Nuxt UI Pro license key (only required for production), if you don't have one, you can purchase one [here](https://ui.nuxt.com/pro).\n\n## Development Server\n\nStart the development server on `http://localhost:3000`:\n\n```bash\npnpm dev\n```\n\n## Production\n\nBuild the application for production:\n\n```bash\npnpm build\n```\n\n## Deploy\n\nDeploy the application on the Edge with [NuxtHub](https://hub.nuxt.com) on your Cloudflare account:\n\n```bash\nnpx nuxthub deploy\n```\n\nThen checkout your server logs, analaytics and more in the [NuxtHub Admin](https://admin.hub.nuxt.com).\n\nYou can also deploy using [Cloudflare Pages CI](https://hub.nuxt.com/docs/getting-started/deploy#cloudflare-pages-ci).\n\n### Database Migrations\n\nRight now, we don't automatically run migrations on deployment. You can manually run them by visiting the `/api/migrate` endpoint after deploying.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatinux%2Fnuxthub-better-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatinux%2Fnuxthub-better-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatinux%2Fnuxthub-better-auth/lists"}