{"library":"webvr-polyfill","type":"library","category":null,"description":"The `webvr-polyfill` library provides a comprehensive JavaScript implementation of the WebVR 1.1 specification, designed to ensure WebVR content functions consistently across a wide array of platforms, regardless of native browser or device WebVR support. Its primary function is to inject a WebVR 1.1 API if absent, patch browsers with incomplete or inconsistent implementations, and offer a synthesized `CardboardVRDisplay` on mobile when native support is missing. The current stable version is 0.10.12, with a release cadence that has slowed as the ecosystem transitions towards the WebXR Device API. A key differentiator is its ability to provide a baseline VR experience by abstracting away fragmented native support, including head tracking orientation prediction to minimize motion-to-photon latency and reduce VR sickness. The project aims to allow developers to target the WebVR API without extensive browser-specific workarounds.","language":"javascript","status":"maintenance","version":"0.10.12","tags":["javascript","vr","webvr"],"last_verified":"Wed May 27","install":[{"cmd":"npm install webvr-polyfill","imports":["import WebVRPolyfill from 'webvr-polyfill';","const WebVRPolyfill = require('webvr-polyfill');","<script src='webvr-polyfill.js'></script>\n// WebVRPolyfill is now a global variable"]},{"cmd":"yarn add webvr-polyfill","imports":[]},{"cmd":"pnpm add webvr-polyfill","imports":[]}],"homepage":null,"github":"https://github.com/immersive-web/webvr-polyfill","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/webvr-polyfill","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/webvr-polyfill/compatibility"}}