Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Commity Logo

πŸ€– Commity

AI-powered commit messages that don’t suck. With emojis.

Writing commit messages was killing me. So I built Commity.
A tiny CLI tool that looks at your staged git changes, asks OpenAI what the hell you just did, and gives you a clean, emoji’d commit line you can actually be proud of.

No more Update or fixes lol.


πŸ§ͺ What it actually does

  • Reads your git diff
  • Sends it to OpenAI
  • Spits back a commit message that makes sense
  • Drops in a matching emoji (because vibes matter)
  • You hit enter. Boom. Committed.

⚑ Why it slaps

  • 🧠 Smarter than you on bad days – AI writes your commit messages
  • 🎯 Emoji sniper – Tags it right: πŸ› for bugs, ✨ for features, etc.
  • πŸ”’ Safe – Your API key stays in .env, not flying around
  • πŸ’¬ Talks to you – Edit, confirm, cancel. Like a chill assistant.
  • 🎨 Sexy CLI – Colors, prompts, feedback. Feels alive.

🏁 Getting Started (takes 1 min max)

1. Install

npm install -g commity-ai-commit-tool

2. Add your OpenAI key

echo "OPENAI_API_KEY=sk-..." > .env

β†’ Grab key from here
β†’ Yes, free tier works too

Add key

3. Use it

git add .
commity

CLI shot
Commit success


🧠 Sample Output

πŸ€– Commity - AI Commit Tool
πŸ“– Reading staged changes...
🧠 Generating commit message with AI...

πŸ’¬ Suggested commit message:
"πŸ› Fix authentication validation and error handling"

? What would you like to do?
❯ Yes, use this message
  Edit the message  
  Cancel commit

βœ… Committed successfully!

You just saved 2 minutes and looked smart doing it.


πŸ”₯ Emoji Mapping (Auto-detected)

Type Emoji
New Feature ✨
Bug Fix πŸ›
Docs πŸ“š
Performance ⚑
Refactor ♻️
Tests πŸ§ͺ
Config βš™οΈ
Security πŸ”’
UI 🎨
DB πŸ—„οΈ
API πŸ”Œ
Deploy πŸš€
Packages πŸ“¦

πŸ› οΈ Configs (Only if you’re picky)

Env Variable What it does Default
OPENAI_API_KEY Your OpenAI key (duh) –
OPENAI_MODEL Which model to use gpt-4o-mini

Supported Models:

  • gpt-4o-mini (default)
  • gpt-4o
  • gpt-4-turbo
  • gpt-3.5-turbo

😭 If it breaks

  • API key not found? β†’ You forgot the .env file
  • "No staged changes"? β†’ Run git add .
  • Not in a repo? β†’ git init, friend

🧱 Code Structure (for devs)

commity/
β”œβ”€β”€ cli-wrapper.js   // handles terminal
β”œβ”€β”€ ai.js            // OpenAI stuff
β”œβ”€β”€ git.js           // git logic
β”œβ”€β”€ prompt.js        // CLI questions
β”œβ”€β”€ package.json     // npm life
└── README.md        // this file

πŸ› οΈ Wanna contribute?

Yes please. PRs welcome.

  1. Fork it
  2. git checkout -b cool-feature
  3. Code
  4. git commit -m '✨ adds cool stuff'
  5. Open PR

Bugs? Feature ideas? β†’ Open an issue


πŸ“œ License

MIT. Steal with style.


❀️ Credits

  • Powered by OpenAI (shoutout)
  • Inspired by late-night coding guilt
  • Built by Muhammad Ameen with coffee, rage, and love

No more cringe commit messages. Let Commity talk.
Install now β†’ npm install -g commity-ai-commit-tool

About

🧠 AI-powered commit messages

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages