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

node-ci-preflight

v0.1.0

Published

Deterministic local diagnostics for Node.js CI and workspace metadata.

Readme

node-ci-preflight

Deterministic, local-only diagnostics for Node.js package-manager, workspace, version-policy, and GitHub Actions install-command metadata.

node-ci-preflight is intentionally a diagnostic, not a package manager. It does not install dependencies, execute project code or lifecycle scripts, contact registries, rewrite files, parse/execute workflow YAML, or print package values other than a small allow-list of version metadata.

Install and run

npm install --save-dev node-ci-preflight
node-ci-preflight .
node-ci-preflight packages/app --json
node-ci-preflight . --format github

Node.js 18 or newer is required.

CLI and exits

node-ci-preflight [path] [--json | --format github]
  • Exit 0: no findings.
  • Exit 1: diagnostics found (warnings and errors are policy failures for CI).
  • Exit 2: invalid arguments or malformed, unsafe, or unsupported metadata (including an invalid packageManager declaration).

Human output is the default. --json writes exactly one JSON document to stdout. --json and --format github are mutually exclusive. --format github emits GitHub workflow-command annotations such as:

::warning file=.github/workflows/ci.yml::[workflow-install-manager-mismatch] A GitHub Actions workflow contains a recognized install command for a different package manager.

The equivalent structured information is always available in JSON (ruleId, severity, evidence, explanation, remediation).

Checks

The tool detects an effective manager from local packageManager/lockfiles, an ancestor pnpm-workspace.yaml, or an ancestor packageManager/lockfile context (npm, pnpm, Yarn, and Bun). It reports:

  • lockfile-conflict — lockfiles for more than one manager at the same root.
  • package-manager-lockfile-mismatchpackageManager conflicts with a detected lockfile.
  • node-version-mismatchengines.node, .nvmrc, .node-version, or volta.node differ.
  • workflow-install-manager-mismatch — a regular .github/workflows/*.yml|yaml file has an inline run: command for another manager (npm ci/install/i, pnpm install/i, yarn/yarn install, or bun install/i).
  • unsafe-symlink — a candidate lockfile or the workflows directory is a symbolic link; it is not followed.

Evidence paths are project-relative where possible and values are limited to manager/version metadata or normalized recognized install commands. Arbitrary package.json fields, workflow text, environment values, and secrets are never reported.

Safety model and limits

Inputs are untrusted. Malformed package.json, unsafe/unsupported packageManager, and unsafe Node version metadata are invalid input (exit 2); symlinked lockfiles and workflow directories are not followed. Workflow inspection only recognizes inline run: values in regular files and is not a YAML parser: it may miss multiline, shell-variable, or unusual command forms, but ignores comments and non-run: text and never executes content. A present but unreadable workflow directory is invalid input rather than silently ignored. The CLI reads metadata only and does not modify the target repository.

Library API

import { inspectProject } from 'node-ci-preflight';

const report = await inspectProject('/workspace/project');
for (const finding of report.findings) {
  console.log(finding.ruleId, finding.severity);
}

inspectProject(path) resolves the supplied local path and returns a deterministic PreflightReport. Findings include a stable ruleId, severity (error, warning, or info), safe evidence, an explanation, and remediation.

Development

npm ci --ignore-scripts
npm run typecheck
npm test
npm pack --dry-run
npm audit

See CHANGELOG.md and LICENSE.