Skip to content

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

License

Notifications You must be signed in to change notification settings

ardatan/whatwg-node

Folders and files

NameName
Last commit message
Last commit date
Mar 25, 2025
Mar 19, 2025
Jul 29, 2024
Jun 21, 2024
Mar 25, 2025
Mar 29, 2025
Mar 28, 2025
Mar 7, 2025
Jan 30, 2023
Mar 5, 2025
Mar 13, 2025
Jan 30, 2023
Sep 1, 2024
Mar 7, 2023
Jan 7, 2025
Oct 12, 2023
Oct 11, 2023
Jul 29, 2024
Mar 17, 2025
Mar 5, 2025
Feb 5, 2025
Dec 12, 2024
Mar 28, 2025
Dec 9, 2024
Jul 22, 2024
Mar 2, 2023
Feb 25, 2025
Jan 7, 2025
Feb 27, 2024
Mar 29, 2025

Repository files navigation

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

A ponyfill package for the Fetch Standard.

A ponyfill package for the DOM Events Standard.

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.

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published