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

rn-healer

v0.1.3

Published

Intelligent React Native diagnostics, compatibility scanning, and auto-fix CLI.

Readme

rn-healer

rn-healer is a production-grade CLI toolkit for diagnosing and repairing React Native and Expo projects across Android, iOS, and macOS development environments.

It is designed as a modular diagnostics platform: commands are thin, services own orchestration, analyzers own domain rules, integrations talk to external registries, and plugins can add organization-specific checks without forking the CLI.

Install

npm install -D rn-healer

Or run directly:

npx rn-healer doctor

Commands

npx rn-healer doctor
npx rn-healer check-deps
npx rn-healer clean --android
npx rn-healer clean --ios
npx rn-healer clean --full
npx rn-healer diagnose build.log
cat metro.log | npx rn-healer diagnose
npx rn-healer health --min-score 80
npx rn-healer upgrade-check --target 0.76.0

What It Checks

doctor inspects Node.js, npm, Yarn, pnpm, Java, Android SDK, Xcode, CocoaPods, Ruby, Watchman, Gradle, React Native, and Expo SDK signals.

check-deps scans package.json, installed React Native ecosystem packages, npm metadata, React Native Directory data, Expo compatibility, Hermes/New Architecture signals, deprecated packages, duplicate native capabilities, and peer dependency risks.

diagnose parses Gradle, Xcode, Metro, npm, and yarn logs and maps known failure patterns to root causes and exact fixes.

health produces stability and dependency scores plus architecture and performance warnings.

upgrade-check generates an upgrade checklist, dependency risk report, and migration guardrails for a target React Native version.

Architecture

src/
  commands/       Commander.js command adapters
  analyzers/      Dependency and domain analyzers
  services/       Orchestration, project inspection, telemetry, CI, upgrade logic
  utils/          Filesystem, command, output, and version helpers
  constants/      Recommended versions, docs, scoring weights
  types/          Shared contracts for diagnostics, plugins, reports
  parsers/        Log parsers and pattern rules
  integrations/   npm registry and React Native Directory clients
  fixes/          Fix plan registry

The core model is intentionally AI-ready. Diagnostics, log findings, fix plans, and project metadata are structured data, so a future SaaS backend, VSCode extension, or AI remediation agent can consume the same engine without scraping terminal output.

Plugin Support

Create rn-healer.config.mjs in a project root:

export default {
  plugins: [
    {
      name: 'company-mobile-rules',
      async diagnostics(context, project) {
        return [
          {
            id: 'company.min-node',
            title: 'Company Node baseline',
            status: 'pass',
            severity: 'info',
            message: `Checked ${project.root}`
          }
        ];
      },
      logRules() {
        return [
          {
            id: 'company.internal-sdk',
            category: 'company',
            severity: 'error',
            patterns: [/InternalSDK initialization failed/i],
            title: 'Internal SDK initialization failed',
            rootCause: 'The internal SDK native config is missing.',
            fix: 'Regenerate native config and rebuild the app.'
          }
        ];
      }
    }
  ]
};

CI/CD

Use health scoring as a release gate:

npx rn-healer doctor --ci
npx rn-healer health --min-score 80
npx rn-healer check-deps --json > rn-healer-deps.json

The included GitHub Actions workflow runs type checking, unit tests, and package builds on Node 18, 20, and 22. Tagged releases publish to npm with provenance.

NPM Publish Setup

  1. Create an npm automation token and save it as NPM_TOKEN in GitHub repository secrets.
  2. Update author, repository metadata, and package version in package.json.
  3. Run npm run build and npm test.
  4. Create a semver tag:
git tag v0.1.0
git push origin v0.1.0

The publish workflow publishes the package from tags that start with v.

Development

npm install
npm run typecheck
npm test
npm run build
npm run dev -- doctor --verbose

Unit Test Examples

Tests live under tests/ and use Vitest. Current examples cover log root-cause matching and semver parsing. Add analyzer tests by injecting mock npm registry and React Native Directory clients into DependencyAnalyzer.

Roadmap

  • Persistable JSON and SARIF reports.
  • VSCode extension host adapter.
  • SaaS workspace inventory and fleet health dashboards.
  • AI remediation plans from structured diagnostics.
  • More granular Expo SDK compatibility mappings.
  • Native build graph diffing for Android and iOS.