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

@workspacejson/cli

v0.5.2

Published

The workspace.json producer — scans a repository and generates .agents/workspace.json deterministically, preserving human-authored manual evidence.

Readme

@workspacejson/cli

The workspace.json producer. Scans a repository and generates .agents/workspace.json deterministically, preserving human-authored manual evidence across regenerations.

Install

npm install -g @workspacejson/cli   # or: npx @workspacejson/cli generate

Requires Node.js >= 20. Published from workspacejson/cli with npm provenance, so every release is traceable to the workflow run and commit that built it.

Migrating from agents-audit? That package is frozen at 0.4.4 and this one continues its version line from 0.5.0. The producer is the same implementation, but the surface is deliberately smaller:

| agents-audit | @workspacejson/cli | | -- | -- | | agents-audit generate | workspacejson generate | | agents-audit scan | no equivalent — this is the producer, not the audit | | .agentsauditrc | not read; a neutral config file is still to be named |

Commands

workspacejson generate            # write .agents/workspace.json
workspacejson generate --dry-run  # print the projection, write nothing
workspacejson generate --check    # non-writing drift gate for CI
workspacejson generate --force    # recover from an invalid existing artifact

Behavior

  • Manual evidence is preserved verbatim. Regeneration replaces producer-owned sections only; anything under manual survives untouched.
  • Writes are atomic — a temporary file is renamed into place, so a crash never leaves a half-written artifact.
  • Invalid artifacts are refused, not overwritten. If an existing .agents/workspace.json cannot be parsed or fails validation, generate exits non-zero rather than destroying evidence it cannot read. --force moves the invalid file aside as workspace.json.invalid.<timestamp> instead of deleting it.
  • Unchanged material output does not create drift. The producer compares a stable projection of generated content that excludes volatile timestamps, so re-running on an unchanged repository is a no-op and --check stays usable as a CI gate.

Library use

import { generateWorkspaceJson } from '@workspacejson/cli';

const result = await generateWorkspaceJson(process.cwd());
console.log(result.path, result.written, result.drift);

generateWorkspaceJson(repoRoot, config?, options?) accepts { dryRun, check, force, producer }. The producer identity is written to generated.by and defaults to this package — agents-audit passes its own identity so its historical artifacts keep stamping the same provenance.

Contracts

Schema, types and validation come from workspacejson/standard as released packages (@workspacejson/spec, @workspacejson/rules). This package implements the contract; it does not define it.

License

Apache-2.0.