Description
With the rise of edge computing platforms (Cloudflare Workers, Deno Deploy, Vercel Edge Functions), it would be valuable if Node.js could provide a subset of APIs compatible with these runtimes.
Proposed Solution
- Add a
--edge-compat flag to enable edge-compatible mode
- Support Web Crypto API, Fetch API, and Streams API natively
- Provide a way to polyfill or shim edge-specific APIs
- Generate deployment manifests for popular edge platforms
Benefits
- Write once, deploy anywhere (Node.js and edge)
- Easier migration from serverless to edge
- Better interoperability between runtimes
- Unified testing experience
Additional Context
This would make Node.js a universal runtime that can target both traditional servers and edge platforms.
Description
With the rise of edge computing platforms (Cloudflare Workers, Deno Deploy, Vercel Edge Functions), it would be valuable if Node.js could provide a subset of APIs compatible with these runtimes.
Proposed Solution
--edge-compatflag to enable edge-compatible modeBenefits
Additional Context
This would make Node.js a universal runtime that can target both traditional servers and edge platforms.