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

@knfrmd/kanmi

v0.3.0

Published

Web performance CLI — audit, monitor, and guard your Core Web Vitals

Readme

kanmi

Web performance CLI powered by Lighthouse. Audit, monitor, and guard your site's performance from the terminal.

npx @knfrmd/kanmi audit https://your-site.com
  Kanmi Performance Audit
  https://your-site.com
  mobile · Slow 4G, 4x CPU · LH 12.0.0 · 14.2s
  ─────────────────────────────────────────────

  Performance      72
  Accessibility    95
  Best Practices   100
  SEO              91

  Lab Metrics
  ─────────────────────────────────────────────
  LCP      4,200ms    NEEDS IMPROVEMENT
  TBT        380ms    NEEDS IMPROVEMENT
  CLS       0.003     GOOD
  FCP      1,800ms    GOOD
  SI       3,400ms    GOOD
  TTI      5,100ms    NEEDS IMPROVEMENT

  Top Issues
  ─────────────────────────────────────────────
  * Reduce unused JavaScript (~1.2s savings)
  * Eliminate render-blocking resources (~800ms savings)
  * Properly size images (~450ms savings)

Install

npm install -g @knfrmd/kanmi

Requires Node.js 18+ and Chrome/Chromium.

Commands

kanmi audit <url>

Run a Lighthouse audit and print results.

kanmi audit https://example.com
kanmi audit https://example.com --format json
kanmi audit https://example.com --runs 3
kanmi audit https://example.com --form-factor desktop

| Flag | Description | Default | |------|-------------|---------| | --runs <n> | Number of Lighthouse runs (median used for >1) | 1 | | --format <fmt> | Output format: terminal or json | terminal | | --form-factor <f> | Device emulation: mobile or desktop | mobile | | --save | Save result to local history (~/.kanmi/) | false |

kanmi monitor <url>

Audit a URL (3 runs, median), save to history, and detect regressions against your baseline.

kanmi monitor https://example.com
  Kanmi Monitor
  https://example.com
  Run #8 | 2026-02-28 | 3 runs (median)
  ─────────────────────────────────────────────

  Performance      92  unchanged

  Regressions
   CRIT  LCP: 2,100ms -> 2,600ms (+500ms)

  Regression Policy
  ─────────────────────────────────────────────
  Baseline     median of last 5 runs
  Rule         flag if delta >= max(abs, baseline x rel%)
  Fail         exit 1 on critical/high severity

kanmi history <url>

Show past audit runs stored in ~/.kanmi/history/.

kanmi history https://example.com
kanmi history https://example.com --limit 20

kanmi ci

CI gate for GitHub Actions. Audit URLs, enforce thresholds, post PR comments.

kanmi ci --urls https://example.com --performance 90

Exits 1 if thresholds fail or critical/high regressions are detected. Add --post-comment to annotate PRs.

JSON output

kanmi audit https://example.com --format json
{
  "schemaVersion": 1,
  "tool": { "name": "@knfrmd/kanmi", "version": "0.3.0" },
  "url": "https://example.com",
  "urlNormalized": "example.com",
  "scores": {
    "performance": 0.92,
    "accessibility": 0.98,
    "bestPractices": 1.0,
    "seo": 0.91
  },
  "labMetrics": {
    "lcp": 2300,
    "tbt": 150,
    "cls": 0.05,
    "fcp": 1200,
    "speedIndex": 3100,
    "tti": 3800
  }
}

Scores in JSON are 0-1 (matches Lighthouse native). Terminal display shows 0-100.

License

MIT