{"id":50527358,"url":"https://github.com/tsubasagit/relay","last_synced_at":"2026-06-03T09:02:36.421Z","repository":{"id":342851717,"uuid":"1172239660","full_name":"tsubasagit/relay","owner":"tsubasagit","description":"Developer-friendly email delivery platform - Open alternative to Resend \u0026 SendGrid","archived":false,"fork":false,"pushed_at":"2026-03-24T01:48:01.000Z","size":2089,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-24T11:46:56.386Z","etag":null,"topics":["email","email-delivery","hono","microservice","react","saas","sendgrid-alternative","sqlite","typescript"],"latest_commit_sha":null,"homepage":null,"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/tsubasagit.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":null,"dco":null,"cla":null}},"created_at":"2026-03-04T04:47:42.000Z","updated_at":"2026-03-24T01:48:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tsubasagit/relay","commit_stats":null,"previous_names":["tsubasagit/talent-mail","tsubasagit/relay"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tsubasagit/relay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsubasagit%2Frelay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsubasagit%2Frelay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsubasagit%2Frelay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsubasagit%2Frelay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsubasagit","download_url":"https://codeload.github.com/tsubasagit/relay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsubasagit%2Frelay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33856287,"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":["email","email-delivery","hono","microservice","react","saas","sendgrid-alternative","sqlite","typescript"],"created_at":"2026-06-03T09:02:35.581Z","updated_at":"2026-06-03T09:02:36.406Z","avatar_url":"https://github.com/tsubasagit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Relay\r\n\r\n**Developer-friendly email delivery platform.**\r\nSendGridの代替、Resendのオープンな競合。\r\n\r\n## What is Relay?\r\n\r\nRelay は、開発者とビジネスのためのメール配信プラットフォームです。SendGrid が無料プランを廃止する中、シンプルで手頃な価格のメール配信を提供します。\r\n\r\n### Why Relay?\r\n\r\n- **SendGrid からの移行が簡単** - SMTP / API どちらでも接続可能\r\n- **マルチテナント対応** - 1つのインスタンスで複数組織を管理\r\n- **コンタクト管理** - CSV / Google Workspace からインポート\r\n- **一斉配信** - オーディエンス（リスト）を作って一括送信\r\n- **テンプレートエンジン** - `{{variables}}` でパーソナライズ\r\n- **配信停止管理** - ワンクリック配信停止リンク自動挿入\r\n- **開封・クリック追跡** - トラッキングピクセル \u0026 リダイレクト\r\n- **セルフホスト可能** - Docker Compose で即座に起動\r\n\r\n## Tech Stack\r\n\r\n| Layer | Technology |\r\n|---|---|\r\n| API | Hono + Node.js |\r\n| Database | SQLite (dev) / PostgreSQL (prod) |\r\n| ORM | Drizzle |\r\n| Dashboard | React 19 + Vite + Tailwind CSS v4 |\r\n| Auth | Google OAuth 2.0 |\r\n| Email | SMTP (Nodemailer) / SendGrid / Amazon SES |\r\n| Deploy | Docker / Cloud Run |\r\n\r\n## Quick Start\r\n\r\n```bash\r\n# Install\r\ngit clone https://github.com/tsubasagit/relay.git\r\ncd relay\r\nnpm install\r\n\r\n# Start dev servers (API: 3456, Dashboard: 5173)\r\nnpm run dev\r\n```\r\n\r\n### Environment Variables\r\n\r\n```bash\r\n# packages/api/.env\r\nDATABASE_PATH=./data/relay.db\r\nAPI_PORT=3456\r\nAPI_BASE_URL=http://localhost:3456\r\nGOOGLE_CLIENT_ID=your-client-id.apps.googleusercontent.com\r\nGOOGLE_CLIENT_SECRET=your-secret\r\nGOOGLE_CALLBACK_URL=http://localhost:3456/auth/google/callback\r\nSESSION_SECRET=change-this-in-production\r\nENCRYPTION_KEY=64-char-hex-string\r\n```\r\n\r\n## Features\r\n\r\n### Email Sending\r\n- Single email via API or dashboard\r\n- Bulk broadcast to audience lists\r\n- Template-based with variable substitution\r\n- Multiple provider support (SMTP, SendGrid, SES)\r\n\r\n### Contact Management\r\n- Manual add / edit / delete\r\n- CSV bulk import\r\n- Google Workspace directory import\r\n- Unsubscribe status tracking\r\n\r\n### Audiences\r\n- Create named lists (e.g., \"Newsletter subscribers\")\r\n- Add/remove contacts with search\r\n- Use as broadcast targets\r\n\r\n### Broadcasts\r\n- Select audience + template + sending address\r\n- Background async processing (non-blocking)\r\n- Real-time progress tracking (polling)\r\n- Automatic unsubscribe link injection\r\n- Rate-limited sending (50ms interval)\r\n- Skip unsubscribed contacts\r\n\r\n### Analytics\r\n- Delivery logs with status filtering\r\n- Open rate / click rate tracking\r\n- Per-broadcast detailed stats\r\n\r\n### Organization Management\r\n- Multi-tenant with role-based access (admin/member)\r\n- Domain verification via DNS TXT record\r\n- API key management (`rl_live_` prefix)\r\n- Provider config encryption (AES-256-GCM)\r\n\r\n## API\r\n\r\n```bash\r\n# Send email\r\ncurl -X POST http://localhost:3456/api/emails/send \\\r\n  -H \"Authorization: Bearer rl_live_xxxxx\" \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\"to\":\"user@example.com\",\"subject\":\"Hello\",\"html\":\"\u003cp\u003eHi!\u003c/p\u003e\"}'\r\n```\r\n\r\n### SDK\r\n\r\n```typescript\r\nimport { RelayClient } from \"@relay-email/sdk\";\r\n\r\nconst relay = new RelayClient({\r\n  baseUrl: \"https://your-relay-instance.com\",\r\n  apiKey: \"rl_live_xxxxx\",\r\n});\r\n\r\nawait relay.sendEmail({\r\n  to: \"user@example.com\",\r\n  templateId: \"tmpl_xxxx\",\r\n  variables: { name: \"John\" },\r\n});\r\n```\r\n\r\n## License\r\n\r\nMIT\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsubasagit%2Frelay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsubasagit%2Frelay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsubasagit%2Frelay/lists"}