{"id":18886686,"url":"https://github.com/supabase-community/onesignal","last_synced_at":"2026-03-10T20:37:57.134Z","repository":{"id":103618486,"uuid":"576200660","full_name":"supabase-community/onesignal","owner":"supabase-community","description":"Next.js app showcasing how you can implement push notification using OneSignal and Supabase","archived":false,"fork":false,"pushed_at":"2023-11-14T00:47:21.000Z","size":1292,"stargazers_count":17,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-26T18:46:14.844Z","etag":null,"topics":["onesignal","push-notifications","supabase"],"latest_commit_sha":null,"homepage":"https://onesignal-example.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/supabase-community.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":"2022-12-09T08:45:58.000Z","updated_at":"2025-06-21T15:25:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"f26a651b-a77d-4253-8ebe-94866ea1c676","html_url":"https://github.com/supabase-community/onesignal","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"0bae85a5c6c8139480685cc6563e48f364678d04"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/supabase-community/onesignal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase-community%2Fonesignal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase-community%2Fonesignal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase-community%2Fonesignal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase-community%2Fonesignal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/supabase-community","download_url":"https://codeload.github.com/supabase-community/onesignal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase-community%2Fonesignal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30353002,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["onesignal","push-notifications","supabase"],"created_at":"2024-11-08T07:29:58.925Z","updated_at":"2026-03-10T20:37:57.113Z","avatar_url":"https://github.com/supabase-community.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OneSignal Next.js Push Notification Example\n\nSimple ordering app to demonstrate how you can use OneSignal with your Supabase project to send push notifications when a new data is inserted in your database.\n\nYou can find the full guide [here](https://supabase.com/docs/guides/integrations/onesignal).\n\n![Screenshot](https://raw.githubusercontent.com/supabase-community/onesignal/main/assets/screenshot.png)\n\n    .\n    ├── app         # Next.js app to place orders from\n    ├── supabase    # Supabase directory containing functions to send push notifications\n    └── README.md\n\n## Get Started\n\n- Create a [OneSignal app with Custom Code Setup](https://documentation.onesignal.com/docs/web-push-custom-code-setup)\n- Rename `app/.env.example` to `app/.env.local` and add your Supabase URL, Anon Key, and OneSignal App ID.\n- Run `supabase link --project-ref YOUR_SUPABASE_PROJECT_REF` to link the edge functions to your Supabase project\n- Set environment variables for edge functions\n  - Rename `supabase/.env.example` to `supabase/.env`\n  - Add your OneSignal App ID, User Auth Key, and REST API Key\n  - Run `supabase secrets set --env-file ./supabase/.env`\n- Deploy the `notify` edge function by running `supabase functions deploy notify --no-verify-jwt`\n- Run the SQL below to create the `orders` table\n- Setup [Database Webhooks](https://supabase.com/docs/guides/database/webhooks) to call the edge function when a new row is inserted into `orders` table\n\n```sql\ncreate table if not exists public.orders (\n    id uuid not null primary key default uuid_generate_v4(),\n    created_at timestamptz not null default now(),\n    user_id uuid not null default auth.uid(),\n    price int8 not null\n);\n```\n\n## Running the app locally\n\nRun the following command to start the Next.js app\n\n```bash\ncd app\n\nnpm install\n\nnpm run dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupabase-community%2Fonesignal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupabase-community%2Fonesignal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupabase-community%2Fonesignal/lists"}