4 个仓库
Compatibility layers that bring browser-native APIs to non-browser JavaScript environments.
Distinct from Browser APIs: Focuses on the cross-runtime implementation (shim) rather than the API definition.
Explore 4 awesome GitHub repositories matching web development · Cross-Runtime API Shims. Refine with filters or upvote what's useful.
core-js is a comprehensive compatibility layer and standard library polyfill that implements ECMAScript proposals and stable language features across diverse JavaScript runtimes. It serves as a runtime environment shim to ensure consistent execution of global objects, iteration protocols, and standard library methods in older browsers or non-browser environments. The project is distinguished by its delivery models, offering both prototype-based global polyfilling and a pure-module implementation. This allows for the integration of modern functionality without modifying global prototypes to pr
Provides browser-based utilities like URL and structuredClone in non-browser environments.
This project is a CommonJS module bundler and resolver designed to combine interdependent JavaScript files into a single script for execution in web browsers. It functions as a Node.js JavaScript bundler that emulates server-side core modules and resolves dependencies to ensure compatibility between server-side logic and browser environments. The system features an extensible bundling pipeline and a browser-side module resolver. It provides a plugin architecture for transforming source code and a source map generator to correlate bundled output back to original files for debugging. The proje
Replaces server-side core modules with browser-compatible alternatives to emulate a Node.js environment.
Vinext is a build system and edge runtime compiler that enables framework-agnostic serverless deployments. It functions as a Vite plugin and compatibility layer that emulates file-system routing, server components, and server actions, allowing projects to maintain specific framework API surfaces while targeting edge workers and serverless environments. The project provides a specialized bridge for migrating projects to a Vite-based build pipeline while preserving routing and server component patterns. It utilizes a system of module shimming and adapters to produce standalone bundles compatibl
Replaces framework-specific modules with compatible implementations to maintain routing and image functionality in Vite.
Adapter is a browser compatibility layer and normalization library for WebRTC. It functions as an API shim that standardizes interfaces and behavior across different web browsers to ensure consistent real-time audio and video communication. The project distinguishes itself by detecting browser engine versions to identify specific quirks and specification differences. It applies targeted patches and wrappers to insulate applications from inconsistent API implementations and browser-specific prefix differences. The library covers a broad range of normalization capabilities, including interface
Provides a shim layer that normalizes WebRTC method signatures and behaviors across different browser environments.