{"id":19683901,"url":"https://github.com/prisma/prisma-accelerate-supabase-edge-functions","last_synced_at":"2025-10-09T13:32:51.292Z","repository":{"id":227618607,"uuid":"771942300","full_name":"prisma/prisma-accelerate-supabase-edge-functions","owner":"prisma","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-14T08:40:43.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T13:32:35.439Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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}},"created_at":"2024-03-14T08:37:19.000Z","updated_at":"2025-05-19T08:18:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"ec5b83c3-ab89-455e-80ed-086f5f1e12b5","html_url":"https://github.com/prisma/prisma-accelerate-supabase-edge-functions","commit_stats":null,"previous_names":["ankur-arch/prisma-accelerate-supabase-edge-functions"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/prisma/prisma-accelerate-supabase-edge-functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fprisma-accelerate-supabase-edge-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fprisma-accelerate-supabase-edge-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fprisma-accelerate-supabase-edge-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fprisma-accelerate-supabase-edge-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prisma","download_url":"https://codeload.github.com/prisma/prisma-accelerate-supabase-edge-functions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fprisma-accelerate-supabase-edge-functions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001480,"owners_count":26083102,"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-10-09T02:00:07.460Z","response_time":59,"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":"2024-11-11T18:16:01.577Z","updated_at":"2025-10-09T13:32:51.285Z","avatar_url":"https://github.com/prisma.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Supabase edge function with Prisma Accelerate\n\nThis project demonstrates the integration of Prisma ORM with\n[Prisma Accelerate](https://www.prisma.io/data-platform/accelerate) within\n[Supabase edge functions](https://supabase.com/docs/guides/functions).\n\n## Prerequisites\n\n- Have Deno installed\n- Have Docker installed for testing Supabase edge functions\n- Meet the\n  [requirements]((https://www.prisma.io/docs/accelerate/getting-started#prerequisites))\n  for using Prisma Accelerate\n\n1. Fill in your `.env` file with the `DATABASE_URL` (Prisma Accelerate\n   connection string) and a `DIRECT_URL` (for database migrations):\n\n   ```bash\n   DATABASE_URL=\"prisma://accelerate.prisma-data.net/?api_key=\"\n   DIRECT_URL=\"postgres://root:password@127.0.0.1:5432/postgres\"\n   ```\n\n2. Generate a `PrismaClient`:\n\n   ```bash\n   deno run -A --unstable npm:prisma generate --no-engine\n   ```\n\n## Test App Locally\n\n1. Start the app:\n\n   ```bash\n   npx supabase start\n   ```\n\n2. Watch logs and debug:\n\n   ```bash\n   npx supabase functions serve --env-file ./supabase/.env --no-verify-jwt\n   ```\n\n3. Visit `http://127.0.0.1:54321/functions/v1/hello-accelerate`\n\n## Deploy to Production\n\n1. Add secrets to production:\n\n   ```bash\n   npx supabase secrets set --env-file ./supabase/.env\n   ```\n\n2. Deploy to production:\n\n   ```bash\n   npx supabase deploy --no-verify-jwt\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Fprisma-accelerate-supabase-edge-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprisma%2Fprisma-accelerate-supabase-edge-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Fprisma-accelerate-supabase-edge-functions/lists"}