{"id":51011948,"url":"https://github.com/maksandre/monitor","last_synced_at":"2026-06-21T04:01:23.614Z","repository":{"id":360241833,"uuid":"1249156538","full_name":"Maksandre/monitor","owner":"Maksandre","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-25T15:23:20.000Z","size":115,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-25T17:08:14.493Z","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/Maksandre.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-25T12:08:22.000Z","updated_at":"2026-05-25T15:04:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Maksandre/monitor","commit_stats":null,"previous_names":["maksandre/monitor"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Maksandre/monitor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maksandre%2Fmonitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maksandre%2Fmonitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maksandre%2Fmonitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maksandre%2Fmonitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Maksandre","download_url":"https://codeload.github.com/Maksandre/monitor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maksandre%2Fmonitor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34593129,"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-21T02:00:05.568Z","response_time":54,"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":[],"created_at":"2026-06-21T04:01:22.417Z","updated_at":"2026-06-21T04:01:23.598Z","avatar_url":"https://github.com/Maksandre.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monitor\n\nExtensible event-monitoring service. Polls pluggable **sources** for events and\ndelivers alerts through pluggable **notifiers**. Ships with a GitHub\npull-requests source and a Telegram notifier. Monitors are created and configured\nthrough the UI — for example, alert when a repo's PR whose title matches a pattern\nis opened or merged.\n\n## Run with Docker (Mac mini)\n\n```bash\ncp .env.example .env   # fill in TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID, optional GITHUB_TOKEN\ndocker compose up -d --build\n```\n\nOpen the UI at http://localhost:8473. On first run, if Telegram env vars are set,\na default Telegram channel is created for you; add monitors from the UI. Each\nmonitor's first poll seeds a silent baseline (no backlog blast); you are alerted\nonly on events seen after that.\n\n\u003e Single-user, no authentication. Bind only to your LAN; do not expose to the\n\u003e public internet without putting auth in front of it.\n\n## Development\n\n```bash\nnpm install\nnpm run dev            # backend on :8473 (tsx watch)\ncd web \u0026\u0026 npm install \u0026\u0026 npm run dev   # UI on :5173, proxies /api to :8473\nnpm test               # backend test suite (vitest)\n```\n\n## Add a new source type\n\n1. Implement `Source\u003cConfig\u003e` in `src/plugins/sources/\u003cname\u003e.ts` (a `configSchema`,\n   a `fields` descriptor for the UI form, and a `check()` that returns events with\n   stable `dedupeKey`s).\n2. Register it in `src/plugins/index.ts`.\n\nThe UI form, scheduling, dedup, and alerting work automatically. Notifiers follow\nthe same pattern under `src/plugins/notifiers/`.\n\n## Known limitations (v1)\n\n- **No UI authentication.** Single-user, LAN-only by design.\n- **GitHub source reads one page** (the 100 most-recently-updated PRs) per poll.\n  Because PRs are sorted by `updated`, a PR's open/merge transition bumps it to\n  the top, so it is reliably seen at the moment it changes given the short poll\n  interval; a transition would only be missed if 100+ *other* PRs were updated\n  within a single poll window. Multi-page pagination is a future enhancement.\n- **GitHub rate limiting** is handled by the scheduler's exponential backoff\n  (repeated errors slow a monitor's polling), not by honoring `Retry-After`\n  explicitly. Set `GITHUB_TOKEN` to get the 5000 req/hr authenticated limit.\n- **A permanently-failed alert is not retried across polls.** Delivery is retried\n  up to 3 times within a poll; after that the failure is recorded in the alerts\n  log (visible in the UI) but not re-sent on later polls.\n- **Secrets (Telegram bot token) are stored in the SQLite DB** and redacted on\n  API reads. Acceptable for a local single-user box.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaksandre%2Fmonitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaksandre%2Fmonitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaksandre%2Fmonitor/lists"}