Generate clean, consistent, and meaningful Conventional Commits using artificial intelligence.
A simple, fast, and developer-friendly API that converts code changes (diffs) into high-quality commit messages.
- 🧩 AI-powered commit generation based on diffs or descriptions
- 🎯 Follows the Conventional Commits specification
- 🔍 Automatically suggests commit type, scope, summary, and optional body
- ⚙️ User can force a specific commit type
- Node.js
- Fastify
- Zod
- OpenAI
- TypeScript
git clone https://github.com/csendin/commit-ai
cd commit-ai
pnpm i
cp .env.example .envSet your API key:
OPENAI_KEY=your_api_key_herepnpm devAPI available at:
http://localhost:3333
Generate a Conventional Commit message.
{
"diff": "string",
"type": "optional string"
}{
"diff": "Added validation for user email in signup flow",
"type": "feat"
}{
"commit": "feat(auth): add email validation to signup flow"
}