-
PulseGuard SOC: Tracks real-time active threats, comment velocity surges, and logs active post monitors inside a sleek glassmorphism UI.
-
Incident Triage Log: Shows real-time DEFCON escalations, comment velocity spikes, AI toxicity ratings, and automated thread lock actions.
-
Operations Command: Configure secure BYOK API keys (Gemini/OpenAI), comment velocity rules, and multi-tiered DEFCON safety thresholds.
Inspiration
PulseGuard was inspired by the way Reddit threads can go from normal discussion to full flame war in minutes. Moderators often discover the problem too late, after reports pile up and the comment section has already become hostile. At the same time, fast comment velocity does not always mean something is wrong. Some viral threads are healthy, funny, or genuinely useful.
The idea was to build a system that watches for both speed and toxicity, so communities can contain dangerous spikes without punishing healthy engagement.
What it does
PulseGuard is an autonomous viral thread containment engine. It monitors active posts, tracks comment velocity in real time, and analyzes recent comments when a thread crosses configurable thresholds.
If a thread is moving quickly and appears toxic, PulseGuard escalates through a DEFCON-style protocol. Lower levels alert moderators through modmail. The highest level can lock the thread, post a sticky explanation, and notify the mod team.
PulseGuard monitors subreddit posts in real time and tracks comment velocity using Redis sorted sets. When a post crosses configurable velocity thresholds, it evaluates recent comments with an optional BYOK AI provider such as Gemini or OpenAI. If the thread is moving quickly and appears toxic, PulseGuard escalates through a DEFCON-style protocol.
DEFCON 3 sends a modmail warning. DEFCON 2 sends an urgent modmail alert. DEFCON 1 locks the thread, posts a sticky moderator comment, and alerts the team. The included dashboard shows live monitored posts, incident history, thresholds, settings, and API-key configuration.
The dashboard shows live monitored threads, incident history, settings, thresholds, and API-key configuration.
How we built it
PulseGuard was built with Devvit, TypeScript, Hono, Redis Sorted Sets, Reddit event triggers, scheduled jobs, and a custom webview dashboard.
Redis Sorted Sets track comment timestamps for sliding-window velocity calculations. Devvit event handlers update monitoring data as comments arrive. When velocity crosses a threshold, PulseGuard can call an optional BYOK AI provider such as Google Gemini or OpenAI to classify recent comments for toxicity and escalation risk.
Challenges we ran into
The biggest challenge was avoiding false positives. A fast-moving thread is not automatically bad, so PulseGuard needed a two-step pipeline: velocity first, context second.
Another challenge was designing the escalation system so it felt useful but not reckless. The app has configurable thresholds and different DEFCON levels, so moderators can decide how aggressive containment should be for their community.
Accomplishments that we're proud of
I’m proud that PulseGuard turns a painful moderation problem into a real-time safety workflow. It does not just wait for reports; it watches the shape of a thread as it develops.
The SOC-style dashboard is also something I’m proud of. It gives moderators a clear view of active monitors, incidents, and settings directly inside Reddit.
What we learned
I learned how to build real-time moderation logic with Devvit events, Redis sliding windows, scheduled jobs, modmail alerts, and embedded dashboards. I also learned that moderation automation has to be careful: the best systems combine signals instead of acting on one metric alone.
What's next for PulseGuard
Next, I would add subreddit-specific toxicity calibration, moderator feedback loops, per-thread incident timelines, better analytics for repeated brigading patterns, and integration with subreddit rules so sticky comments can be more community-specific.
Built With
- api
- css
- devvit
- devvit-scheduler
- google-gemini-api
- hono
- html
- javascript
- openai
- reddit-developer-platform
- reddit-events
- redis-sorted-sets
- typescript
Log in or sign up for Devpost to join the conversation.