{"id":13789689,"url":"https://github.com/bogeychan/elysia-polyfills","last_synced_at":"2025-07-27T12:30:32.583Z","repository":{"id":154062695,"uuid":"631455330","full_name":"bogeychan/elysia-polyfills","owner":"bogeychan","description":"Collection of experimental Elysia.js polyfills","archived":false,"fork":false,"pushed_at":"2024-05-09T20:48:41.000Z","size":206,"stargazers_count":50,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-18T04:34:19.292Z","etag":null,"topics":["deno","elysia","nodejs","polyfills","shims"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/@bogeychan/elysia-polyfills","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bogeychan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-04-23T04:26:15.000Z","updated_at":"2024-11-10T07:24:54.000Z","dependencies_parsed_at":"2024-01-12T04:17:26.066Z","dependency_job_id":"6f7a7d92-3acc-4ce7-aec5-8c2fe48744f1","html_url":"https://github.com/bogeychan/elysia-polyfills","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/bogeychan%2Felysia-polyfills","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bogeychan%2Felysia-polyfills/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bogeychan%2Felysia-polyfills/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bogeychan%2Felysia-polyfills/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bogeychan","download_url":"https://codeload.github.com/bogeychan/elysia-polyfills/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227802141,"owners_count":17822098,"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":["deno","elysia","nodejs","polyfills","shims"],"created_at":"2024-08-03T22:00:31.813Z","updated_at":"2024-12-02T20:46:22.215Z","avatar_url":"https://github.com/bogeychan.png","language":"TypeScript","funding_links":[],"categories":["Plugins"],"sub_categories":[],"readme":"# @bogeychan/elysia-polyfills\n\nCollection of experimental [Elysia.js](https://elysiajs.com) polyfills:\n\n| Package                                                                      | [Node.js](https://nodejs.org) (v18.16.0) | [Deno](https://deno.land) (1.36.4\u003csup\u003e#1,3\u003c/sup\u003e) |\n| ---------------------------------------------------------------------------- | ---------------------------------------- | ------------------------------------------------- |\n| [elysia](https://npmjs.com/package/elysia) (0.6.19\u003csup\u003e#2\u003c/sup\u003e)             | 🔬                                       | 🔬                                                |\n| [@elysiajs/cors](https://www.npmjs.com/package/@elysiajs/cors) (0.6.0)       | ✅                                       | ✅                                                |\n| [@elysiajs/html](https://www.npmjs.com/package/@elysiajs/html) (0.6.4)       | ✅                                       | ✅                                                |\n| [@elysiajs/bearer](https://www.npmjs.com/package/@elysiajs/bearer) (0.6.0)   | ✅                                       | ✅                                                |\n| [@elysiajs/cookie](https://www.npmjs.com/package/@elysiajs/cookie) (0.6.1)   | ✅                                       | ✅                                                |\n| [@elysiajs/swagger](https://www.npmjs.com/package/@elysiajs/swagger) (0.6.1) | ✅                                       | ✅                                                |\n| [@elysiajs/static](https://www.npmjs.com/package/@elysiajs/static) (0.6.0)   | ✅                                       | ✅                                                |\n| ...                                                                          | ...                                      | ...                                               |\n\n**_Legend_**\n\n🔬 - Under testing\n\n✅ - Fully supported\n\n⚠️ - Partial supported\n\n❌ - Unsupported\n\n## 🚩Notes\n\n\u003csup\u003e#1\u003c/sup\u003e With release [1.33.0](https://github.com/denoland/deno/releases/tag/v1.33.0), `Deno` introduced a new way to resolve `node_modules` dependencies. You need to update `@bogeychan/elysia-polyfills` to at least version `0.0.7` in order to be compatible.\n\n\u003csup\u003e#2\u003c/sup\u003e With version [0.5.15](https://github.com/elysiajs/elysia/issues/50), `Elysia.js` supports `CommonJS`. Therefore, a build step is no longer required. The plugins listed above can be used out of the box for `ESM` and `CommonJS` projects.\n\n\u003csup\u003e#3\u003c/sup\u003e With release [1.35.0](https://github.com/denoland/deno/releases/tag/v1.35.0), `Deno` stabilized the `Deno.serve()` API. From now on `Deno.serve()` is used instead of the [Deno Standard Modules](https://github.com/denoland/deno_std).\n\n## Installation\n\n```bash\nyarn add @bogeychan/elysia-polyfills\n```\n\n## Usage\n\nCheckout the [examples](./examples) folder on Github and follow its setup guide.\n\n**_OR_** use an [Elysia.js scaffold](https://www.npmjs.com/package/create-elysia).\n\n### Node.js\n\n```ts\nimport '@bogeychan/elysia-polyfills/node/index.js';\n\nimport { Elysia } from 'elysia';\n\nnew Elysia().get('/', () =\u003e ({ hello: 'Node.js👋' })).listen(8080);\n```\n\nCreate a new `Node.js` project:\n\n```bash\nnpm create elysia@latest my-elysia-app --template node-ts\n```\n\n### Deno\n\n```ts\nimport 'npm:@bogeychan/elysia-polyfills/deno/index.js';\n\nimport { Elysia } from 'npm:elysia';\n\nnew Elysia().get('/', () =\u003e ({ hello: 'Deno👋' })).listen(8080);\n```\n\nCreate a new `Deno` project:\n\n```bash\ndeno run -r=npm:create-elysia --allow-read --allow-write npm:create-elysia my-elysia-app --template deno\n```\n\n## Author\n\n[bogeychan](https://github.com/bogeychan)\n\n## License\n\n[MIT](LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbogeychan%2Felysia-polyfills","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbogeychan%2Felysia-polyfills","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbogeychan%2Felysia-polyfills/lists"}