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

opencodecommit

v1.6.1

Published

AI commit, branch, PR, changelog, and CI scan tooling for CLI backends and direct provider APIs

Readme

OpenCodeCommit

AI commit, branch, PR, and changelog generation through terminal AI CLIs and direct provider APIs.

OpenCodeCommit works as:

  • a VS Code / VSCodium extension
  • a Rust / npm CLI (occ)
  • a terminal TUI (occ tui)
  • a standalone CI/CD scanner in cloud (occ scan)

Before any prompt leaves your machine, OpenCodeCommit scans the diff locally for secrets, credential files, source maps, private keys, and other sensitive artifacts.

  • Open VSX
  • VS Code Marketplace
  • npm
  • crates.io
  • GitHub

Install

Extension:

  • Search for OpenCodeCommit in VS Code or VSCodium marketplace

CLI:

  • cargo install opencodecommit
  • npm i -g opencodecommit

Optional CLI backends:

  • npm i -g @openai/codex
  • npm i -g opencode
  • npm i -g @anthropic-ai/claude-code
  • npm i -g @google/gemini-cli

Direct API backends:

  • OpenAI
  • Anthropic
  • Google Gemini
  • OpenRouter
  • OpenCode Zen
  • Ollama
  • LM Studio
  • Custom OpenAI-compatible endpoints

Hosted API backends use API keys from environment variables. Ollama and LM Studio can auto-detect the lexicographically first available model when their model field is left empty.

Highlights

  • Mixed fallback chains across CLI and API backends from the same backend / backend-order config.
  • Commit, PR, branch, and changelog generation from the CLI, TUI, and extension with the same config surface.
  • occ scan for CI/CD with text, json, sarif, and github-annotations output modes.
  • Built-in languages: English, Finnish, Japanese, Chinese, Spanish, Portuguese, French, Korean, Russian, Vietnamese, and German.
  • Terminal TUI with one-shot backend picks and a file sidebar that stages or unstages the selected file with Space.
  • Transparent git guard for normal git commit flows.

Quick Start

Extension:

  1. Open Source Control.
  2. Click the sparkle action.
  3. Use the dropdown for refine, branch, PR, language, backend, or diagnose actions.

CLI:

occ tui
occ commit
occ commit --backend openai-api --dry-run --text
occ commit --backend gemini --dry-run --text
occ branch --dry-run
occ pr --backend openrouter-api --text
occ changelog --text
occ scan --format text
occ scan --format sarif --output occ-scan.sarif
occ guard install --global
occ update

Security Scanner

The local scanner checks for:

  • provider tokens and webhook URLs for OpenAI, Anthropic, GitHub, GitLab, AWS, Slack, Stripe, SendGrid, npm, PyPI, Docker, Vault, Discord, Teams, and more
  • bearer tokens, JWTs, Docker auth blobs, kube auth fields, and credential-bearing connection strings
  • .env*, .npmrc, .git-credentials, .kube/config, Terraform state and vars, service-account JSON, key stores, SSH keys, and private key material
  • exposed source maps such as *.js.map and *.css.map

Enforcement modes:

  • warn
  • block-high
  • block-all
  • strict-high
  • strict-all

occ scan reuses the same scanner outside the AI flow. It accepts git diff input, --stdin, or --diff-file, returns 0 when the selected enforcement allows the diff, and returns 2 when blocking findings remain.

Use occ guard profile human for warnings-first local use, or occ guard profile strict-agent when you want non-bypassable blocking behavior for autonomous tooling.

See SENSITIVE.md for the full scanning flow and PROCESS.md for how it fits into generation and CI/CD.

Config

~/.config/opencodecommit/config.toml is the single source of truth for both CLI and extension. On first use, OpenCodeCommit writes the full default config there so every setting is visible in one file. VS Code / VSCodium settings under opencodecommit.* are synced bidirectionally with the file.

Override the path with the OPENCODECOMMIT_CONFIG environment variable.

Useful settings:

  • backend
  • backend-order
  • commit-mode
  • branch-mode
  • diff-source
  • active-language
  • commit-template
  • sensitive.enforcement
  • sensitive.allowlist
  • api.openai
  • api.anthropic
  • api.gemini
  • api.openrouter
  • api.opencode
  • api.ollama
  • api.lm-studio
  • api.custom

Example:

backend = "openai-api"
backend-order = ["claude", "openai-api", "ollama-api"]

[api.openai]
model = "gpt-5.4-mini"
endpoint = "https://api.openai.com/v1/chat/completions"
key-env = "OPENAI_API_KEY"
pr-model = "gpt-5.4"
cheap-model = "gpt-5.4-mini"

[api.ollama]
model = ""
endpoint = "http://localhost:11434"
key-env = ""

CI/CD

The composite action installs the published opencodecommit package, runs occ scan, can upload SARIF to GitHub code scanning, emits GitHub annotations, and supports a workflow-level manual override that preserves reports without hiding findings.

License

MIT