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

openrouter-commit

v1.1.6

Published

AI-powered CLI tool for effortless, context-aware Git commit messages. Uses OpenRouter LLMs to generate concise, meaningful commits—automating your workflow with smart AI insights.

Readme

openrouter-commit 🚀 AI-Powered Git Commit Messages

Generate smart, AI-driven Git commit messages using OpenRouter models like DeepSeek R1. Automate your commit workflow and write meaningful commits effortlessly.


⚡ Quick Start

Run without installation

npx openrouter-commit -run

Install globally

npm install -g openrouter-commit
openrouter-commit -run

Use in a project (package.json)

{
    "scripts": {
        "commit": "npx openrouter-commit -run"
    }
}

Run it with:

npm run commit  # or yarn commit

🔄 Updating

  • Global (del): sudo npm uninstall -g openrouter-commit
  • Global: sudo npm update -g openrouter-commit
  • npx users: npx clear-npx-cache
  • Project-based: npm update openrouter-commit

⚙️ Setup

API Key & Model

Option 1: .env.openrouter file (recommended)

OPENROUTER_API_KEY=your-api-key
OPENROUTER_MODEL=deepseek/deepseek-r1

Option 2: Environment variables

export OPENROUTER_API_KEY=your-api-key
export OPENROUTER_MODEL=deepseek/deepseek-r1

Option 3: Custom .env path

npx openrouter-commit -run --env-path /custom/path/.env

🚀 How It Works

1️⃣ Checks Git status
2️⃣ Prompts to stage changes
3️⃣ Generates an AI-powered commit message
4️⃣ Lets you confirm or edit it
5️⃣ Commits and pushes automatically


📂 Ignored Files

By default, openrouter-commit ignores common files that shouldn't be in commits:

  • .env.openrouter
  • node_modules/, .npm/, package-lock.json
  • dist/, venv/, env/, __pycache__/, *.pyc, *.pyo, Pipfile.lock, poetry.lock
  • logs/, *.log, debug.log*, *.swp, *.swo
  • .cache/, .idea/, .editorconfig
  • .DS_Store, Thumbs.db

If needed, modify the IGNORED_FILES list in openrouter-commit's source code.


🔥 Features

AI-powered commit messages
Interactive CLI with confirmation prompts
Custom .env paths with --env-path
Handles large diffs intelligently
Failsafe exit handling (Ctrl+C won’t commit unfinished work)
Prevents accidental execution with -run flag
Ignores unnecessary files from commits


❓ Troubleshooting

Not enough OpenRouter credits?

🔗 Top up here

Command not found?

npx openrouter-commit -run

Or:

npm install -g openrouter-commit
openrouter-commit -run

Git push fails?

Ensure your branch is tracking a remote branch:

git branch --set-upstream-to=origin/main

💡 About

Built by Unrealos.com – AI, SaaS, and PaaS solutions.

📜 License

MIT © Unrealos.com 🚀