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

docs-for-me

v0.1.7

Published

Create programmer-friendly Git change guides and commit messages.

Downloads

1,482

Readme

docs-for-me is built for the everyday developer moment right before a commit:

  • What did I change?
  • What files and flows were affected?
  • What should the commit message say?
  • What can I paste into git commit after I review it?

The output is Markdown, so it can be read in a terminal, saved beside a project, or deleted after review.

Install

Install it with npm:

npm install -g docs-for-me

Then run it inside a Git repository:

docs-for-me changes --ai none --out changes-guide.md

You can also install it inside one project:

npm install --save-dev docs-for-me
npm exec docs-for-me changes --ai none --out changes-guide.md

For a one-time trial without installing globally:

npx docs-for-me changes --ai none --out changes-guide.md

Usage

Create a pre-commit guide for unstaged changes:

docs-for-me changes --ai none --out changes-guide.md

Create a guide for staged changes:

docs-for-me changes --staged --ai none --out changes-guide.md

Compare changes since a branch or ref:

docs-for-me changes --since main --ai none --out changes-guide.md

Use OpenCode for a more natural explanation:

docs-for-me changes --ai opencode --out changes-ai-guide.md

What It Gives You

The changes command reads your Git diff and writes a Markdown guide with:

  • a plain-language summary
  • changed files and changed areas
  • changed functions or code areas when visible
  • a copy-paste-ready commit message
  • a files-checked list
  • an accuracy note

OpenCode Mode

OpenCode mode uses the opencode CLI as the AI provider.

First, make sure OpenCode works:

opencode run "Say hello in one sentence."

Then run:

docs-for-me changes --ai opencode --out changes-ai-guide.md

When OpenCode is working, the generated Markdown should not contain:

- **AI:** unavailable or disabled (`opencode`)

Local vs AI Changes

--ai none does not use machine learning. It uses local diff parsing and generic software detectors to describe visible change patterns.

--ai opencode sends the Git diff to OpenCode and asks it to produce the same kind of guide with a more natural explanation and a subject-plus-body commit message.

Progress Messages

Commands print progress messages so long-running AI calls do not look frozen:

[  0.0s] Reading Git diff for unstaged changes
[  0.0s] Preparing change guide with provider: none
[  0.0s] Reading Git diff...
[  0.0s] Parsing changed files and changed lines...
[  0.0s] Detected 42 changed line(s) across 3 file(s).
[  0.0s] Scoring 18 local detector signal(s)...
[  0.0s] Rendering developer-readable Markdown...
[  0.0s] Writing Markdown output
[  0.0s] Change guide ready.

Hide progress messages with:

docs-for-me changes --ai none --quiet --out changes-guide.md

Privacy

--ai none runs locally and does not call an AI provider.

--ai opencode sends your Git diff to OpenCode and to whatever model/provider OpenCode is configured to use. Do not use AI mode on private or sensitive code unless you are comfortable with that provider handling the content.

Contributor Setup

The core CLI is written in Python, but npm is the user-facing package path. Use this setup only when developing docs-for-me itself:

python -m venv .venv
.venv\Scripts\activate
pip install -e . pytest
.venv\Scripts\python.exe -m pytest --basetemp .\build\pytest-temp

To build the Windows executable that the npm package runs:

npm run build:exe:win

Then test the npm wrapper locally:

npm run test:npm-local

The npm wrapper expects the executable here:

prebuilt/win32-x64/docs-for-me.exe