npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

commitect

v1.1.0

Published

Zero-config Git Commit Assistant CLI

Readme

CommiTect

Zero-config Git Commit Assistant CLI powered by custom LLM API.

Features

Zero Configuration - Works out of the box
AI-Powered - Generates professional commit messages
Fast - Instant analysis and suggestions
Smart Caching - Avoids redundant API calls
History Tracking - Review all your cached messages
Simple - Just 5 commands

Screenshots

CommiTect Command Analyze & Copy Commands History Command Commit Command

Installation

npm install commitect

Usage

Analyze Changes

Generate and display a commit message suggestion:

commitect analyze

Output:

Feature: Add user authentication with JWT tokens

Copy to Clipboard

Generate a commit message and copy it to your clipboard:

commitect copy

Output:

✓ Commit message copied to clipboard

Auto-Commit

Generate a commit message and execute the git commit automatically:

commitect commit

Output:

✓ Committed: Feature: Add user authentication with JWT tokens

View History

View all cached commit messages:

commitect history

Output:

📜 COMMIT HISTORY
──────────────────────────────────────────────────────────────────────

[1] Feature: Add user authentication with JWT tokens
    📁 CommiTect_VSCode
    🕒 24/01/2026, 20:18:58 (4 minutes ago)

[2] Bug Fix: Resolve memory leak in connection pool
    📁 CommiTect_VS
    🕒 24/01/2026, 20:00:58 (22 minutes ago)

──────────────────────────────────────────────────────────────────────
Total: 2 cached commit messages

Clear Cache

Clear the cached commit messages:

commitect clear-cache

Output:

✓ Cache cleared (15 entries removed)

How It Works

  1. Reads git diff - Analyzes both staged and unstaged changes
  2. Checks cache - If the same diff was processed before, returns cached result instantly
  3. Filters noise - Ignores node_modules/, dist/, build/, etc.
  4. Generates message - Uses your custom LLM API with automatic retry
  5. Caches result - Stores the result for 30 days to avoid redundant API calls
  6. Executes action - Display, copy, or commit based on command

Requirements

  • Node.js >= 16
  • Git repository
  • Internet connection (for API calls)

Workflow

# Make your changes
vim src/auth.ts

# Save files
git add .

# Generate and commit
commitect commit

# Continue with your workflow
git push

Caching System

CommiTect intelligently caches commit messages to improve performance:

  • Fast responses - Cached results return instantly without API calls
  • 30-day retention - Cache entries expire after 30 days
  • Hash-based - Uses SHA-256 hash of git diff for accurate matching
  • Persistent - Cache stored in ~/.commitect/cache.json
  • Manual clear - Use commitect clear-cache to reset

Cache Benefits

  1. Faster execution - No API latency for repeated diffs
  2. Reduced API costs - Fewer API calls = lower costs
  3. Offline capability - Works offline if result is cached
  4. Consistency - Same diff always produces same message

API Integration

CommiTect connects to your LLM API with:

  • Automatic retry - Retries failed requests up to 3 times
  • Rate limit handling - Graceful exponential backoff
  • Network resilience - Handles timeouts and connection errors
  • Smart caching - Reduces API calls significantly

Ignored Paths

The following directories are automatically excluded from analysis:

  • node_modules/
  • bin/
  • obj/
  • dist/
  • build/
  • .git/

Commit Message Rules

Generated messages follow best practices:

  • Under 70 characters
  • Imperative form (Add, Fix, Update, Refactor)
  • Professional and concise
  • Contextual based on actual changes

License

MIT