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

@speqkit/plugin-json

v0.8.0

Published

The run as one JSON file — the shape a workflow reads with jq.

Downloads

529

Readme

@speqkit/plugin-json

The run as one JSON file.

# speq.yaml
plugins:
  - json

json:
  output: results/summary.json    # relative to reports/, the default
  compact: false                  # one line instead of indented
speq run --reporter console,json

Writes reports/results/summary.json — the stable directory, not reports/<runId>/. A workflow names one fixed path in upload-artifact and cannot interpolate a run id it will not learn until the step has finished.

The shape

{
  "status": "failed",
  "runId": "0f1c…",
  "startedAt": "2026-08-31T09:12:44.108Z",
  "durationMs": 7412,
  "totals": { "total": 60, "passed": 58, "failed": 1, "errored": 0, "skipped": 1, "pending": 1 },
  "tests": [
    {
      "id": "menu.items-create.creates-item",
      "title": "POST /categories/{id}/items creates an item",
      "status": "failed",
      "durationMs": 214,
      "message": "expected status 201, got 422",
      "messages": ["expected status 201, got 422", "body.name is not there"],
      "suite": "suites/menu/items-create/creates-item.yaml",
      "file": "suites/menu/items-create/creates-item.yaml",
      "meta": { "owner": "mira", "epic": "menu" }
    }
  ]
}

message is the first thing that went wrong, which is what a summary table has room for; messages is all of it, in the order the run found out. A pending test carries pending with the reason it gives.

failed and errored are counted apart, because they are different news: failed is the system under test saying no, errored is never getting an answer. A report that merges them tells CI a broken environment is a broken build.

Why the shape does not move

totals.pending is the same number as totals.skipped. That is not a synonym anyone would design; it is there because a jq expression in another repository reads .totals.pending // 0, and the // 0 means dropping the key would make that workflow report zero pending tests rather than fail. The summary would be wrong and nothing would say so.

Which is the rule for this file generally: the moment somebody parses a shape, it stops being ours to tidy. Keys get added; they do not get renamed or removed. There is a test in verify-publish that reads the file back through the four paths that workflow names, so the contract fails here rather than in their pipeline.

Folded from events, not from the result

Every number comes from the event stream — no reach into the runner's outcome object. So speq report --run <id> regenerates a byte-identical summary from a recorded log without re-running anything, and a report that cannot be regenerated is a report nobody can check.

It is also the standing proof that the stream carries enough. If a reporter cannot be written against events alone, the events are missing something, and that is a bug in the kernel rather than a reason to hand reporters a back door.

Turning it into prose

What belongs in a pull-request comment differs per team, so this plugin does not guess:

jq -r '"**\(.status)** — \(.totals.passed) passed, \(.totals.failed) failed of \(.totals.total)"' \
  reports/results/summary.json

MIT.