💡 Inspiration
Reddit moderators manage thousands of posts daily with limited tools. Spam, toxic content, coordinated raids, and bot swarms overwhelm mod queues. We built ModPilot AI to give every subreddit an always-on AI mod assistant that never sleeps.
🔨 How We Built It
ModPilot AI has two parts:
1. Devvit App (Real-time Reddit Integration) Built on Reddit's Developer Platform (Devvit), the core app runs directly inside Reddit. It uses:
PostSubmitandCommentSubmittriggers to scan every new post/comment in real-time- A 6-dimensional AI scoring engine (spam, toxicity, scam, bot, raid, misinformation)
- Reddit KV Store for tracking user violation history and post velocity
- Auto-remove, auto-warn, temp-ban, and perm-ban escalation logic
- Modmail alerts for critical detections (90+ risk score)
- 3 moderator menu actions: Analyze, Remove & Warn, Check User History
2. Next.js Management Dashboard A polished 8-page web dashboard for moderators to visualize activity, configure AI thresholds, manage queues, and monitor subreddit health in real-time.
🧠 What We Learned
- Devvit's trigger system is powerful but requires careful async error handling
- KV Store is perfect for lightweight violation tracking without a database
- Pattern-based detection combined with account heuristics (age, karma ratio) gives surprisingly accurate bot detection
⚡ Challenges
- Devvit's TypeScript module system required specific tsconfig settings
- Balancing false-positive rate vs catch rate for toxicity detection
- Building a scoring system that works across very different subreddit cultures
🛠️ Technologies Used
- Devvit — Reddit Developer Platform (triggers, KV store, Reddit API)
- TypeScript — Full type safety across both apps
- Next.js 14 — App Router, Server Components
- Tailwind CSS + shadcn/ui — Modern UI components
- Recharts — Analytics visualizations
- Zustand — State management
- Framer Motion — Smooth animations
Built With
- devvit
- framer-motion
- next.js
- react
- recharts
- shadcn-ui
- tailwindcss
- typescript
- zustand
Log in or sign up for Devpost to join the conversation.