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

@yourfam/yf-commit

v0.4.0

Published

AI commit message from your staged git diff

Readme

yf-commit

AI commit message from your staged git diff.

Writes emoji type(scope): … plus WHY, WHAT CHANGED, and FILES IMPACTED. Does not run your test suite. Does not append worktree / branch / machine trailers.

YourFam does not give you an API key. Use your own OpenAI-compatible key.

  • Source / README: https://github.com/YourFam/yf-commit
  • npm: https://www.npmjs.com/package/@yourfam/yf-commit
  • Unscoped alias: https://www.npmjs.com/package/yf-commit
  • Issues: https://github.com/YourFam/yf-commit/issues

Install

Node 20+.

npm install -g @yourfam/yf-commit

Then from any git repo:

yf-commit

The command is yf-commit.

Alternate modes of install

-g = on your machine (global).
-D = in this project (devDependency).

| | npm install -g @yourfam/yf-commit | npm install -D @yourfam/yf-commit | |---|---|---| | Where it goes | Global npm prefix (your user/system) | node_modules/ + package.json of the current repo | | Command | yf-commit from any folder | npx yf-commit (or a script) in that repo | | Other repos | Works | Not installed there | | Git | Not committed | Listed in package.json; teammates get it with npm install | | Typical use | A CLI you want everywhere | A tool this project uses in scripts/CI |

For yf-commit as a daily command, use -g. Use -D only if this one repo should own the tool.

With -D, the binary lives in that repo’s node_modules/.bin/. Your shell PATH does not include that, so plain yf-commit will not work. From that repo:

npx yf-commit

A package.json script also works, because npm puts node_modules/.bin on PATH for the script:

"scripts": {
  "commit": "yf-commit"
}
npm run commit

Plain yf-commit anywhere on the machine is only after -g.

No install at all (npm fetches and runs the published package):

npx @yourfam/yf-commit
npx yf-commit

npx yf-commit is the unscoped alias of @yourfam/yf-commit (same CLI, same version). Both are yours.

First run

The first yf-commit with no key is setup.

  1. Provider: OpenAI, DeepSeek, xAI (Grok), Groq, or Ollama (local).
  2. Model: Auto (recommended), or a named model.
  3. API key (hidden). Skipped for Ollama.

Saved to ~/.yf-commit/config.json (Windows: %USERPROFILE%\.yf-commit\config.json). Never commit that file.

yf-commit init         # wizard
yf-commit init --show  # masked status
yf-commit init --reset # delete config

Or set YF_COMMIT_API_KEY. OPENAI_API_KEY is also accepted if the others are unset.

Need a host we don’t list? Set YF_COMMIT_BASE_URL and YF_COMMIT_MODEL.

| Env | Config | Default | |---|---|---| | YF_COMMIT_API_KEY | apiKey | — | | YF_COMMIT_BASE_URL | baseUrl | https://api.openai.com/v1 | | YF_COMMIT_MODEL | model | auto |

Use

Flags combine. Typical paths:

You stage, then generate

git add path/to/file
yf-commit              # print draft → confirm → git commit
yf-commit -y           # same, skip confirm (also --yes, --auto)

Skip staging — let yf-commit git add -A

--all runs git add -A first (tracked changes and untracked files, except ignored), then the same as above.

yf-commit --all        # add everything → print draft → confirm → commit
yf-commit --all -y     # add everything → commit now (no confirm)

Other flags (mix with --all / -y as needed)

yf-commit --print      # print only; do not commit (still needs a staged diff, or add --all)
yf-commit --all --print
yf-commit --type fix   # force type
yf-commit --type 4     # same (1–11)
yf-commit --all -y --type feat

The JS does not classify the type. It does measure size (insertions + deletions, plus file count) and tells the model a length budget: tiny diffs get exactly 1 WHY + 1 WHAT; large diffs get more WHAT, grouped. WHY does not grow with every extra hundred lines. Mixed diffs still get one dominant type (feat / fix usually). Override with --type. Default still prints the draft so you can cancel.

| # | Type | Meaning | |---|---|---| | 1 | chore | Maintenance that is none of the below | | 2 | docs | Docs only | | 3 | feat | User-visible new capability | | 4 | fix | User-visible bug | | 5 | refactor | Same behavior, different structure | | 6 | test | Tests only | | 7 | build | Compile, bundler, packaging | | 8 | ci | Pipeline / GitHub Actions / hooks | | 9 | perf | Same behavior, measurably faster | | 10 | style | Formatting only, zero logic | | 11 | revert | Undoes a previous commit |

Priority on mixed diffs: revert → fix → feat → test → docs → perf → refactor → style → ci → build → chore.

Default prints the draft in the terminal. Enter or y to commit, n or Ctrl+C to cancel. It does not open an editor.

Empty index with unstaged or untracked files → error, exit 1, hint to stage or pass --all. Clean tree (or --all that staged nothing) → Nothing to commit, working tree clean. No git add unless --all.

Scripts / CI: --print or -y. It will not wait for a paste or a confirm.

Format

✨ feat(cli): add --print to skip git commit

💡 WHY:
- Preview a message without committing

🔧 WHAT CHANGED:
- --print writes the draft to stdout and exits

📁 FILES IMPACTED:
- src/index.js
- README.md

Development

This is the GitHub repo, not a second package. Docs and source live here; npx / npm install still install whatever version is published on npm.

git clone https://github.com/YourFam/yf-commit.git
cd yf-commit
npm install
npm test
node ./bin/yf-commit.js --help

Maintainer: YourFam (kamal-yourfam on npm). MIT.

Publish the unscoped alias (maintainers)

The GitHub repo publishes two npm packages at the same version:

  1. npm publish --access public from the repo root → @yourfam/yf-commit
  2. Then from alias/, with matching version and dependencies["@yourfam/yf-commit"]:
cd alias
npm publish --access public

That second package is named yf-commit and only shims the scoped CLI so npx yf-commit cannot be squatted.

License

MIT © 2026 YourFam. See LICENSE.