Mine complaints and pain points from Reddit.
A personal CLI tool that scans subreddits, analyzes posts and comments with Gemini, and outputs a clean list of complaints you can use for product research.
- Scan multiple subreddits at once
- Analyze both posts and comments
- Use Gemini to identify real complaints vs neutral content
- Output as Markdown or JSON
- Respectful rate limiting for Reddit
cd projects/painminer
pnpm install
# or: npm install
cp .env.example .env- Go to https://www.reddit.com/prefs/apps
- Click "create another app..."
- Select "script"
- Fill in name and redirect URI (
http://localhost:8080) - Copy the client ID and secret into
.env
GEMINI_API_KEY_1=your_gemini_api_key
REDDIT_CLIENT_ID=your_reddit_client_id
REDDIT_CLIENT_SECRET=your_reddit_client_secret
REDDIT_USERNAME=your_reddit_username
REDDIT_PASSWORD=your_reddit_passwordpnpm dev
# or: npm run devEdit src/config.ts to change:
subreddits: which subreddits to scansort: new / hot / toplimit: posts per subredditmaxCommentsPerPost: how many comments to analyze per postoutputFormat: markdown or json
Reports are saved to ./output/ with timestamps.
# PainMiner Report
**Subreddits:** SideProject, indiehackers
**Generated:** 2026-06-27T15:30:00.000Z
**Total complaints found:** 12
## Complaints
### r/SideProject
- **Struggling to find reliable marketing channels after launch.**
- I've launched 3 side projects and every time the hardest part is getting anyone to care. Twitter posts get 10 likes max.
- [source](https://www.reddit.com/r/SideProject/comments/xxx/) | by u/indie_dev_99 | 45↑
- **Managing customer feedback across multiple tools is chaotic.**
- Right now I have feedback in email, Twitter DMs, and a Notion board. I keep losing good ideas.
- [source](https://www.reddit.com/r/SideProject/comments/yyy/) | by u/saas_builder | 23↑MIT