code-mood
v1.0.3
Published
A package that analyzes your commit messages and code patterns to guess your mood.
Maintainers
Readme
code-mood
🧠 code-mood is a developer mood tracking CLI tool that analyzes your Git commit history to estimate your emotional state over time using sentiment analysis, code churn, and commit timing patterns.
🚀 Features
- 📈 Analyzes commit messages for sentiment
- 🔄 Measures code churn (lines added/removed)
- ⏰ Tracks timing patterns like late-night or weekend commits
- 💡 Returns a mood estimate:
HAPPY,STRESSED,BURNED OUT, orNEUTRAL
📦 Installation
npm install -g code-mood🧪 Usage
code-moodcode-mood --author="srikanth"Run this command inside any Git-enabled project folder.
📊 Sample Output
🧠 Analyzing your code mood...
✨ Developer Mood Estimate: STRESSED
📊 Details:
┌────────────────────┬────────┐
│ (index) │ Values │
├────────────────────┼────────┤
│ sentiment │ -1.8 │
│ churn │ 243.6 │
│ lateNightCommits │ 22 │
│ weekendCommits │ 18 │
│ sampleSize │ 50 │
└────────────────────┴────────┘🤖 How It Works
- Uses simple-git to pull commit data
- Applies sentiment analysis to commit messages
- Calculates churn score using added/removed lines
- Analyzes commit time patterns (late-night, weekend)
- Combines results using heuristics to estimate developer mood
🛠 Dependencies
- simple-git
- sentiment
- chalk
📄 License
MIT License © 2025 Srikanth Enjamoori
