{"id":50537045,"url":"https://github.com/piro0919/nesh","last_synced_at":"2026-06-03T17:30:22.643Z","repository":{"id":355773552,"uuid":"1222370604","full_name":"piro0919/nesh","owner":"piro0919","description":"A simple Web Push notification SaaS for Next.js / React developers (the OneSignal-to-Umami of Web Push)","archived":false,"fork":false,"pushed_at":"2026-05-27T21:15:38.000Z","size":10564,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-27T23:11:26.605Z","etag":null,"topics":["nextjs","open-source","push-notifications","react","saas","service-worker","supabase","typescript","vapid","web-push"],"latest_commit_sha":null,"homepage":"https://nesh.kkweb.io","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/piro0919.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-27T09:50:21.000Z","updated_at":"2026-05-15T15:33:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/piro0919/nesh","commit_stats":null,"previous_names":["piro0919/nesh"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/piro0919/nesh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piro0919%2Fnesh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piro0919%2Fnesh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piro0919%2Fnesh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piro0919%2Fnesh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piro0919","download_url":"https://codeload.github.com/piro0919/nesh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piro0919%2Fnesh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33876327,"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-03T02:00:06.370Z","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":["nextjs","open-source","push-notifications","react","saas","service-worker","supabase","typescript","vapid","web-push"],"created_at":"2026-06-03T17:30:21.512Z","updated_at":"2026-06-03T17:30:22.630Z","avatar_url":"https://github.com/piro0919.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://nesh.kkweb.io\"\u003e\n    \u003cimg src=\"src/app/opengraph-image.png\" alt=\"Nesh — Web Push, made simple\" width=\"640\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eNesh\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  Web Push notifications, made simple.\u003cbr/\u003e\n  A lightweight, open-source alternative to OneSignal for Next.js / React projects.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://nesh.kkweb.io\"\u003e\u003cimg alt=\"Live\" src=\"https://img.shields.io/badge/live-nesh.kkweb.io-0a0a0a?style=flat-square\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@piro0919/next-push\"\u003e\u003cimg alt=\"SDK\" src=\"https://img.shields.io/npm/v/@piro0919/next-push?label=%40piro0919%2Fnext-push\u0026style=flat-square\" /\u003e\u003c/a\u003e\n  \u003ca href=\"LICENSE\"\u003e\u003cimg alt=\"License\" src=\"https://img.shields.io/badge/license-MIT-blue?style=flat-square\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## What is Nesh?\n\nIf you've ever needed Web Push notifications for a side project and found OneSignal's segmentation, journeys, and A/B testing to be 95% feature bloat — Nesh is the boring 5%.\n\n- **Sign up**, create a project, get an API base + VAPID public key\n- **Drop in the SDK** ([`@piro0919/next-push`](https://www.npmjs.com/package/@piro0919/next-push)) — one hook + one service worker\n- **Send** notifications from the dashboard or via a REST API. Immediate or scheduled.\n\nNesh is **to OneSignal what Umami is to Google Analytics** — a smaller, friendlier alternative for people who don't need the enterprise features.\n\n\u003e Hosted at **[nesh.kkweb.io](https://nesh.kkweb.io)** · Docs at **[nesh.kkweb.io/docs](https://nesh.kkweb.io/docs)** · Free during early access · MIT licensed · Built by a solo developer\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"public/dashboard-preview.png\" alt=\"Nesh dashboard preview\" width=\"900\" /\u003e\n\u003c/p\u003e\n\n## Quick start (using the hosted Nesh)\n\n```tsx\n'use client';\nimport { usePush } from \"@piro0919/next-push\";\n\nexport function Subscribe() {\n  const { subscribe } = usePush({\n    apiBase: \"https://nesh.kkweb.io/api/v1/projects/\u003cprojectId\u003e\",\n    vapidPublicKey: \"\u003cVAPID public key from your project\u003e\",\n    // Optional — scope subscriptions to your application's user id\n    // so you can target sends by user from the dashboard / REST API.\n    userId: currentUser.id,\n  });\n  return \u003cbutton onClick={subscribe}\u003eEnable notifications\u003c/button\u003e;\n}\n```\n\nThen add a service worker at `/public/sw.js`:\n\n```js\nself.addEventListener(\"push\", (event) =\u003e {\n  const data = event.data?.json() ?? {};\n  event.waitUntil(\n    self.registration.showNotification(data.title ?? \"Nesh\", {\n      body: data.body,\n      data: { url: data.url },\n    }),\n  );\n});\n\nself.addEventListener(\"notificationclick\", (event) =\u003e {\n  event.notification.close();\n  const url = event.notification.data?.url ?? \"/\";\n  event.waitUntil(self.clients.openWindow(url));\n});\n```\n\nThat's the whole client-side integration. See [`examples/next-app`](examples/next-app) for a runnable sample.\n\n## Send via REST API\n\n```bash\ncurl -X POST https://nesh.kkweb.io/api/v1/projects/\u003cid\u003e/notifications \\\n  -H \"Authorization: Bearer nesh_sk_...\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"title\": \"Hello\",\n    \"body\": \"From the API\",\n    \"url\": \"https://example.com\",\n    \"userIds\": [\"alice\", \"bob\"]\n  }'\n```\n\n`userIds` is optional — omit it to broadcast to every subscriber.\n\n## Free tier\n\nThe hosted version is free during early access, with hard caps to keep this sustainable as a one-person side project:\n\n| Quota | Limit |\n| --- | --- |\n| Projects per user | **1** |\n| Subscribers per project | **5,000** |\n| Sends per project per UTC month | **10,000** |\n\nIf you'd hit those ceilings, please open an issue — long-term pricing isn't decided yet, and that signal genuinely helps.\n\n## Stack\n\n- **Next.js 16** (App Router, Server Actions, the new `proxy.ts`) on **React 19**\n- **Supabase** (Postgres + Auth + RLS)\n- **Vercel** (hosting + Cron for scheduled sends)\n- **shadcn/ui** + **Tailwind v4** with system / light / dark theme via `next-themes`\n- **next-intl** for English / 日本語\n- **[`@piro0919/next-push`](https://github.com/piro0919/next-push)** for the actual sending (web-push + VAPID)\n\nVAPID private keys are stored AES-256-GCM encrypted at rest. Subscriptions optionally carry an `external_user_id` for targeted sends. Webhooks fire HMAC-SHA256-signed `notification.sent` / `subscription.created` / `subscription.removed` events.\n\n## Self-host\n\nNesh is MIT-licensed and runs anywhere with Postgres + a Node-compatible host. See the full **[self-hosting guide](https://nesh.kkweb.io/docs/self-host)** for step-by-step instructions, including required env vars, cron scheduling outside Vercel, and operational notes.\n\n### Local development\n\nPrerequisites: Node.js 20+, pnpm 9+, Docker (for local Supabase).\n\n```bash\npnpm install\npnpm db:start                     # local Postgres + Auth + Studio\ncp .env.example .env.local        # paste keys printed by db:start\npnpm db:reset                     # apply migrations\npnpm dev                          # http://localhost:3000\n```\n\nOther scripts:\n\n- `pnpm db:types` — regenerate `src/lib/supabase/database.types.ts` from the local schema\n- `pnpm db:stop` — stop the local Supabase stack\n- `pnpm lint` / `pnpm format` — Biome\n- `pnpm test` / `pnpm test:e2e` — vitest / Playwright\n\n### Required environment variables\n\n| Variable | Purpose |\n| --- | --- |\n| `NEXT_PUBLIC_SUPABASE_URL` / `NEXT_PUBLIC_SUPABASE_ANON_KEY` | Browser-side Supabase client |\n| `SUPABASE_SERVICE_ROLE_KEY` | Server-side admin client (bypasses RLS) |\n| `NEXT_PUBLIC_SITE_URL` | Public origin — used for apiBase + event tracking URLs |\n| `CRON_SECRET` | Bearer token guarding `/api/cron/dispatch` |\n| `VAPID_KEY_ENCRYPTION_KEY` | 32-byte base64 key for at-rest VAPID encryption |\n| `ADMIN_USER_IDS` | Optional. Comma-separated user UUIDs that can access `/admin` |\n\n## Contributing\n\nBug reports and PRs welcome. Please open an issue first for non-trivial changes so we can align on direction.\n\n## License\n\n[MIT](LICENSE) © [piro0919](https://github.com/piro0919)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiro0919%2Fnesh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiro0919%2Fnesh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiro0919%2Fnesh/lists"}