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

@quazardous/qcmp

v0.3.0

Published

qcmp (Quick Components) — inventory + version extractors + bumpers driven by qcmp.yaml at the project root.

Readme

qcmp — Quick Components

Tiny CLI that turns a qcmp.yaml at the project root into a uniform view of your project's components: their current versions, their changelogs, and a simple bump operation. One config file, four extractors (json / text / regex / git), three bumpers, no daemon, no MCP.

qcmp list                       # one row per component
qcmp version <key>              # print one version
qcmp versions [--pretty]        # JSON map { key: version }
qcmp bump <key> patch           # 0.1.4 → 0.1.5, writes back to the source file
qcmp bump <key> minor
qcmp bump <key> major
qcmp bump <key> --exact 1.0.0   # explicit override (skips semver math)
qcmp bump <key> patch --dry-run # show the change, don't write
qcmp changelog <key> --limit 5  # tail CHANGELOG.md sections

qcmp walks up from cwd to find qcmp.yaml, so subcommands work from anywhere in your repo. Override with --config <path>.

Install

git clone https://github.com/quazardous/qcmp.git
cd qcmp
./install.sh              # rsync into ~/.local/lib/qcmp + symlink ~/.local/bin/qcmp
# or
./install.sh --symlink    # dev install: symlink ~/.local/lib/qcmp to this checkout

Requires Node ≥ 20.

Make sure ~/.local/bin is on your PATH.

qcmp.yaml

project: my-app                   # free-form id, links to your other tooling

components:
  - key: app                      # short id used on the CLI
    name: My App                  # human-friendly name (optional)
    file: package.json            # path relative to qcmp.yaml's dir
    path: version                 # dotted path inside the file
    extractor: json
    main: true                    # marks the "project version" (one max)

  - key: api
    name: API service
    file: api/package.json
    path: version
    extractor: json
    changelog: api/CHANGELOG.md   # optional, enables `qcmp changelog api`

  - key: vendor-lib
    file: vendor/lib.php
    path: "Version:\\s*([\\d.]+)"  # the first capture group is the version
    extractor: regex

  - key: release
    extractor: git                 # `git describe --tags --abbrev=0` (fallback glob: `path:` or `v*`)

Extractors

| Extractor | Reads from | path: means | | --- | --- | --- | | json | file: (JSON) | dotted key (e.g. version, dependencies.react) | | text | file: (plain text) | ignored — the whole trimmed file is the version | | regex | file: (any text) | a regex, the first capture group is the version | | git | the repo containing qcmp.yaml | fallback tag glob, default v* (ignored when git describe succeeds) |

Bumpers

qcmp bump <key> <patch|minor|major> increments and writes the new version back to the source file:

| Extractor | Write strategy | | --- | --- | | json | rewrites the dotted key in place, preserves the file's indentation | | text | overwrites the file with <new-version>\n | | regex | substitutes the first capture group, leaves the rest of the match alone | | git | no bumper — qcmp will refuse and tell you to git tag v<new> manually |

Pass --exact <version> to set an arbitrary string (pre-release suffixes, non-semver versions, downgrades, …). Pass --dry-run to print without writing.

Programmatic access — the SDK

There's one way to read versions from code: import the SDK. The CLI is just this same library with a terminal face — not a separate API.

import { qcmp } from "@quazardous/qcmp";

const c = qcmp();                 // walks up from cwd to find qcmp.yaml
c.version("app");                 // "1.4.2"
c.versions();                     // { app: "1.4.2", api: "0.9.0" } — throws on a bad component
c.versionsSafe();                 // same, but a bad component → { error: "…" }
c.list();                         // Component[]
c.get("app");                     // one Component
c.changelog("app", 3);            // last 3 CHANGELOG entries

qcmp({ config: "/path/to/qcmp.yaml" });   // explicit config
qcmp({ cwd: "/some/subdir" });            // start the walk-up elsewhere

The low-level functions the CLI itself is built on are exported too — loadConfig, findComponent, extractVersion, writeVersion, incrementSemver, parseSemver, tailChangelog — plus the Component / ComponentsConfig types.

qcmp builds to dist/ (.js + .d.ts), so the import works from any JS runtime: plain Node, tsx, or a bundler. npm install builds it automatically (the prepare script), so adding qcmp as a git/file dependency just works:

// package.json
"dependencies": { "@quazardous/qcmp": "github:quazardous/qcmp" }

Other languages / shell scripts don't import — they call the CLI, which prints the same data as JSON: qcmp versions{"app":"1.4.2",…}, qcmp version <key> → one line. qcmp versions never fails the whole map on one bad component (that entry becomes {"key":{"error":"…"}}).

Why not a build/release tool

qcmp is intentionally narrow:

  • No conventional commits, no auto-bump from history.
  • No CHANGELOG generation — it only tails an existing CHANGELOG.md.
  • No PR creation, no tagging, no publish.
  • No multi-bump (bump-all ergonomics) — chain shell calls if you need that.

When those features matter, reach for release-please, changesets, or knope. qcmp is the primitive underneath: a uniform <key> → version mapping and a safe in-place bump.

License

MIT — © David Berlioz.