Skip to content
JS
Package category

Polyfills and shims

Backfill missing language and platform features.

622 packages2 comparisons

Packages compared

622 packages
PackageWeekly downloads12-month change52 weeksGzipLast releaseModuleTypesCategories
@ant-design/create-react-context
A fork of create-react-context in MIT license
64.6k---4 years ago
0.2.6
CommonJSBundledPolyfills and shims, React
string.prototype.startswith
A robust & optimized `String.prototype.startsWith` polyfill, based on the ECMAScript 6 specification.
64.1k+37%-1 year ago
1.0.1
CommonJSNonePolyfills and shims
element-closest-polyfill
A minimal polyfill for Element.closest
62.5k+75%-2 years ago
1.0.7
CommonJSNonePolyfills and shims
@cto.af/textdecoder
Quick wrapper that finds TextDecoder in your runtime, or uses an adequate polyfill
61.3k---6 months ago
0.3.0
CommonJSBundledPolyfills and shims
navigator.sendbeacon
Polyfill for navigator.sendBeacon()
61.1k+9%-6 years ago
0.0.20
ESM + CommonJSNonePolyfills and shims
document-register-element
A stand-alone working lightweight version of the W3C Custom Elements specification
59.6k-17%--
1.14.10
ESM + CommonJSNonePolyfills and shims
@stdlib/math-base-special-acos
Compute the arccosine of a double-precision floating-point number.
58.2k---7 months ago
0.2.4
CommonJSBundledNumbers and maths, Polyfills and shims
array.prototype.foreach
An ES spec-compliant `Array.prototype.forEach` shim/polyfill/replacement that works as far down as ES3.
56.4k-30%-2 years ago
1.0.7
CommonJSNonePolyfills and shims
ember-destroyable-polyfill
Polyfill for RFC 580: Destroyables
55.6k+9%-5 years ago
2.0.3
CommonJSNonePolyfills and shims
proxy-polyfill
Polyfill for the Proxy object
54.3k-27%-6 years ago
0.3.2
ESM + CommonJSNonePolyfills and shims
es6-promise-polyfill
Polyfill for ES6 Promise
53.3k+28%-10 years ago
1.2.0
CommonJSNonePolyfills and shims, Promises and async control flow
fs-remove-compat
Cross-platform file removal utilities with Node.js 0.8+ compatibility. Provides rm and rmSync ponyfills matching Node.js fs.rm API, plus safeRm/safeRmSync with Windows-friendly retry defaults.
52.7k--12 days ago
1.0.6
ESM + CommonJSBundledFiles and file systems, Polyfills and shims
dynamic-import-polyfill
A polyfill for the native import() in the browser
52.1k+123%-7 years ago
0.1.1
ESM + CommonJSNonePolyfills and shims
@webcomponents/scoped-custom-element-registry
Scoped CustomElementRegistry Polyfill
52.1k---1 year ago
0.0.10
CommonJSNonePolyfills and shims
xmldom-qsa
Based on @xmldom/xmldom with some minor enhancements. Add querySelector, querySelectorAll and match method to Document and Element.
51.9k+314%-3 years ago
1.1.3
CommonJSBundledPolyfills and shims
transit-js
Transit is a data format and a set of libraries for conveying values between applications written in different languages. This library provides support for marshalling Transit data to/from Javascript.
51.4k+15%-5 years ago
0.8.874
CommonJSNonePolyfills and shims
@zenfs/streams
A modern node:stream polyfill
50.8k---13 days ago
1.0.1
ESM onlyBundledPolyfills and shims
@ungap/custom-elements
All inclusive customElements polyfill for every browser
49.6k---3 years ago
1.3.0
ESM + CommonJSNonePolyfills and shims
@mcp-b/global
W3C Web Model Context Protocol (WebMCP) API polyfill. Let AI agents like Claude, ChatGPT, and Gemini interact with your website via document.modelContext.
49.4k---25 days ago
5.1.0
ESM onlyBundledPolyfills and shims
hyperform
Capture form validation back from the browser
47.8k+107%-4 years ago
0.12.1
ESM + CommonJSBundledPolyfills and shims
object-assign-polyfill
Simple ES6 Object.assign() polyfill for older environments.
46.9k+36%-10 years ago
0.1.0
CommonJSNonePolyfills and shims
visibilityjs
Wrapper for the Page Visibility API
46.5k+12%-8 years ago
2.0.2
-NonePolyfills and shims
cross-fetch-ponyfill
Fetch polyfilled in Node only
45.6k+295%-3 years ago
1.0.3
ESM onlyNonePolyfills and shims
@fastly/performance-observer-polyfill
<h1 align="center" style="border-bottom: none;">🔎 PerformanceObserver Polyfill</h1> <p align="center"> <a href="https://travis-ci.org/fastly/performance-observer-polyfill"> <img alt="Travis" src="https://img.shields.io/travis/fastly/performance-obs
44.7k---5 years ago
2.0.0
ESM + CommonJSBundledPolyfills and shims
promise.try
ES Proposal spec-compliant shim for Promise.try
44.6k+29197%-16 days ago
2.0.2
CommonJSNonePolyfills and shims
keyboardevent-key-polyfill
polyfill for `KeyboardEvent.prototype.key`
43.5k-10%-9 years ago
1.1.0
CommonJSNonePolyfills and shims
ember-cached-decorator-polyfill
Polyfill for RFC 566: @cached
43k-22%-3 years ago
1.0.2
CommonJSBundledCaching, Polyfills and shims
focus-options-polyfill
JavaScript polyfill for the WHATWG spec of focusOptions, that enables a set of options to be passed to the focus method.
42.6k-7%-6 years ago
1.6.0
CommonJSNonePolyfills and shims
broadcastchannel-polyfill
Polyfill for BroadcastChannel for Safari, old Chrome and Opera
41.4k+60%-6 years ago
1.0.1
CommonJSNonePolyfills and shims
error-cause
An ES-spec-compliant shim/polyfill/replacement for the `.cause` property on all Error types that works as far down as ES3
40.1k-1%-1 year ago
1.0.9
CommonJSNonePolyfills and shims
@stdlib/utils-index-of
Return the first index at which a given element can be found.
38.6k---7 months ago
0.2.3
CommonJSBundledUtility libraries, Polyfills and shims
fs-copy-file-sync
fs.copyFileSync ponyfill
38k-13%-8 years ago
1.1.1
CommonJSNonePolyfills and shims, Files and file systems
@expo/browser-polyfill
Browser polyfill for making React Native compatible with web libs like pixi.js, three.js, phaser.js
38k---2 years ago
1.0.1
CommonJSNonePolyfills and shims, React
function.name-polyfill
Polyfill for the basic functionality of `Function.name` accessor property in its pre-ES6 form
37.7k-27%-8 years ago
1.0.6
CommonJSNonePolyfills and shims
@oddbird/css-anchor-positioning
Polyfill for the proposed CSS anchor positioning spec
37.6k---1 month ago
0.10.2
ESM + CommonJSBundledPolyfills and shims, CSS-in-JS and styling
compression-streams-polyfill
Lightweight polyfill/ponyfill for the Compression Streams API
36.6k+490%-2 years ago
0.1.7
ESM + CommonJSBundledCompression and archives, Polyfills and shims
webassemblyjs
WebAssembly interpreter
36k+7%-1 year ago
1.14.1
ESM + CommonJSNonePolyfills and shims, Parsers and serialisers
bluebird-global
Patches global.Promise to use bluebird and returns a bluebird instance
35.4k+122%-9 years ago
1.0.1
-NonePromises and async control flow, Polyfills and shims
mobile-drag-drop
Polyfill for making HTML5 drag and drop possible in all browsers.
35.1k+50%-3 years ago
3.0.0-rc.0
CommonJSBundledPolyfills and shims
sugar
A Javascript utility library for working with native objects.
34.6k-15%-7 years ago
2.0.6
CommonJSBundledPolyfills and shims, Utility libraries
browserify-shim
Makes CommonJS-incompatible modules browserifyable.
34.6k-1%-3 years ago
3.8.16
CommonJSNonePolyfills and shims
disposablestack
An ESnext spec-compliant `DisposableStack`, `AsyncDisposableStack`, `Symbol.dispose`, and `Symbol.asyncDispose` shim/polyfill/replacement that works as far down as ES3.
34.6k+125%-5 months ago
1.1.8
CommonJSNonePolyfills and shims
suppressed-error
ES Proposal spec-compliant shim for SuppressedError
34.5k+127%-2 years ago
1.0.3
CommonJSNonePolyfills and shims
utils-indexof
Returns the first index at which a given element can be found.
33.8k+15%-10 years ago
1.0.0
CommonJSNonePolyfills and shims, Utility libraries
ember-assign-polyfill
A polyfill for Ember.assign in <= 2.4
33.5k-10%-3 years ago
2.7.3
-NonePolyfills and shims
@inrupt/jest-jsdom-polyfills
This package provides various polyfills needed on jest/jsdom when using the Inrupt SDKs
33.4k---2 months ago
4.1.5
CommonJSNonePolyfills and shims
error-polyfill
Javascript Error Polyfill
33.3k-51%-5 years ago
0.1.3
CommonJSNonePolyfills and shims
scroll-behavior-polyfill
A polyfill for the 'scroll-behavior' CSS-property
32.8k-20%-6 years ago
2.0.13
ESM + CommonJSBundledPolyfills and shims, CSS-in-JS and styling
indexeddbshim
A polyfill for IndexedDB using WebSql
31.3k+406%-1 day ago
19.0.7
ESM + CommonJSBundledPolyfills and shims
frontend-collective-react-dnd-scrollzone
A cross browser solution to scrolling during drag and drop.
30.7k-29%-7 years ago
1.0.2
CommonJSNoneDOM and browser utilities, React

12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package, as measured by Bundlephobia. "-" means the value has not been fetched.