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

@tzwzx/codesweep

v1.1.4

Published

Run code quality checks in one command 🧹

Readme

codesweep

npm version license

Run lint, format, typecheck, test, and other code quality commands in one go. Configure each project with a YAML file.

Why codesweep?

Task runners like concurrently and npm-run-all2 are great at running commands in parallel, but multi-stage pipelines — apply fixes first, then verify everything in parallel — quickly turn into hard-to-read one-liners in package.json. codesweep lets you declare the whole pipeline in one YAML file, mixing sequential and parallel stages freely, and run it with a single command.

It is built for "run all quality checks in one go" moments: post-task checks for AI coding agents, pre-commit hooks, and CI. Commands in a stage fail through — one failure doesn't cancel the other checks — so you see every error in a single run.

In short: if you need build caching and dependency graphs, reach for wireit; if you just want to run a couple of commands in parallel, concurrently alone is enough; if you want a declarative, multi-stage quality-check pipeline, codesweep is for you.

Requirements

  • Node.js >= 22 (or Bun >= 1)

Install

# npm
npm install @tzwzx/codesweep

# bun
bun add @tzwzx/codesweep

# pnpm
pnpm add @tzwzx/codesweep

After install, the codesweep binary is available via npx @tzwzx/codesweep, bunx @tzwzx/codesweep, or ./node_modules/.bin/codesweep.

CLI usage

codesweep <command> [options]
  • init — Create a starter codesweep.yml in the current directory. Reserved as a subcommand; see note below.
  • mode — Any mode defined in codesweep.yml (for example check or fix).
  • --config / -c <path> — Path to the config file (default: ./codesweep.yml).
  • --help / -h — Show help.

Examples:

codesweep init
codesweep check
codesweep fix
codesweep check --config ./packages/app/codesweep.yml

Exit code 0 on success, 1 on failure. Elapsed time is printed when the run finishes.

Library usage

codesweep can also be called programmatically: import { codesweep } from "@tzwzx/codesweep" and await codesweep("check") (optionally passing a config path as the second argument).

Config: codesweep.yml

Run init to generate a starter codesweep.yml in the current directory (fails if the file already exists). This also works without installing first:

npx @tzwzx/codesweep init

# or with bun
bunx @tzwzx/codesweep init

This creates:

# codesweep configuration
# https://github.com/tzwzx/codesweep

check:
  - parallel: # Stage 1: run checks in parallel
      - npm run lint
      - npm run typecheck
      - npm test

fix:
  - sequential: # Stage 1: apply auto-fixes
      - npm run fix
  - parallel: # Stage 2: verify after fixing
      - npm run typecheck
      - npm test

Define one or more modes. Each mode is an ordered list of stages. Each stage is either parallel or sequential, and holds a non-empty array of shell command strings. Mode names are arbitrary — note: "init" is reserved as a subcommand and cannot be used as a mode name.

Behavior

  • Stages run one after another (stage 2 starts after stage 1 finishes).
  • Within a stage, parallel runs commands concurrently; sequential runs them in order.
  • Fail-through: If one command in a stage fails, other commands in that stage still run; the stage then fails as a whole.

Validation rules

  • The config must be a non-empty object.
  • Each mode’s value must be an array of stages.
  • Each stage must have exactly one of parallel or sequential (not both).
  • Command lists must be non-empty arrays of non-empty strings.

Development

bun install
bun run build   # outputs to dist/
bun run dev     # tsc --watch

Changelog

See CHANGELOG.md.

License

MIT — see LICENSE.