{"id":51068037,"url":"https://github.com/erenisci/modarbot","last_synced_at":"2026-06-23T08:03:27.123Z","repository":{"id":359521559,"uuid":"1246421059","full_name":"erenisci/modarbot","owner":"erenisci","description":"Real-time anomaly detector for subreddits. Catches brigades, sock-puppets, and coordinated spam — no AI, $0 cost. Devvit Mod Tools Hackathon 2026.","archived":false,"fork":false,"pushed_at":"2026-06-09T18:12:15.000Z","size":584,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-09T20:07:41.683Z","etag":null,"topics":["anomaly-detection","devvit","hackathon","hono","mod-tools","moderation","react","realtime","reddit","reddit-bot","typescript"],"latest_commit_sha":null,"homepage":"https://developers.reddit.com/apps/modarbot","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erenisci.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-05-22T07:13:33.000Z","updated_at":"2026-06-09T18:13:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/erenisci/modarbot","commit_stats":null,"previous_names":["erenisci/modarbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/erenisci/modarbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erenisci%2Fmodarbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erenisci%2Fmodarbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erenisci%2Fmodarbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erenisci%2Fmodarbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erenisci","download_url":"https://codeload.github.com/erenisci/modarbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erenisci%2Fmodarbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34680621,"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-23T02:00:07.161Z","response_time":65,"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":["anomaly-detection","devvit","hackathon","hono","mod-tools","moderation","react","realtime","reddit","reddit-bot","typescript"],"created_at":"2026-06-23T08:03:25.726Z","updated_at":"2026-06-23T08:03:27.118Z","avatar_url":"https://github.com/erenisci.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ModarBot\n\n\u003e **Catch the raid before it catches you.**\n\nReal-time anomaly detector for subreddits, built on [Devvit](https://developers.reddit.com/docs). ModarBot watches your sub's live event stream and lights up the moment a brigade, sock-puppet wave, or coordinated spam attack starts — so your mod team responds in seconds, not hours.\n\n[![Hackathon](https://img.shields.io/badge/Reddit_Mod_Tools_Hackathon-2026-FF4500?style=flat-square)](https://mod-tools-migration.devpost.com/)\n[![Devvit](https://img.shields.io/badge/Built_on-Devvit_Web-FF4500?style=flat-square)](https://developers.reddit.com/docs)\n[![No AI](https://img.shields.io/badge/AI-not_used-22c55e?style=flat-square)](docs/IDEA.md)\n[![License](https://img.shields.io/badge/license-BSD--3--Clause-blue?style=flat-square)](LICENSE)\n\n---\n\n## The problem\n\nEvery active subreddit has been brigaded, raided, or hit by coordinated spam at some point. None of them saw it coming. Mods discover the damage hours later — usually after a user complaint or when the post is already buried under 200 hostile comments.\n\nThere is no real-time signal. AutoMod matches keywords on a single item. Crowd Control is blunt and global. Toolbox shows per-user history. Nothing watches the **wave**.\n\n## What ModarBot does\n\nSix independent statistical detectors continuously analyze the sub's live stream:\n\n| Detector                    | What it catches                                                      |\n| --------------------------- | -------------------------------------------------------------------- |\n| 🆕 **Account-age anomaly**  | Sudden flood of new accounts (\u003c30 days) posting in the sub           |\n| 🚨 **Report storm**         | Many distinct reports against one user in a short window             |\n| 📉 **Vote-pattern anomaly** | Post upvote ratio dropping sharply between scheduled snapshots       |\n| 💬 **Comment cascade**      | Sudden spike in comment velocity on a single thread                  |\n| 🔗 **Cross-post influx**    | Bursts of referral traffic from external subs                        |\n| 👥 **New-account cluster**  | Accounts created within days of each other active in the same thread |\n\nEach detector emits an `AnomalyEvent` with severity (0–1) and a plain-English reason. No AI. No external APIs. Just math.\n\n## The Watchtower\n\nA custom post in your mod-only area:\n\n- **Status orb** — single 🟢 / 🟡 / 🔴 glance at sub health\n- **Live anomaly feed** — last 10 events, severity bars, time-ago, one-tap **Investigate** / **Dismiss**\n- **Drill-down** — surfaces the offending accounts and posts with one-click bulk actions (ban all, remove all, lock thread) — _always with an explicit mod confirmation_\n- **Settings** — per-signal sensitivity sliders, mute schedules, alert channel\n\nWhen severity crosses your threshold, the team gets a modmail or push notification. Severity below threshold? Silent — no spam.\n\n## Why ModarBot wins\n\n|                               |                                                                                                                               |\n| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |\n| **Universal pain**            | Every active sub has been raided. Current detection time: hours. ModarBot: seconds.                                           |\n| **$0 forever**                | Pure Devvit infrastructure. No AI, no API keys, no publisher cost. Sustainable from day one.                                  |\n| **No competitor**             | Nothing on Devvit, in Toolbox, in fsvreddit's ecosystem, or among PRAW bots covers cross-account real-time anomaly detection. |\n| **Mobile-native**             | Devvit Web app — works wherever Reddit works. Toolbox is desktop-only.                                                        |\n| **Showcases Devvit Realtime** | Built around Reddit's pub/sub primitive.                                                                                      |\n\n## Tech stack\n\n- **Devvit Web** — React 19 + Vite + Tailwind 4 (webview)\n- **Hono** server + tRPC v11 (serverless Node 22)\n- **Devvit Realtime** — anomaly publish/subscribe per sub\n- **Devvit Redis** — 24h rolling event log + EWMA baselines\n\n## Repo layout\n\n```\n├── src/\n│   ├── server/             # Hono routes, detectors, ingest, Redis storage\n│   │   ├── detectors/      # One file per anomaly detector\n│   │   ├── ingest/         # Reddit event → RawEvent normalization\n│   │   ├── realtime/       # Realtime publish helpers\n│   │   ├── routes/         # /api + /internal triggers + menu\n│   │   └── storage/        # Redis key conventions, baselines, events\n│   ├── client/             # React Watchtower UI (splash + game webviews)\n│   └── shared/             # Types shared between client and server\n├── docs/                   # IDEA, ARCHITECTURE, HACKATHON, DEMO_SCRIPT\n├── devvit.json             # Devvit app config (triggers, menu, entrypoints)\n└── package.json\n```\n\n## Documentation\n\n- **[docs/IDEA.md](docs/IDEA.md)** — full concept, pain evidence, why no-AI is a feature, competitor analysis\n- **[docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)** — signal pipeline, Realtime bus, Redis schema, failure modes\n- **[docs/HACKATHON.md](docs/HACKATHON.md)** — hackathon rules, dates, submission requirements\n\n## Status\n\n🚧 In active development for the [Reddit Mod Tools and Migrated Apps Hackathon 2026](https://mod-tools-migration.devpost.com/) (deadline **May 27, 2026**).\n\nApp listing will go live at `developers.reddit.com/apps/modarbot` once published.\n\n## License\n\n[BSD-3-Clause](LICENSE) — the Devvit template default. Use it, fork it, build on it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferenisci%2Fmodarbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferenisci%2Fmodarbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferenisci%2Fmodarbot/lists"}