{"id":19671662,"url":"https://github.com/7-docs/template-next-supabase","last_synced_at":"2025-04-29T01:30:37.806Z","repository":{"id":237442969,"uuid":"633960095","full_name":"7-docs/template-next-supabase","owner":"7-docs","description":"Starterkit for Next.js, Supabase and @7-docs/edge","archived":false,"fork":false,"pushed_at":"2023-04-30T07:53:04.000Z","size":73,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T12:04:32.506Z","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/7-docs.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":"2023-04-28T17:18:36.000Z","updated_at":"2023-09-25T00:47:26.000Z","dependencies_parsed_at":"2024-05-01T22:48:34.840Z","dependency_job_id":"1867fce4-b67e-4d72-b2e2-affda3708f2c","html_url":"https://github.com/7-docs/template-next-supabase","commit_stats":null,"previous_names":["7-docs/template-next-supabase"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7-docs%2Ftemplate-next-supabase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7-docs%2Ftemplate-next-supabase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7-docs%2Ftemplate-next-supabase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7-docs%2Ftemplate-next-supabase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7-docs","download_url":"https://codeload.github.com/7-docs/template-next-supabase/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251415573,"owners_count":21585855,"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-11-11T17:09:24.787Z","updated_at":"2025-04-29T01:30:37.442Z","avatar_url":"https://github.com/7-docs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# template-next-supabase\n\nStarterkit for OpenAI chat client based on your own content. Main ingredients:\n\n- [Next.js](https://nextjs.org)\n- [Supabase](https://supabase.com) + [pgvector](https://supabase.com/docs/guides/database/extensions/pgvector)\n- [@7-docs/edge](https://www.npmjs.com/package/@7-docs/edge)\n- TypeScript\n- Tailwind\n\n## Install\n\n- [Use this template](https://github.com/7-docs/template-next-supabase/generate)\n- Clone your new repo\n- `npm install`\n- [Prepare vector database](#prepare-db)\n- [Ingest content](#ingest)\n- `cp .env.example .env.local` and paste your tokens: `OPENAI_API_KEY`, `SUPABASE_URL`, `SUPABASE_API_KEY`\n\nThe following commands are using `my-namespace` as set in [config.ts](./config.ts) and ingest content from the\n`reactjs/react.dev` repository. By all means, you're encouraged to change them to something more original.\n\n## Prepare db\n\nCreate a Supabase account if you don't have one already.\n\nThe following command does not actually do anything. Instead, it gives you an all-batteries-included SQL query to run in\nyour [Supabase project area](https://app.supabase.com/projects)'s SQL Editor:\n\n```shell\nnpx 7d supabase-create-table --namespace my-namespace\n```\n\n## Ingest\n\n```shell\nnpx 7d ingest \\\n  --source github \\\n  --repo reactjs/react.dev \\\n  --files 'src/content/reference/react/*.md' \\\n  --files 'src/content/reference/react-dom/*.md' \\\n  --files 'src/content/learn/*.md' \\\n  --namespace my-namespace\n```\n\n## Run\n\n```shell\nnpm run dev\n```\n\n## Deploy\n\nThis application can be deployed on platforms with support for Next.js + edge functions. Examples:\n\n- [Vercel](https://vercel.com)\n- [Fly.io](https://fly.io)\n\nMake sure to add the environment variables to the platform first.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7-docs%2Ftemplate-next-supabase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7-docs%2Ftemplate-next-supabase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7-docs%2Ftemplate-next-supabase/lists"}