{"id":18537927,"url":"https://github.com/easywebapp/web-polyfill","last_synced_at":"2025-04-09T17:37:09.135Z","repository":{"id":91745284,"uuid":"469139463","full_name":"EasyWebApp/Web-polyfill","owner":"EasyWebApp","description":"An automatic CDN service for Web polyfills, which is based on TypeScript, Node.js \u0026 UnPkg.","archived":false,"fork":false,"pushed_at":"2025-02-25T14:50:40.000Z","size":3506,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T09:11:37.621Z","etag":null,"topics":["cdn","javascript","jsdelivr","nodejs","package","polyfill","service","typescript","unpkg","web"],"latest_commit_sha":null,"homepage":"https://polyfill.web-cell.dev/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EasyWebApp.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://paypal.me/TechQuery","https://tech-query.me/image/TechQuery-Alipay.jpg"]}},"created_at":"2022-03-12T16:36:08.000Z","updated_at":"2025-02-25T14:48:20.000Z","dependencies_parsed_at":"2024-01-17T20:17:57.418Z","dependency_job_id":"5647eddb-10c2-42ce-9740-1f6844ff6888","html_url":"https://github.com/EasyWebApp/Web-polyfill","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyWebApp%2FWeb-polyfill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyWebApp%2FWeb-polyfill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyWebApp%2FWeb-polyfill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyWebApp%2FWeb-polyfill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EasyWebApp","download_url":"https://codeload.github.com/EasyWebApp/Web-polyfill/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248078320,"owners_count":21044088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cdn","javascript","jsdelivr","nodejs","package","polyfill","service","typescript","unpkg","web"],"created_at":"2024-11-06T19:41:16.685Z","updated_at":"2025-04-09T17:37:09.127Z","avatar_url":"https://github.com/EasyWebApp.png","language":"TypeScript","funding_links":["https://paypal.me/TechQuery","https://tech-query.me/image/TechQuery-Alipay.jpg"],"categories":[],"sub_categories":[],"readme":"# Web polyfill\n\nAn automatic [CDN][1] service for [Web polyfills][2], which is based on [TypeScript][3], [Node.js][4] \u0026 [UnPkg][5].\n\n[![CI \u0026 CD](https://github.com/EasyWebApp/Web-polyfill/actions/workflows/main.yml/badge.svg)][6]\n\n## Usage example\n\n1. Find a Web feature in the [Polyfill directory][7]\n2. Copy the `class` name of the selected polyfill, then write it into a specific Script URL (shown below)\n3. the above script will detect whether current environment needs to be patched, then load the polyfill script original from UnPkg\n\n### Web pages\n\n```html\n\u003chead\u003e\n    \u003cscript src=\"https://polyfill.web-cell.dev/feature/ResizeObserver.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n```\n\n### Web workers\n\n```javascript\nself.importScripts('https://polyfill.web-cell.dev/feature/Regenerator.js');\n```\n\n## Add more polyfills\n\n1. For **junior engineers**, you can [submit an issue][8] and wait for the maintainer reaction\n2. For **senior engineers**, just [edit the Polyfill files][7], and make a pull request\n3. After your pull request reviewd \u0026 merged, the polyfills will be updated by [GitHub actions][9] automatically\n\n## Host your own mirror\n\n1. Fork [this repository][10]\n2. Replace original **HTTP domain** with yours in [GitHub action configuration][11]\n3. You can replace [GitHub pages][12] with an **Object Storage service** (AWS S3, etc.)\n\n### China mainland\n\nThanks for [KaiYuanShe][13]'s donation, we get a fast local mirror for China mainland:\n\n\u003e https://polyfill.kaiyuanshe.cn/\n\n### Custom examples\n\nEdit `.env` content to fit your situation:\n\n```ini\nWAN_ICON=🇺🇦\nWAN_HOST=https://polyfill.example.ua\nLAN_ICON=🇷🇺\nLAN_HOST=https://polyfill.example.ru\n```\n\nor\n\n```ini\nWAN_ICON=🇰🇷\nWAN_HOST=https://polyfill.example.kr\nLAN_ICON=🇰🇵\nLAN_HOST=https://polyfill.example.kp\n```\n\n## Inspired by\n\n1. https://polyfill.io/\n2. https://polyfiller.kaiyuanshe.cn/\n\n[1]: https://en.wikipedia.org/wiki/Content_delivery_network\n[2]: https://remysharp.com/2010/10/08/what-is-a-polyfill\n[3]: https://www.typescriptlang.org/\n[4]: https://nodejs.org/\n[5]: https://unpkg.com/\n[6]: https://github.com/EasyWebApp/Web-polyfill/actions/workflows/main.yml\n[7]: https://github.dev/EasyWebApp/Web-polyfill/tree/master/source/list\n[8]: https://github.com/EasyWebApp/Web-polyfill/issues/new?assignees=TechQuery\u0026labels=package\u0026template=package.yml\n[9]: https://github.com/features/actions\n[10]: https://github.com/EasyWebApp/Web-polyfill\n[11]: https://github.com/EasyWebApp/Web-polyfill/blob/master/.github/workflows/main.yml#L31\n[12]: https://pages.github.com/\n[13]: https://kaiyuanshe.cn/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasywebapp%2Fweb-polyfill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasywebapp%2Fweb-polyfill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasywebapp%2Fweb-polyfill/lists"}