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

@pathtx/eslint-dispatcher

v0.0.3

Published

A caching, parallel-batching wrapper around ESLint's flat config CLI. It walks a directory itself, splits the matching files into size-bounded batches, runs `eslint --format json` on each batch across a worker pool, and caches per-file results (content-ad

Readme

@pathtx/eslint-dispatcher

A caching, parallel-batching wrapper around ESLint's flat config CLI. It walks a directory itself, splits the matching files into size-bounded batches, runs eslint --format json on each batch across a worker pool, and caches per-file results (content-addressed, keyed on file content + config + ESLint version) so a re-run only re-lints what actually changed.

Requirements

  • Node.js with pnpm available on PATH (batches are run via pnpm exec eslint)
  • A git repository — the cache root and target resolution are relative to git rev-parse --show-toplevel
  • An eslint.config.{js,mjs,ts,mts} at the repo root

Install

pnpm add -D @pathtx/eslint-dispatcher

CLI usage

eslint-dispatcher [path] [...eslint args]
  • path — file or directory to lint, defaults to .
  • Any remaining arguments are forwarded to ESLint, with two exceptions handled by the dispatcher itself:
    • --fix — also bypasses the result cache for files that previously had errors
    • --jobs / -j <n> — number of batches to run concurrently (default 5)
  • --format / -f is stripped if passed — output is always requested as JSON internally so results can be cached and re-printed per file
eslint-dispatcher src --fix
eslint-dispatcher . --jobs 8

Exit code is 1 if any linted file (cached or fresh) has errors, 0 otherwise.

Library usage

import { eslint, quickbuild } from '@pathtx/eslint-dispatcher';

await eslint.run('src', ['--fix']);

const mod = await quickbuild.quickBundle('./some-script.ts', []);
  • eslint.run(targetPath, rawEslintArgs) — the same entry point the CLI calls
  • quickbuild.quickBundle(entryFile, otherFiles, options?, extraPrefix?) — bundles and import()s a TypeScript/JS entry point on demand via esbuild, caching the build under .quickbuild/
  • quickbuild.quickBundleModule(moduleName, options?, returnDefault?) — same, but for re-exporting an installed module through esbuild

Caching

Both caches live under <repo-root>/.eslintcache/:

  • config/ — the resolved set of ignore globs from eslint.config.*, keyed by config file hash
  • results/ — per-file lint output, keyed by config hash, ESLint version, effective CLI args, file path, and file content

Result cache entries older than 14 days are pruned at the end of each run. Delete .eslintcache/ to force a full re-lint.

Development

pnpm install
pnpm run lint        # lint this repo with itself
pnpm run typecheck   # tsc --noEmit
pnpm run build        # bundle bin/cli.ts + src/index.ts with esbuild, emit .d.ts files
pnpm run prettier     # format src/* and package.json

pnpm run build produces:

  • dist/cli.mjs, dist/index.mjs — esbuild bundles (ESM, Node platform, source maps, node_modules dependencies left external)
  • dist/types/ — .d.ts declarations for both entry points, emitted by tsc via tsconfig.build.json