{"library":"event-source-polyfill","type":"library","category":null,"description":"A polyfill implementing the W3C EventSource (Server-Sent Events) API for browsers that lack native support. Current stable version is 1.0.31. It fills gaps in older browsers like IE 10+ (XDomainRequest for IE 8-9 with limitations), Firefox 3.5+, Chrome 3+, Safari 4+, and Opera 12+. Key differentiators: cross-domain support, custom headers, and configurable last-event-id parameter. The README strongly discourages use (\"Please do not use this shitty library!\") due to quality concerns, but the package remains actively maintained for legacy compatibility.","language":"javascript","status":"active","version":"1.0.31","tags":["javascript","sse","server sent events","eventsource","event-source","polyfill"],"last_verified":"Wed May 27","install":[{"cmd":"npm install event-source-polyfill","imports":["import { EventSourcePolyfill } from 'event-source-polyfill'","import { NativeEventSource } from 'event-source-polyfill'","import { NativeEventSource, EventSourcePolyfill } from 'event-source-polyfill';\nconst EventSource = NativeEventSource || EventSourcePolyfill;\nglobal.EventSource = EventSource;"]},{"cmd":"yarn add event-source-polyfill","imports":[]},{"cmd":"pnpm add event-source-polyfill","imports":[]}],"homepage":null,"github":"https://github.com/Yaffle/EventSource","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/event-source-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/event-source-polyfill/compatibility"}}