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

bun-compat-check

v0.1.3

Published

Check your Node.js project's dependency compatibility with Bun runtime

Readme

bun-compat-check

npm version

Check your Node.js project's dependency compatibility with Bun runtime before migrating.

Scans your package.json, performs static analysis of Node.js API usage in each dependency, detects native addons, and generates a compatibility report.

Install

# npm
npm install -g bun-compat-check

# bun (of course)
bun add -g bun-compat-check

Or use without installing:

npx bun-compat-check
bunx bun-compat-check

Usage

# Check current directory
bun-compat-check

# Check a specific project
bun-compat-check ./my-project

# Exclude devDependencies
bun-compat-check --exclude-dev

# Include optionalDependencies
bun-compat-check --optional

# JSON output (for CI/CD pipelines)
bun-compat-check --json

# Verbose — show details for all packages
bun-compat-check -v

Example Output

🔍 Bun Compatibility Report
──────────────────────────────────────────────────

❌ INCOMPATIBLE  [email protected]
   Native addon detected (binding.gyp / node-gyp / N-API). Likely incompatible
   with Bun's JavaScriptCore engine.

❌ INCOMPATIBLE  [email protected]
   Uses unsupported Node.js APIs: trace_events
   ✗ node:trace_events (unsupported)

⚠️  PARTIAL  [email protected]
   Uses partially supported Node.js APIs: worker_threads, vm
   ~ node:worker_threads (partial)
   ~ node:vm (partial)

✅ OK  [email protected]
✅ OK  [email protected]
✅ OK  [email protected]

──────────────────────────────────────────────────
Summary: 6 packages scanned

  ❌  2 incompatible — will not work on Bun
  ⚠️  1 partial — uses partially supported APIs
  ✅  3 compatible

Migration readiness: 67%
  → Several packages need attention before migrating.

How It Works

  1. Native Addon Detection — Scans installed node_modules for signals like binding.gyp, node-gyp scripts, and N-API usage that indicate V8-dependent native addons.

  2. Node.js API Static Analysis — Scans .js/.mjs/.cjs files in each package for require() and import of Node.js built-in modules, then cross-references against Bun's compatibility table to flag unsupported or partially supported APIs. The compatibility table is maintained in src/node-compat.ts (last verified: 2026-04-02).

  3. Migration Score — Calculates a readiness percentage based on the ratio of non-incompatible packages (excludes packages that couldn't be analyzed).

Status Labels

| Icon | Status | Meaning | |------|--------|---------| | ✅ | Compatible | No incompatible Node.js API usage detected | | ⚠️ | Partial | Uses Node.js APIs with partial Bun support | | ❌ | Incompatible | Native addon or uses unsupported Node.js APIs | | ❓ | Unknown | Could not analyze (e.g. node_modules missing) |

CI/CD Integration

Use --json output and the exit code for automated checks:

# Exit code 1 if any incompatible packages found
bun-compat-check --json > compat-report.json || echo "Incompatible packages detected"

Contributing

Contributions welcome! The most impactful ways to help:

  • Update the Node.js API compatibility table as Bun releases new versions (src/node-compat.ts)
  • Improve static analysis accuracy (src/analyzer.ts)
  • Report false positives/negatives via GitHub Issues

Support

If you find this tool useful, consider supporting the project:

License

MIT