Skip to content

edgefit Know it runs on the edge before you deploy.

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 check
Run the check on

src/index.tsentry

  • honono finding
  • chokidarnode:fs.watchdoes not run
  • cross-spawnnode:child_process.spawndoes not run
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
This is a sample. It is real 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.

Why edgefit ​

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.

Supported runtimes ​

Where to go next ​

Released under the MIT License.