Inspiration

I’m new to both Reddit development and the Devvit platform. When I saw the hackathon, I wanted to build something genuinely useful for moderators, but I honestly had no idea where to start. I was inspired by how much time mods spend manually screening posts. If I could build even a small tool to help them, I’d consider it a win.

What it does

ModKit is a lightweight, AI-powered moderation assistant for Reddit moderators. It automatically scans every post in your subreddit and provides real-time insights so you can moderate faster and with less stress.

  • AI Toxicity Detection: Uses Groq's Llama 3.3 to score posts from 0–100% for hate speech, harassment, spam, and other harmful content.
  • Duplicate Post Detection: Catches reposts before they reach your mod queue using Supabase pgvector and cosine similarity.
  • Smart Mod Queue: Displays a prioritized list of recent posts with AI-generated badges (e.g., "High Toxicity", "Duplicate") so you can immediately see what needs attention.
  • AI Action Suggestions: Offers one-tap moderation actions (Approve, Remove, Warn) with confidence scores, helping you decide faster.
  • Mod Dashboard: At-a-glance stats including queue depth, alerts triggered today, duplicate posts found, and toxic content this week — all in one place.

How we built it

I started from scratch with zero Devvit experience. I learned by reading Reddit’s documentation, digging through example templates, and making a lot of mistakes. I used Devvit Web (the Hono server architecture) and wrote the UI with TypeScript. For AI, I hooked up Groq’s Llama 3.3 to scan post text for toxicity. For duplicate detection, I set up Supabase with pgvector (which I had to learn from YouTube tutorials). I built a simple frontend dashboard, a queue view, and action chips for moderators.

Challenges we ran into

The biggest struggle was that I didn’t know how Devvit handles external API calls. For a long time, my fetch requests were getting blocked by a hidden gRPC proxy that I didn’t even know existed. The Devvit app would upload successfully, but my backend (on Vercel) never received a request. After a lot of research and trial-and-error, I learned I had to migrate to the modern @devvit/web architecture, which runs a real Hono server on Reddit’s infrastructure. That finally fixed the connection issues. Learning pgvector was also challenging as a beginner.

What we learned

This hackathon taught me so much: how to read API documentation, how to debug obscure network errors, and how to ship a real app even when you feel underqualified. I learned that Devvit Web is much more flexible than the older architecture, and that you don’t need to be an expert to build a mod tool. Most importantly, I learned how to keep going when things break. I’m proud to submit ModKit as my first Reddit project.

Built With

Share this project:

Updates