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

@yamf/cli

v0.9.0

Published

Command-line interface for yamf

Readme

@yamf/cli

Command-line interface for yamf.

Packaging (longer-term): PM3 and related helpers live in this package so the CLI, tests, and pm3-service share one implementation. A dedicated @yamf/pm3 (or similar) may make sense if the core grows further; the edge CLI shape can stay version‑flexible for v1.

Usage

yamf <command> [options]

Commands

test

Run tests using auto-discovery. Finds files that import @yamf/test and export plain functions.

Requires: @yamf/test (optional peer dependency—install with pnpm add -D @yamf/test if missing)

yamf test                 # Discover and run tests from cwd
yamf test -d packages/core   # Run tests from specified directory
yamf test -f "*user*"     # Filter by file name (basename substring or glob)
yamf test -n "testVerify*"   # Filter by test name
yamf test --list         # List discovered files without running

# Run package-local example scripts (*.example.js) as tests (basename glob)
yamf test --as-test '*.example.js' -d packages/services/cache

Options:

  • -d, --dir <path> - Working directory for discovery (default: cwd)
  • -f, --file <pattern> - Filter files by name (substring or * basename glob)
  • -n, --name <regex> - Filter tests by name (regex or * wildcard)
  • --as-test <glob> - Run matching .js files without requiring @yamf/test in-file (see TESTING.md); pattern required when flag is used
  • --include-e2e - Include *.e2e-tests.js files (default: excluded)
  • --list - List discovered suites/files without running
  • -v, --verbose - Verbose output

Environment: Loads .env.test from the working directory (or walks up to find it) before running.

Dev + Build Notes

  • yamf dev / yamf init --dev local mode uses YAMF_REGISTRY_URL when set. If unset, it first tries the last local registry URL from PM3 state, then falls back to http://127.0.0.1:20000 (same target used by dev bootstrap). If your stack uses another port (for example :4000), set YAMF_REGISTRY_URL explicitly.
  • When auto-starting local dev bootstrap, CLI now performs a loopback/port sanity check first and fails fast if the configured port is already occupied (common orphan-process failure mode).
  • For monolith layouts where services import code outside the entry directory, include those trees in watch for that service (for example watch: ['src/lib', 'src/ffmpeg']).
  • When build.packages is 'external', bundle hash metadata includes project lockfiles. If no lockfile exists, it falls back to hashing package.json so dependency-only changes can still invalidate the bundle hash.

Deploy, yamf dev, and yamf:dev-reload

  • yamf build / yamf deploy --local / yamf deploy --remote share planAndApply (lib/deploy-driver.js) so local and remote use the same scale vs rolling decisions (see the top-level framework roadmap).
  • yamf dev watches service entries, rebuilds, and deploys; after each successful apply it publishes on CHANNELS.DEV_RELOAD (yamf:dev-reload) with
    { source: 'yamf-dev', service, hash, at } so any subscriber (notably @yamf/services-dev-hmr) can tell browsers a backend replica changed.
  • Browser coordination (optional): a Vite app can load yamfVitePluginDev from @yamf/client so Vite handleHotUpdate also publishes the same channel with { source: 'vite', at } (requires YAMF_DEV=on, YAMF_REGISTRY_URL in the Vite process). The client then uses @yamf/client/dev-hmr to opt into D4 (see D4-SPA-HMR-ANALYSIS.md and the yamf README Dev and deploy in practice).
  • Registry cache fan-out in large fleets: registry env YAMF_CACHE_COALESCE_MS and related knobs; see the roadmap env table in ROADMAP.md.