Inspiration
I have always wanted a Reddit moderation suite with a centralized GUI that can be used from any device. Historically, advanced moderation tools were either purely code-based architectures (relying on PRAW) or strictly tied to desktop usage via browser extensions. AutoModerator exists as the standard, but it is entirely stateless, completely lacks a cross-device visual interface, and cannot remember users or execute scheduled actions. I wanted to build the ultimate, accessible solution.
What it does
Modegator is an advanced, YAML-driven automation platform that serves as the next evolution of Reddit community management. It provides everything AutoModerator currently offers, such as keyword filtering, automatic post removals, and instant replies, but extends those capabilities significantly.
What sets Modegator apart are the features AutoModerator does not have:
- Stateful Memory: It utilizes a Redis backend to track user strikes, count reports over time, and persist custom data across completely different posts.
- Cron Scheduling: Instead of only reacting to user events, Modegator can run scheduled background tasks, such as daily spam reports.
- Interactive UI Actions: Moderators can inject custom, clickable GUI buttons directly onto Reddit posts and comments to trigger complex moderation macros.
- External Webhooks: Real-time alerts and state data can be pushed directly to team communication tools like Discord or Slack.
- Web GUI: Everything is managed through a clean, cross-device web dashboard built directly into Reddit.
How I built it
Modegator was built entirely on Reddit's Devvit platform. The backend execution engine is written in TypeScript, leveraging the Devvit Web Server API to process webhooks and parse YAML rule trees. For persistent storage and state tracking, I utilized Devvit's built-in Redis client. The user-facing dashboard is built using React, providing a seamless, responsive Web GUI directly accessible within the Reddit interface.
Challenges I ran into
Building a robust YAML architecture from scratch within a serverless environment was incredibly difficult. I had to design complex architectural building blocks, including a recursive condition evaluator, an action dispatcher, and a custom schema validator. Ensuring that the entire execution pipeline could reliably parse YAML, asynchronously fetch data from Redis, and accurately evaluate nested conditions without crashing required meticulous planning and error handling.
Accomplishments that I'm proud of
I am proud of bridging the gap between extreme technical complexity and an intuitive user interface. Modegator manages to offer highly advanced, programmable moderation logic while remaining accessible to any moderator who is already familiar with writing basic AutoModerator configurations.
What I learned
I gained a profound understanding of the day-to-day challenges that Reddit moderators face when trying to automate their workflows. Learning about these specific pain points allowed me to carefully design my YAML schema to support a massive variety of real-world use cases, ensuring that the tool solves actual problems rather than just being a technical experiment.
What's next for Modegator
The immediate next step for Modegator is implementing a full visual rule builder, allowing users to construct complex workflows via a drag-and-drop interface instead of writing YAML manually. Beyond that, I plan to create a centralized rule and workflow sharing hub where moderators across Reddit can easily discover, share, and import powerful automation scripts with a single click.
Built With
- devvit
- react
Log in or sign up for Devpost to join the conversation.