๐ก Inspiration
Moderating massive, fast-moving communities on Reddit is an exhausting, 24/7 job. Human moderators are often overwhelmed by coordinated bot-nets, sudden spikes in toxicity, and relentless spam. We wanted to build something that didn't just filter bad words, but actually understood context like a humanโand we wanted to give moderators a gorgeous, gamified dashboard right inside their Reddit feed to track it all.
โ๏ธ What it does
SubPulse AI is an autonomous security engine for your subreddit.
- AI Interception: It runs silently in the background, analyzing every new comment using an advanced LLM (OpenAI GPT-4o-mini). It accurately categorizes complex threats (phishing, harassment, raids) and instantly removes them.
- Native Command Center: Moderators can launch a custom Devvit post that serves as a real-time dashboard. Without ever leaving Reddit, mods can view their "System Health Score," Defcon threat levels, and scroll through a paginated history of all intercepted threats.
- Real-Time Live Feed: Using a background polling engine, the Command Center updates dynamically. If a threat is neutralized, it pops up on the dashboard instantly without requiring a page refresh.
๐ ๏ธ How we built it
We utilized Reddit's Devvit Platform to build the entire infrastructure.
- Backend: We used Devvit's Triggers (
CommentSubmit) to intercept data, and Devvit's built-in Redis plugin to log actions, calculate toxicity scores, and store the moderation history. - AI: We integrated the OpenAI API directly into the Devvit backend for advanced natural language processing.
- Frontend: We built a 100% native Devvit UI using
<vstack>,<hstack>, anduseState/useIntervalhooks to bypass webview unreliability, ensuring the multi-page dashboard renders flawlessly on all Reddit clients.
โ ๏ธ Challenges we ran into
Getting a highly complex React-style dashboard to render natively within Reddit's strict custom post boundaries was incredibly tough. Initially, we attempted to use an external Vite/React Webview, but encountered cross-device rendering issues and black-screen crashes. We completely pivoted mid-hackathon to build a 100% Native Devvit UI from scratch, engineering our own custom pagination system and real-time interval polling to create a flawless user experience.
๐ What we learned
We learned the incredible power of Devvit's native state management (useState, useInterval). By combining these with Redis, we realized you can build fully interactive, real-time applications directly inside a Reddit feed without ever needing external web hosting or iframes.
๐ What's next for SubPulse AI
We plan to expand the AI's capabilities to detect image-based spam, analyze post titles, and introduce "Automated Modmail Summaries" to handle user appeals directly from the Command Center!
Log in or sign up for Devpost to join the conversation.