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

@shan8851/runready

v0.1.0

Published

Local dev preflight CLI that checks whether a repo is ready to run.

Readme

runready

npm version License: MIT Node.js

Check whether a repo is ready to run. Built for developers and agents who would rather not waste half an hour swearing at localhost.

runready                              # Compact local preflight
runready doctor                       # Full diagnostic view
runready check --only env             # Only check env files/schema/source usage
runready check --only runtime,deps    # Only check Node/package-manager/deps
runready env sync --dry-run           # Preview safe env/example sync changes
runready check --json                 # Machine-readable output

runready is zero-config by default. It looks for common local setup blockers: Node/package-manager mismatches, missing installs, env drift, duplicate env keys, Docker readiness, script availability, and app port conflicts.

No LLM. No SaaS. No auth. No arbitrary project commands by default.

Install

npm install -g @shan8851/runready

Or from source:

git clone https://github.com/shan8851/runready.git
cd runready
pnpm install
pnpm run build
pnpm link --global

Commands

| Command | What it does | | --- | --- | | runready [path] | Run compact safe preflight checks for the current repo or path | | runready check [path] | Explicit default check command | | runready doctor [path] | Full grouped diagnostic output | | runready env sync [path] | Safely align .env* and .env*.example files |

Options

runready check --only env
runready check --only runtime,deps,scripts
runready check --only docker,ports
runready check --json
runready check --strict
runready check --no-color
runready doctor --only env

--only accepts comma-separated categories:

  • env
  • runtime
  • deps
  • scripts
  • docker
  • ports

What it checks

Project

  • Finds the repo/project root
  • Detects common project types from files
  • Handles being run inside a subdirectory

Runtime

  • Git availability
  • Node availability
  • Current Node version vs package.json#engines.node
  • Package-manager availability from packageManager or lockfile

Dependencies

  • Lockfile presence
  • Multiple-lockfile warnings
  • packageManager vs lockfile consistency
  • node_modules / Yarn PnP presence
  • Declared dependency links present in node_modules where safe to infer

Environment

  • .env* and .env*.example detection
  • Missing local env files
  • Missing local keys from examples
  • Duplicate env keys
  • Empty local values
  • Obvious process.env.*, import.meta.env.*, and T3/Zod schema usage
  • Test files and fixtures are ignored by default to avoid noisy false positives

Docker and ports

  • Docker/Compose file detection
  • Docker CLI availability
  • Docker daemon reachability
  • App port conflict checks from env keys like PORT, APP_PORT, VITE_PORT, NEXT_PORT
  • Compose host-port inference

Env sync

runready env sync helps keep local env files and examples aligned.

runready env sync --dry-run
runready env sync --yes

It can:

  • create a missing local env file from an example
  • create a missing example file from a local env file with values redacted
  • append missing keys to local/example files

Safety rules:

  • never overwrites existing keys or values
  • never prints secret values
  • redacts values when creating examples from local files
  • blocks all writes if duplicate/conflicting keys are detected
  • previews changes unless --yes is passed

Agent integration

Use --json for stable machine-readable output:

runready check --json
runready check --only env --json

Example envelope:

{
  "schemaVersion": 1,
  "ok": false,
  "summary": {
    "fail": 1,
    "pass": 8,
    "skip": 3,
    "warn": 1
  },
  "project": {
    "name": "example-app",
    "root": "/path/to/example-app",
    "type": ["node", "typescript"]
  },
  "checks": [
    {
      "id": "runtime.node.version",
      "category": "runtime",
      "status": "fail",
      "title": "Node version mismatch",
      "expected": ">=20",
      "actual": "18.20.0",
      "suggestion": "nvm install 20 && nvm use 20",
      "nextStep": "nvm install 20 && nvm use 20"
    }
  ],
  "nextSteps": ["nvm install 20 && nvm use 20"]
}

Exit codes:

  • 0 ready / no failing checks
  • 1 one or more checks failed
  • 2 invalid CLI usage or unexpected runready error

Warnings do not fail the command unless --strict is used.

Examples

Compact default output:

$ runready
╭──────────────────────────────────────────────────╮
│   runready ready                                 │
│   Project: @shan8851/runready  /path/to/runready │
│   Summary: 0 fail  0 warn  12 pass  9 skip       │
╰──────────────────────────────────────────────────╯
Project ok  ·  Runtime ok  ·  Dependencies ok  ·  Environment ok  ·  Scripts ok  ·  Docker skip  ·  Ports skip

Notable
✓ Everything notable looks ready.

No next steps needed.

Full diagnostic mode:

runready doctor

Env-only check:

runready check --only env

Safe env sync preview:

runready env sync --dry-run

Development

pnpm install
pnpm run validate
npm pack --dry-run

During development you can run the CLI directly:

pnpm dev
pnpm dev -- doctor
pnpm dev -- --only env
pnpm dev -- env sync --dry-run

License

MIT