A Node.js compatibility checker for Cloudflare Workers, Bun, Deno, Netlify and Vercel Edge. edgefit follows your code and every npm package from the entry point and tells you which Node and Web APIs the runtime will not run, down to the package, the line and the import chain.
npx edgefit checksrc/index.tsentry
edgefit · workerd (Cloudflare Workers)
entry src/index.ts · 47 modules · conditions workerd, worker, browser
error unsupported node:fs.watch (workerd)
file watching is not implemented; throws ERR_UNSUPPORTED_OPERATION
chokidar@6.0.0 node_modules/chokidar/backend.js:1:10
via src/index.ts > chokidar
error unsupported node:child_process.spawn (workerd)
every child_process function throws ERR_METHOD_NOT_IMPLEMENTED; Workers cannot spawn processes
cross-spawn@7.0.6 node_modules/cross-spawn/index.js:12:24
via src/index.ts > cross-spawn
1 more error
3 errors, 0 warnings
edgefit check output for a small project that imports hono, chokidar and cross-spawn. The sample shows only some of the lines. Other findings and the data, settings, note, fix and link lines are not shown. Follows the real graph
Packages are resolved with the same export conditions the target's bundler uses, so a library's Workers build is checked, not its Node build.
Every finding is traceable
You get the API, the package and version, the file and line, the import chain from your entry, and a link to the runtime source the result was read from.
Never claims safety
Code edgefit cannot see, such as a computed require, is reported as unknown instead of passing silently.
Pinned data
Compatibility data is vendored and versioned. Results only change when your project or the data changes, never between two runs.
Works with frameworks
Scan the build output of Nuxt, Nitro, SvelteKit or Astro. Sourcemaps map every finding back to the original file.
Fits pull requests
The GitHub Action reports only what a pull request adds or fixes, so accepted findings do not drown out new ones.
Tested on real apps
Every release is checked against popular starters (Hono, zod, drizzle-orm, a Postgres client, a Nitro build) installed from npm.
Cloudflare Workers Node.js compatibility
workerd. Reads your wrangler compatibility date and flags.
Bun Node.js compatibility
bun. Warns when your project pins an older Bun than the data.
Deno and Deno Deploy Node.js compatibility
deno and deno-deploy. Applies your import map and npm: specifiers.
Netlify Edge Functions compatibility
netlify-edge. The Deno data, with the entry and import map read from netlify.toml.
Vercel Edge runtime compatibility
vercel-edge, experimental. Built from Vercel's documented list of allowed modules.