git-vibe-commit
v1.1.0
Published
Generate git commit messages with different vibes - from professional to savage to anime! 12 unique styles with interactive mode and config support.
Maintainers
Readme
🎨 vibe-commit
Generate git commit messages with personality! Stop writing boring commits and let your code changes speak with style.
✨ Features
- 🎭 12 Unique Vibes: From professional to savage to anime!
- 🎲 Random Mode: Surprise yourself with a random vibe
- 🎨 Interactive Mode: Choose your vibe from a beautiful menu
- ⚙️ Config File Support: Set your default vibe and create custom vibes
- 🔍 Smart Analysis: Automatically analyzes your staged changes
- 🎨 Colorful Output: Beautiful terminal UI with emojis
- ⚡ Zero Config: Works out of the box
- 🚀 Lightweight: No heavy dependencies
📦 Installation
npm install -g vibe-commitOr use with npx (no installation needed):
npx vibe-commit🚀 Usage
Stage your changes first:
git add .Then generate a commit with a vibe:
vibe-commit --vibe savageAvailable Vibes
| Vibe | Description | Example |
|------|-------------|---------|
| professional | Standard conventional commits | feat: add new functionality |
| savage | Brutally honest, no filter | 💀 finally fixed this absolute disaster |
| poetic | Shayari-style Hindi-English | ✨ jaise raat ko chaand, waise code ko naya feature |
| casual | Chill bro-style commits | 🤙 bro just added some cool stuff |
| dramatic | Over-the-top theatrical | 🎭 BEHOLD! The greatest refactor of our generation! |
| zen | Peaceful, mindful messages | 🧘 code flows like water, bugs dissolve into nothing |
| corporate | Buzzword-heavy business speak | 📊 Implemented strategic code enhancements |
| anime | Anime and manga references | ⚔️ NANI?! Code has been upgraded to ULTRA INSTINCT level! |
| meme | Dank memes and internet culture | 🗿 stonks 📈 code quality go brrrrr |
| genz | Gen-Z slang and vibes | 💅 no cap this code is bussin fr fr |
| haiku | Traditional Japanese poetry | 🌸 code blooms in春\nbugs fall like autumn leaves\npeace restored at last |
| emoji | Pure emoji commits (no words!) | ✨🚀💯 |
CLI Options
# Choose a specific vibe
vibe-commit --vibe poetic
# Interactive mode - choose from a menu
vibe-commit --interactive
vibe-commit -i
# Use a random vibe
vibe-commit --random
# Preview without committing
vibe-commit --vibe savage --dry-run
# Skip git hooks
vibe-commit --no-verify
# List all available vibes
vibe-commit --list
# Create a config file
vibe-commit --init-config
# Show help
vibe-commit --help💡 Examples
Interactive Mode 🎨
$ vibe-commit --interactive
🎨 Select a Vibe:
1. professional
Standard conventional commits format
2. savage
Brutally honest, no filter commits
...
Enter your choice (0-12): 8
✓ Selected: anime
📊 Changes: 3 files changed, 45 insertions(+), 12 deletions(-)
💬 Generated commit message:
"⚔️ Omae wa mou... debugged. This code is already fixed."
Commit with this message? (Y/n): y
✅ Commit created successfully!Savage Mode 💀
$ vibe-commit --vibe savage
📊 Changes: 3 files changed, 45 insertions(+), 12 deletions(-)
💬 Generated commit message:
"💀 whoever wrote this code owes me an apology"
✅ Commit created successfully!Poetic Mode ✨
$ vibe-commit --vibe poetic
📊 Changes: 2 files changed, 23 insertions(+)
💬 Generated commit message:
"✨ code ki duniya mein ek naya savera"
✅ Commit created successfully!Random Mode 🎲
$ vibe-commit --random
🎲 Random vibe selected: dramatic
💬 Generated commit message:
"🎭 Against all odds, the feature LIVES!"
✅ Commit created successfully!⚙️ Configuration
Create a .viberc config file to set your default vibe and add custom vibes:
vibe-commit --init-configThis creates a .viberc file in your current directory:
{
"defaultVibe": "casual",
"customVibes": {
"my-custom": {
"prefix": "🎯",
"templates": [
"My custom commit message 1",
"My custom commit message 2",
"My custom commit message 3"
]
}
}
}The config file is searched in:
- Current directory (
.vibercor.viberc.json) - Home directory (
~/.vibercor~/.viberc.json)
Now you can use your custom vibe:
vibe-commit --vibe my-custom🎯 Use Cases
- Professional: For work projects that need conventional commits
- Savage: When you're fixing someone else's terrible code
- Poetic: When you're feeling creative and want to add some flair
- Casual: For personal projects where you want to keep it chill
- Dramatic: When you've just solved an impossible bug
- Zen: When you want your commit history to be mindful
- Corporate: When you need to impress management with buzzwords
- Anime: When you're feeling like a protagonist
- Meme: For the dank developers
- Gen-Z: When you want to keep it real, no cap
- Haiku: For the poetic souls
- Emoji: When words just aren't enough
🤝 Contributing
Contributions are welcome! Feel free to:
- Add new vibes (see
src/vibes.ts) - Improve message templates
- Fix bugs
- Improve documentation
Project Structure
vibe-commit/
├── src/
│ ├── cli.ts # Command-line interface (main entry point)
│ ├── vibes.ts # All vibe definitions and templates
│ ├── git.ts # Git operations (diff, commit, etc.)
│ ├── generator.ts # Commit message generation logic
│ ├── config.ts # Configuration file support
│ ├── interactive.ts # Interactive mode with menus
│ └── index.ts # Public API exports
├── test/
│ └── vibes.test.js # Test suite
├── dist/ # Compiled JavaScript output
├── README.md # This file
├── CONTRIBUTING.md # Contribution guidelines
├── CHANGELOG.md # Version history
└── package.json # Package metadataHow It Works
- User runs command:
vibe-commit --vibe savage - CLI parses arguments: Reads flags and options
- Git check: Verifies you're in a git repo with staged changes
- Load config: Checks for
.vibercconfig file (optional) - Generate message: Picks random template from selected vibe
- Create commit: Runs
git commitwith generated message
Adding a New Vibe
Edit src/vibes.ts and add your vibe:
'my-vibe': {
prefix: '🎸', // Optional emoji
templates: [
'Your commit message template 1',
'Your commit message template 2',
// Add 5-10 templates for variety
]
}Then add description in vibeDescriptions:
'my-vibe': 'Short description of your vibe'📝 License
MIT © Ayush Kumar
🌟 Why vibe-commit?
Because git commit messages don't have to be boring! Whether you're:
- Frustrated with legacy code (savage mode)
- Feeling poetic about your clean refactor (poetic mode)
- Just want to keep it casual (casual mode)
- Need to sound professional (professional mode)
We've got you covered! 🎉
Made with ❤️ and lots of coffee ☕
Tip: Try vibe-commit --random on Fridays for maximum entertainment! 🎲
