I Built My First npm Package , and It Solves Something with Git

Search for a command to run...

No comments yet. Be the first to comment.
A Python CLI that generates structured transcripts from any YouTube video. The tool follows a simple strategy: if a video already contains captions, it downloads and parses them. If captions are unava

During my internship, I built a payment and billing system integrated with Razorpay. The flow looked straightforward: User selects a plan → Order is created in Razorpay → Payment is completed → Subscr

Every backend engineer has a ritual. A new project lands on your plate, and before you write a single line of business logic, you spend the next hour — sometimes two — doing the same mechanical work y
Google Cloud Platform (GCP) provides user-friendly services such as Cloud Run, which facilitates the deployment of backend applications with serverless scaling. This guide demonstrates using a basic P

If you write code every day, you probably write Git commit messages every day too.And if you're honest… you probably don’t enjoy it.
I definitely didn’t.
So I built a small tool that fixes this tiny but annoying problem.
It’s called slothcommit , an AI-powered CLI that generates commit messages for you.
yeah so i decided to write this blog on " my first npm package" , why I built it, and what I learned along the way.
My typical workflow looked something like this:
Write some code
Stage the files
git add .
Sometimes I would write something lazy like:
fix stuff
Or something even worse:
update
When I did want a good commit message, the workflow was painful:
Copy my code changes
Paste them into ChatGPT
Ask it to generate a commit message
Copy the result back
Finally run git commit
It worked but thing is it was slow and repetitive and focus am lazy asf so i wanted a more lazier way to do this git commit message thing.
So I thought:
Why can't a CLI tool just do this automatically?
That idea became slothcommit.
The idea was simple.
Instead of manually writing commit messages, a CLI tool should:
Look at the git diff
Send it to an AI model
Generate a clean conventional commit message
Run the commit automatically
So the workflow becomes:
git add .
sloth
And that's it.
workflow diagram :
slothcommit is an AI-powered Git commit assistant.
It analyzes your staged changes and generates a commit message using the Conventional Commit format.
Example output:
feat(auth): add refresh token middleware
and while am writing this blog the package is now getting 100+ downloads every week, which is really encouraging to see!
If you haven’t tried it yet, check it out here:
https://www.npmjs.com/package/slothcommit
and in case you like it ? do give it a star https://github.com/anshumancodes/sloth