Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

whatwg-node

> 编程语言
Open source

Helper packages to create platform agnostic applications and libraries without worrying about the lack of WHATWG support in Node.js

196 stars0 likes1 views
WebsiteGitHub

About

Helper packages to create platform agnostic applications and libraries without worrying about the lack of WHATWG support in Node.js

WhatWG Node

This repository contains a set of environment(Browser, Node.js, Deno, Cloudflare Workers, Bun, etc.) agnostic packages for the WhatWG standards.

Node.js currently is the only exception that doesn't fully support those standards so whatwg-node packages ponyfill the missing parts without modifying or monkey-patching the native global APIs like polyfills.

Polyfill patches the native parts of an environment while ponyfill just exports the “patched” stuff without touching the environment’s internals. We prefer pony filling because it prevents us from breaking other libraries and environmental functionalities. In case a ponyfill is imported in an environment that already has that API built in like newer Node.js, Cloudflare Workers, Bun, Deno or Browser, no ponyfills are added to your built application bundle. So you have a generic package that works in all environments.

Packages

@whatwg-node/fetch

A ponyfill package for the Fetch Standard.

Fetch conformance for the Node implementation (@whatwg-node/node-fetch) is also exercised via a subset of web-platform-tests (npm run test:wpt).

@whatwg-node/events

A ponyfill package for the DOM Events Standard.

@whatwg-node/server

A platform-independent JavaScript HTTP server adapter implementation that uses the Fetch Standard to handle requests. The HTTP server implemented with this library can be used in any JS environment like Node.js, Deno, Cloudflare Workers, Bun, etc. For Node.js, it transpiles Node.js specific APIs to the standard ones, and for other environments, it uses the standard APIs directly. Even if your environment doesn't use Fetch API for the server implementation, you can still use fetch method to handle requests.

fetchache

A fetch wrapper that allows you to respect HTTP caching strategies on non-browser environments with a key-value cache implementation. It follows the HTTP Caching and Conditional Requests standards.

Support the Project

whatwg-node is maintained in the open and helps keep web-standard APIs consistent across Node.js, Bun, Deno, Cloudflare Workers, and other JavaScript runtimes. If this project saves you time or helps power your work, please consider sponsoring its development.

Your support helps fund ongoing maintenance, compatibility work, and improvements across the ecosystem. Every contribution, large or small, is genuinely appreciated.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言