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

@webmarkjs/cli

v0.0.4

Published

Terminal interface for webmark — synthetic web performance measurement with statistical aggregation.

Readme

@webmarkjs/cli

Measure a URL's web performance from your terminal. Runs Lighthouse the specified number of times and reports the distribution (avg, σ, min, max, p75, p99) instead of a single noisy number.

Install

Install globally to use webmark anywhere:

npm install -g @webmarkjs/cli

Or run once without installing:

npx @webmarkjs/cli https://example.com

Requirements

  • Node.js 24+
  • Chrome or Chromium installed. webmark launches whatever Chrome it finds in headless mode.

If no Chrome is found, the command fails with a clear message:

error: Could not launch Chrome to run the measurement.
hint:  Install Chrome or Chromium, or point CHROME_PATH at an existing binary.

To use a specific browser:

CHROME_PATH=/usr/bin/chromium webmark https://example.com

Usage

webmark <url> [options]

The scheme is optional — webmark example.com is treated as https://example.com.

Options

| Option | Default | Description | |--------|---------|-------------| | -n, --runs <count> | 5 | Number of measurement runs | | --json | off | Output JSON instead of a table | | --silent | off | Suppress per-run progress on stderr | | -h, --help | | Show help | | -v, --version | | Show version |

Output

https://example.com/

metric  p50    sd     (min…max)     p75    p99
LCP     1.7s   210ms  (1.5s…2.3s)   1.9s   2.3s
FCP     1.1s   130ms  (900ms…1.3s)  1.2s   1.3s
CLS     0.021  0.012  (0.000…0.040) 0.031  0.040
TTI     2.0s   330ms  (1.7s…2.8s)   2.3s   2.8s

p50 is the median — the midpoint of the distribution. Unlike the arithmetic mean it is not skewed by outliers (a single slow run caused by a CPU spike won't pull it up).

Color is shown only in an interactive terminal and is disabled by NO_COLOR, so piped or redirected output stays plain.

Examples

Run more times for a tighter distribution:

webmark https://example.com --runs 10

Save results as JSON (measurements go to stdout, progress to stderr):

webmark https://example.com --json > result.json

Pipe into jq:

webmark https://example.com --json | jq '.field.lcp.p75'

Suppress progress output entirely:

webmark https://example.com --silent

Check the exit code in a script:

webmark https://example.com --silent || echo "measurement failed"

Exit codes

| Code | Meaning | |------|---------| | 0 | Success | | 1 | Runtime error (e.g. invalid URL, Chrome not found) | | 2 | Usage error (e.g. missing URL) |

JSON output schema

{
  "url": "https://example.com/",
  "field": {
    "lcp": { "p50": 1700, "min": 1500, "max": 2300, "p75": 1900, "p99": 2300, "sd": 210, "values": [...] },
    "fcp": { ... },
    "cls": { ... },
    "ttfb": { ... }
  },
  "lab": {
    "tbt": { ... },
    "tti": { ... },
    "si":  { ... }
  }
}

Time-based metrics are in milliseconds. CLS is a unitless score.

License

MIT