{"id":24284508,"url":"https://github.com/xg4/signal","last_synced_at":"2026-04-09T01:32:44.172Z","repository":{"id":272129843,"uuid":"915597595","full_name":"xg4/signal","owner":"xg4","description":"Event notification system with web push","archived":false,"fork":false,"pushed_at":"2025-04-14T02:42:32.000Z","size":159,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-14T05:39:53.706Z","etag":null,"topics":["bullmq","bun","hono","postgres","prisma","pwa","redis","web-push"],"latest_commit_sha":null,"homepage":"","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/xg4.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}},"created_at":"2025-01-12T09:45:21.000Z","updated_at":"2025-07-20T00:07:08.000Z","dependencies_parsed_at":"2025-02-06T06:22:53.781Z","dependency_job_id":"696ccc49-1ad2-4ca7-89fb-dfd7600b596b","html_url":"https://github.com/xg4/signal","commit_stats":null,"previous_names":["xg4/signal"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xg4/signal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xg4%2Fsignal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xg4%2Fsignal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xg4%2Fsignal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xg4%2Fsignal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xg4","download_url":"https://codeload.github.com/xg4/signal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xg4%2Fsignal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"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":["bullmq","bun","hono","postgres","prisma","pwa","redis","web-push"],"created_at":"2025-01-16T05:16:27.571Z","updated_at":"2026-04-09T01:32:44.150Z","avatar_url":"https://github.com/xg4.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Signal - Event Notification System\n\nA Bun-based event notification system with web push capabilities.\n\n## Features\n\n- Event management (CRUD)\n- Scheduled notifications\n- Web push notifications\n- User authentication\n- PostgreSQL database with Prisma ORM\n- Queue system for reliable notification delivery\n- Recurring events support\n\n## Docker Deployment\n\n### Quick Start\n\nThe system requires two containers to function properly:\n\n1. **API Server** - Handles HTTP requests and API endpoints\n2. **Worker** - Processes background tasks (scheduled notifications, recurring events)\n\nRun both containers with these commands:\n\n```bash\n# Start the API server\ndocker run -d \\\n  --name signal-api \\\n  --env-file .env \\\n  --network host \\\n  --restart unless-stopped \\\n  ghcr.io/xg4/signal:latest run start\n\n# Start the background worker\ndocker run -d \\\n  --name signal-worker \\\n  --env-file .env \\\n  --network host \\\n  --restart unless-stopped \\\n  ghcr.io/xg4/signal:latest run start:worker\n```\n\n## Tech Stack\n\n- **Runtime**: Bun\n- **Backend Framework**: Hono.js\n- **Database**: PostgreSQL + Prisma ORM\n- **Authentication**: JWT\n- **Queue System**: BullMQ + Redis\n- **Notifications**: web-push\n- **Language**: TypeScript\n\n## Prerequisites\n\n- Bun 1.x\n- PostgreSQL\n- Redis\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/xg4/signal.git\n   cd signal\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n3. Set up environment variables:\n\n   ```bash\n   cp .env.template .env\n   ```\n\n   Edit the `.env` file with your configuration.\n\n4. Generate VAPID keys for web push:\n\n   ```bash\n   npx web-push generate-vapid-keys\n   ```\n\n   Add the generated keys to your `.env` file.\n\n5. Set up the database:\n   ```bash\n   npm run generate # Generate migration files\n   npm run migrate # Apply migrations\n   ```\n\n## Development\n\nStart the development server:\n\n```bash\nnpm run dev\n```\n\n## Building for Production\n\nBuild the project:\n\n```bash\nnpm run build\n```\n\nStart the production server:\n\n```bash\nnpm start\n```\n\n## Docker Deployment\n\nBuild the Docker image:\n\n```bash\ndocker build -t signal-app .\n```\n\n## API Endpoints\n\n### Authentication\n\n- `POST /api/register` - Register a new user\n- `POST /api/login` - Login a user\n- `GET /api/me` - userRequired - Get current user info\n\n### Events\n\n- `GET /api/events` - Get all events for current user\n- `GET /api/events/:id` - Get a specific event\n- `POST /api/events` - Create a new event\n- `PUT /api/events/:id` - Update an event\n- `DELETE /api/events/:id` - Delete an event\n- `POST /api/events/batch` - Batch import events\n\n### Subscriptions\n\n- `POST /api/subscriptions` - Create a new subscription\n- `DELETE /api/subscriptions/:id` - Delete a subscription by ID\n- `GET /api/subscriptions` - Get all subscriptions for current user\n\n## Testing Web Push\n\nYou can test web push notifications using tools like:\n\n- [Push Companion](https://web-push-codelab.glitch.me/)\n- [Browser built-in Push API](https://developer.mozilla.org/en-US/docs/Web/API/Push_API)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxg4%2Fsignal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxg4%2Fsignal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxg4%2Fsignal/lists"}