• Stars
    star
    140
  • Rank 252,207 (Top 6 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 2 years ago
  • Updated 15 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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.

@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.

More Repositories

1

graphql-tools

🔧 Utility library for GraphQL to build, stitch and mock GraphQL schemas in the SDL-first approach
TypeScript
5,282
star
2

graphql-mesh

The Graph of Everything - Federated architecture for any API service
TypeScript
3,162
star
3

graphql-import

Import & export definitions in GraphQL SDL
871
star
4

feTS

TypeScript HTTP Framework focusing on e2e type-safety, easy setup, performance & great developer experience
TypeScript
570
star
5

graphql-toolkit

A set of utils for faster development of GraphQL tools
168
star
6

meteor-webpack

https://medium.com/@ardatan/meteor-with-webpack-in-2018-faster-compilation-better-source-handling-benefit-from-bc5ccc5735ef
JavaScript
122
star
7

stencil-apollo

Stencil Apollo Library
TypeScript
98
star
8

graphql-import-node

Import 'graphql' files in NodeJS
JavaScript
79
star
9

schema-stitching

Automatically stitch multiple schemas together into one larger API in a simple, fast and powerful way.
MDX
44
star
10

graphql-mesh-workshop

14
star
11

WhatsApp-Clone-client-Stencil

WhatsApp Clone based on Stencil and Ionic 4
TypeScript
12
star
12

graphql-modules-accountsjs-boilerplate

https://medium.com/the-guild/authentication-with-accountsjs-graphql-modules-e0fb9799a9da
TypeScript
11
star
13

react-native-browser-polyfills

Set of browser polyfills for React Native
JavaScript
8
star
14

TypeGraphQLModules

GraphQL-Modules TypeGraphQL Integration Example
TypeScript
6
star
15

react-native-meteor-polyfills

https://medium.com/@ardatan/connecting-react-native-and-meteor-w-o-any-3rd-party-library-in-2018-3e784d33acb0
JavaScript
5
star
16

angular-rss-reader

RSS Reader for Angular
TypeScript
4
star
17

msgraph-react-mesh-sdk

MS Graph SDK Example on React project using GraphQL Mesh
TypeScript
3
star
18

fetchache

Cross platform Fetch with Generic Key Value Cache support
2
star
19

meteor-mocha

Mocha Testing Package for Meteor
JavaScript
2
star
20

nodejs-typescript-starter

Created with CodeSandbox
TypeScript
2
star