Skip to content

Feature Request: Built-in support for edge runtime APIs #65843

Description

@fbwe425

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

  1. Add a --edge-compat flag to enable edge-compatible mode
  2. Support Web Crypto API, Fetch API, and Streams API natively
  3. Provide a way to polyfill or shim edge-specific APIs
  4. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions