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

neuro-commit

v0.2.0

Published

neuro-commit CLI utility

Readme


NeuroCommit is a CLI tool that analyzes your staged Git changes and generates commit messages — either automatically via OpenAI API or as a structured prompt you can paste into any LLM.

Table of Contents

✨ Features

  • AI Commit mode — generates and commits messages automatically using OpenAI API (gpt-5-nano) with Structured Outputs
  • Manual mode — saves a prompt to neuro-commit.md for pasting into any LLM (ChatGPT, Claude, etc.)
  • Conventional Commits — always uses feat:, fix:, docs:, refactor:, etc.
  • Smart lock file handling — detects lock files and omits their noisy diffs
  • Minimal UI — clean terminal interface, no visual clutter
  • Multi-language — commit message body in English, Ukrainian, Russian, German, French, or Spanish
  • Configurable — auto-commit, auto-push, commit history context, dev mode
  • Secure — API key via environment variable only, no shell injection vectors

🚀 Quick Start

Using npx (No Installation Required)

npx neuro-commit

Global Installation

npm install -g neuro-commit

Then run:

neuro-commit

Setting up OpenAI API Key

For AI Commit mode, set your API key:

# Linux / macOS
export OPENAI_API_KEY="sk-..."

# Windows PowerShell
$env:OPENAI_API_KEY = "sk-..."

# Windows CMD
set OPENAI_API_KEY=sk-...

📖 How It Works

AI Commit Mode

  1. Stage your changes with git add
  2. Run neuro-commit → select AI Commit
  3. Review the file summary and confirm generation
  4. The tool sends your diff to OpenAI API and generates a commit message
  5. Choose: Commit, Edit, Regenerate, or Cancel

Manual Mode

  1. Stage your changes with git add
  2. Run neuro-commit → select Manual Mode
  3. A neuro-commit.md file is generated with the full prompt
  4. Paste into your preferred LLM and get a commit message

Both modes use the same prompt — the only difference is delivery method.

⚙️ Configuration

Settings are stored in ~/.neurocommit/config.json. Access via the Settings menu.

| Setting | Default | Description | | -------------- | ------- | -------------------------------------- | | Language | en | Commit message body language | | Max length | 72 | Title character limit | | Auto-commit | OFF | Commit immediately after generation | | Auto-push | OFF | Push after committing | | Commit history | 5 | Recent commits included as AI context | | Dev mode | OFF | Store API responses (OpenAI dashboard) |

🔧 Development

# Clone the repository
git clone https://github.com/cr1ma/neuro-commit.git
cd neuro-commit

# Install dependencies
npm install

# Run locally
npm start

# Lint
npm run lint

# Lint & auto-fix
npm run lint:fix

🤝 Contributing

Contributions, issues, and feature requests are welcome! Please read the Contributing Guide before submitting a pull request.

Feel free to check the open issues.

🔒 Security

To report a vulnerability, please see our Security Policy.

📝 License

This project is licensed under the Apache License 2.0.

⭐ Star History

Star History Chart