{"id":50483313,"url":"https://github.com/prisma/tanstack-betterauth-demo","last_synced_at":"2026-06-01T19:31:07.737Z","repository":{"id":332745496,"uuid":"1108821352","full_name":"prisma/tanstack-betterauth-demo","owner":"prisma","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-03T17:56:38.000Z","size":9538,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-14T20:37:38.375Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/prisma.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-03T00:55:27.000Z","updated_at":"2026-02-03T17:56:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/prisma/tanstack-betterauth-demo","commit_stats":null,"previous_names":["prisma/tanstack-betterauth-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/prisma/tanstack-betterauth-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Ftanstack-betterauth-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Ftanstack-betterauth-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Ftanstack-betterauth-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Ftanstack-betterauth-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prisma","download_url":"https://codeload.github.com/prisma/tanstack-betterauth-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Ftanstack-betterauth-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33790700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"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":[],"created_at":"2026-06-01T19:31:01.808Z","updated_at":"2026-06-01T19:31:02.747Z","avatar_url":"https://github.com/prisma.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Todo App (Next.js)\n\nA Next.js todo app with authentication (better-auth) and Prisma (PostgreSQL). Built for deployment on Deno Deploy.\n\n## Environment variables\n\nCreate a `.env` file in the project root with:\n\n```\nDATABASE_URL=postgresql://USER:PASSWORD@HOST:5432/DB?sslmode=require\nBETTER_AUTH_SECRET=replace-with-strong-secret\nBETTER_AUTH_URL=http://localhost:3000\n```\n\nFor production (e.g. Deno Deploy), set these in your deployment dashboard. Use your production URL for `BETTER_AUTH_URL` (e.g. `https://your-app.deno.dev`).\n\n## Commands\n\n- Install deps: `pnpm install`\n- Generate Prisma client: `pnpm run db:generate`\n- Apply migrations: `pnpm run db:migrate`\n- Dev server: `pnpm run dev`\n- Build: `pnpm run build`\n- Start (production): `pnpm run start`\n\n## Deploying to Deno Deploy\n\nThis app uses Next.js with `output: \"standalone\"` for Deno Deploy.\n\n1. **GitHub integration**: Connect your repo at [dash.deno.com](https://dash.deno.com). Deno Deploy will detect the Next.js app and configure the build. Set `DATABASE_URL`, `BETTER_AUTH_SECRET`, and `BETTER_AUTH_URL` in the project Environment Variables.\n\n2. **Pre-deploy**: Ensure the build runs `prisma generate` so the Prisma client (under `src/generated/prisma`) is available. The `prebuild` script in `package.json` runs `db:generate` before `next build`.\n\n3. **CLI deploy** (optional):\n   ```bash\n   pnpm run build\n   deployctl deploy --include=.next --include=public jsr:@deno/nextjs-start/v15\n   ```\n\n## Styling\n\nThis project uses [Tailwind CSS](https://tailwindcss.com/) v4 with PostCSS.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Ftanstack-betterauth-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprisma%2Ftanstack-betterauth-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Ftanstack-betterauth-demo/lists"}