Inspiration
Moderating high-traffic subreddits during fast-moving events (like breaking news, product launches, or coordinated raids) can quickly overwhelm human teams. Traditional automations often lack context, while human moderators waste precious time manually scanning expanding comment sections. We were inspired to build ModPulse: a tool that gives mod teams real-time visibility into the "stress level" of their community, enabling them to act before a thread completely deteriorates.
How We Built It
ModPulse is built 100% natively on Reddit’s Devvit platform, leveraging internal event triggers (CommentCreate, PostSubmit, and report handlers). By storing rolling event telemetry inside Devvit Redis, we designed a short-window analytics engine capable of monitoring metrics dynamically without any external backend dependencies.
The user interface was crafted using Devvit Blocks, establishing an embedded, interactive Dashboard right in the subreddit feed.
Challenges We Faced
The biggest hurdle was designing a secure interactive interface inside a public Custom Post Type. Because Custom Posts render for anyone browsing the feed, an early version allowed non-moderators to access administration controls.
To overcome this, we implemented a robust Two-Layer Security Architecture: the UI dynamically strips control buttons (Start Shield, Clear Shield, Refresh) for regular users, and the server-side logic strictly re-authenticates the operator (requireDashboardModerator) before touching the Redis cluster.
What We Learned
We mastered the constraints of state management inside the Devvit sandboxed ecosystem and learned how to build resilient, latency-free mod tools that respect user privacy by piping detailed threat logs strictly to the secure Modmail channel, keeping the public dashboard entirely metrics-focused.
Built With
- blocks
- devvit
- node.js
- redis
- sdk
- typescript