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

@metasession.co/devaudit-cli

v0.1.58

Published

DevAudit CLI — installs, syncs, and operates the Metasession SDLC across consumer projects.

Downloads

8,074

Readme

devaudit — the Metasession SDLC CLI

Single-binary, cross-platform tool for installing, maintaining, and operating the Metasession SDLC across consumer projects. Bundled with the framework templates it ships (../sdlc/).

This is the source of @metasession.co/devaudit-cli (binary name: devaudit). It is under active development — see tracking issue #1 and the full design in ../docs/devaudit-cli/.

Install

npx is the canonical zero-install invocation — pulls the latest version on first run:

npx @metasession.co/devaudit-cli@latest --help
npx @metasession.co/devaudit-cli@latest install ../path/to/your-project
npx @metasession.co/devaudit-cli@latest update

Prefer a permanent install? Run once, then the short forms work everywhere:

npm install -g @metasession.co/devaudit-cli
devaudit --help
devaudit install ../path/to/your-project
devaudit update

Requires Node ≥ 22. Native binaries (no Node runtime needed) are on the roadmap.

Status — v0.1.1

Working

  • devaudit --help / --version
  • devaudit doctor — checks node (>=22), git, gh, jq, curl are on PATH
  • devaudit status [path] — reads sdlc-config.json from a consumer project, prints stack/host/slug/source-dirs, and reports which framework files are present
  • devaudit install [path]native TS, 11-step interactive onboarding under src/install/ (auth-probe → detect-stack → prompts → write-config → project → api-key → github → hooks-bootstrap → branch-protection → sync-templates → done-report). Replaces the former scripts/sdlc-onboard.sh (removed); no shell-out.
  • devaudit update <version> <paths...>native TS, multi-project template sync under src/update/. Reads each consumer's sdlc-config.json, copies framework files, fires beforeSync / afterSync plugin hooks. Replaces the former scripts/sync-sdlc.sh (removed); no shell-out.
  • devaudit push <slug> <req-id> <type> <file> — uploads evidence to the portal (port of upload-evidence.sh; file or directory; retries on 429/5xx with backoff)
  • devaudit auth login — interactive PAT paste flow; validates against the portal; stores at ~/.config/devaudit/auth.json (mode 0600)
  • devaudit auth logout — wipes the cached token
  • devaudit auth status — verifies the cached token (or DEVAUDIT_USER_TOKEN env var) by calling GET /api/projects
  • devaudit plugin list — discovers plugins in ~/.config/devaudit/plugins/, validates manifests, reports load state
  • devaudit plugin install <source> — npm-name or Git URL; clones / installs / validates / registers
  • devaudit plugin remove <name> — deregisters and rm-rfs the plugin directory
  • devaudit plugin update — git-pulls each plugin directory

40 vitest tests across 8 test files; all green on Linux + macOS + Windows.

Stubbed (exit code 1 + helpful pointer)

These need workstream B (portal-side) prereqs before they can do anything real:

  • devaudit org list / switch / policy list|apply / report — needs portal RBAC + org endpoints
  • devaudit config get / set / list — config file already exists, just no CLI surface yet
  • devaudit upgrade — self-update; needs distribution channel established first (Step 2 of trajectory — native binaries via brew/scoop/curl)

Develop locally

cd cli
npm install --legacy-peer-deps   # the framework's polyglot adapter set doesn't peer-clean cleanly with strict node>=22
npm run build                     # tsup → dist/index.js (ESM, bundled)
./bin/devaudit.js --help          # try the CLI
./bin/devaudit.js doctor          # check your local environment

Project structure

cli/
├── package.json              # @metasession.co/devaudit-cli, ESM-only, node >=22
├── tsconfig.json             # strict TS
├── tsup.config.ts            # ESM bundle config
├── vitest.config.ts          # test runner
├── bin/
│   └── devaudit.js           # shebang + dynamic import of dist/index.js
└── src/
    ├── index.ts              # commander entry — registers all commands
    ├── commands/
    │   ├── doctor.ts         # real implementation
    │   └── stub.ts           # helper for not-yet-implemented commands
    └── lib/
        ├── logger.ts         # consola wrapper, --json + --verbose aware
        └── version.ts        # CLI version constant

Why a CLI (it replaced the original bash scripts)

  • Cross-platform native (Linux/macOS/Windows; no WSL requirement)
  • JSON output mode on every command for CI
  • Interactive UX comparable to Vercel/Supabase/Firebase/GH/Railway CLIs
  • Plugin extensibility (@metasession.co/devaudit-plugin-sdk defines the contract; @metasession.co/devaudit-plugin-prisma + @metasession.co/devaudit-plugin-evidence-export are first-party reference implementations)
  • Organisation-level features: policy-as-code, RBAC, centralised reporting
  • Single-binary distribution via Node SEA (no Node runtime required on the user's machine) — on the roadmap