reverse-stackoverflow
v2.0.0
Published
The AI that questions YOUR code! A fun, chat-based code reviewer that asks junior-dev-friendly questions about your codebase.
Downloads
103
Maintainers
Readme
🔄 Reverse Stack Overflow
The AI that questions YOUR code instead of answering questions!
Instead of searching Stack Overflow for answers, this tool reads your codebase and has a friendly chat with you about your code decisions. It's like pair programming with an AI that's genuinely curious (and slightly sarcastic) about why you wrote that code.
🚀 Quick Start
# Install globally
npm install -g reverse-stackoverflow
# Run in your project
cd your-project
reverse-stackoverflowOr use npx (no installation):
npx reverse-stackoverflow💬 What It Looks Like
🤖 AI: 👋 Hey there! I'm your AI code reviewer.
🤖 AI: I've been looking through your code and... well, we need to talk. 😅
🤖 AI: Ready? Let's go! 🚀
🤖 AI: Hey, quick question about src/api/users.js...
🤖 AI: ✨ I see you're using 'var' 5 times. Any reason you didn't use 'let' or 'const'?
💬 Your answer: Because I'm learning JavaScript
🤖 AI: Nice! That makes sense. 👍🎯 What Questions Does It Ask?
Simple, practical questions that junior developers can understand:
- "I see you're using 'var'. Any reason you didn't use 'let' or 'const'?"
- "There are 15 console.log statements. Are these for debugging?"
- "You have async functions but no try-catch blocks. What happens if something goes wrong?"
- "This file is 500 lines! Have you thought about breaking it up?"
- "Where are the tests for this file?"
✨ Features
- 💬 Chat-Based - Feels like texting with a code reviewer
- 🤖 Friendly AI - Junior-dev-friendly questions
- 🎨 Beautiful - ASCII art and animations
- ⚡ Zero Config - Just run it
- 🌍 Multi-Language - JS, TS, Python, Java, Go, Rust, C++, Ruby, PHP
- 📝 Saves Answers - Your responses are documented
🎪 Commands
- Type your answer - Explain your decision
skip- Skip the current questionstop- End the chat early
📦 Use as npm Script
{
"scripts": {
"code-review": "reverse-stackoverflow"
}
}🎓 Perfect For
- Learning - Understand what makes code better
- Code Reviews - Prepare before submitting PRs
- Onboarding - Document why you made certain decisions
- Refactoring - Identify areas that need improvement
📄 License
MIT - Built with ❤️ by codecrypt112
