<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[npm package 📦]]></title><description><![CDATA[npm package 📦]]></description><link>https://springdoc.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/68054ab7538606b217ad7080/8c7ac670-9255-4fd3-890f-d62329533226.jpg</url><title>npm package 📦</title><link>https://springdoc.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 21:09:07 GMT</lastBuildDate><atom:link href="https://springdoc.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[I Built My First npm Package, and It Solves a Tiny Git Problem]]></title><description><![CDATA[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…]]></description><link>https://springdoc.hashnode.dev/i-built-my-first-npm-package-and-it-solves-a-tiny-git-problem</link><guid isPermaLink="true">https://springdoc.hashnode.dev/i-built-my-first-npm-package-and-it-solves-a-tiny-git-problem</guid><dc:creator><![CDATA[Lelien Panda]]></dc:creator><pubDate>Sat, 28 Nov 2026 18:09:29 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/68054ab7538606b217ad7080/dbd9a9e6-ce5e-4dc5-9a2c-93f8bd68be6b.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<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.</p>
<p>I definitely didn’t.</p>
<p>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.</p>
<p>yeah so i decided to write this blog on "my first npm package" , why I built it, and what I learned along the way.</p>
<h2><strong>The Problem: Writing Commit Messages is Annoying</strong></h2>
<p>My typical workflow looked something like this:</p>
<ol>
<li>Write some code</li>
<li>Stage the files <code>git add .</code></li>
<li>Then get stuck writing a commit message.</li>
</ol>
<p>Sometimes I would write something lazy like:</p>
<p><code>fix stuff</code></p>
<p>Or something even worse:</p>
<p><code>update</code></p>
<p>When I did want a good commit message, the workflow was painful:</p>
<ol>
<li>Copy my code changes</li>
<li>Paste them into ChatGPT</li>
<li>Ask it to generate a commit message</li>
<li>Copy the result back</li>
<li>Finally run <code>git commit</code></li>
</ol>
<p>It worked but thing is it was <strong>slow and repetitive</strong> and focus am lazy asf so i wanted a more lazier way to do this git commit message thing.</p>
<p>So I thought:</p>
<blockquote>
<p>Why can't a CLI tool just do this automatically?</p>
</blockquote>
<p>That idea became slothcommit.</p>
<h3>The Idea Behind Slothcommit</h3>
<p>The idea was simple.</p>
<p>Instead of manually writing commit messages, a CLI tool should:</p>
<ol>
<li>Look at the <strong>git diff</strong></li>
<li>Send it to an <strong>AI model</strong></li>
<li>Generate a <strong>clean conventional commit message</strong></li>
<li>Run the commit automatically</li>
</ol>
<p>So the workflow becomes:</p>
<p><code>git add .</code></p>
<p><code>sloth</code></p>
<p>And that's it.</p>
<p>workflow diagram :</p>
<img src="https://cdn.hashnode.com/uploads/covers/68054ab7538606b217ad7080/8761e7d5-281c-42c6-972d-a8a6a19193b8.png" alt="" style="display:block;margin:0 auto" />

<h3>What Slothcommit Does (or how it works)</h3>
<p><strong>slothcommit</strong> is an <strong>AI-powered Git commit assistant.</strong></p>
<p>It analyzes your staged changes and generates a commit message using the Conventional Commit format.</p>
<p>Example output:</p>
<p><code>feat(auth): add refresh token middleware</code></p>
<p>and while am writing this blog the package is now getting 100+ downloads every week, which is really encouraging to see!</p>
<p>and in case you like it ? do give it a star <a href="https://github.com/lelixn/sloth.git">https://github.com/lelixn/sloth.git</a></p>
<h2>A small takeaway</h2>
<p>This project reminded me that building developer tools doesn't always require some revolutionary idea.</p>
<p>Sometimes you just get annoyed by something you do every day, decide to fix it, and end up learning a lot in the process.</p>
<p>For me, that annoyance was writing Git commit messages.</p>
<p>And that's how my first npm package happened.</p>
<p><strong>Build things. Solve your own problems. Publish them. You never know who else might need them.</strong></p>
<p>— Lelixn</p>
]]></content:encoded></item></channel></rss>