{"id":21995276,"url":"https://github.com/tsmetadata/polyfill","last_synced_at":"2026-02-07T03:01:06.173Z","repository":{"id":261164505,"uuid":"883445416","full_name":"tsmetadata/polyfill","owner":"tsmetadata","description":"Metadata symbol polyfill for legacy runtimes.","archived":false,"fork":false,"pushed_at":"2024-11-15T03:58:18.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-23T12:14:20.354Z","etag":null,"topics":["metadata","polyfill","symbol","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@tsmetadata/polyfill","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/tsmetadata.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2024-11-05T01:20:05.000Z","updated_at":"2025-04-16T02:09:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"5afb3473-36b6-49fc-8a06-a80a454378cf","html_url":"https://github.com/tsmetadata/polyfill","commit_stats":null,"previous_names":["tsmetadata/polyfill"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/tsmetadata/polyfill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsmetadata%2Fpolyfill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsmetadata%2Fpolyfill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsmetadata%2Fpolyfill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsmetadata%2Fpolyfill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsmetadata","download_url":"https://codeload.github.com/tsmetadata/polyfill/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsmetadata%2Fpolyfill/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29185108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T00:44:15.062Z","status":"online","status_checked_at":"2026-02-07T02:00:07.217Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["metadata","polyfill","symbol","typescript"],"created_at":"2024-11-29T21:13:53.316Z","updated_at":"2026-02-07T03:01:06.154Z","avatar_url":"https://github.com/tsmetadata.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `Symbol.metadata` Polyfill\n\n`@tsmetadata/polyfill` provides the necessary polyfill for legacy runtimes to properly use decorator metadata in TypeScript 5.2+.\n\nIn addition, the library provides the necessary global type declaration for `Symbol.metadata`.\n\n- [🌱 Install](#-install)\n- [⚙️ Usage](#️-usage)\n- [🙏 Thanks](#-thanks)\n\n## 🌱 Install\n```bash\nnpm install @tsmetadata/polyfill\n```\n\n## ⚙️ Usage\nAs early as possible, import the polyfill.\n```typescript\nimport '@tsmetadata/polyfill';\n```\n\nAfter doing so, `Symbol.metadata` will be defined.\n\nYou may also need to configure your `tsconfig.json` to target \u003c= ES2022 and include the `esnext.decorators` library. The easiest way to do this is to extend our included polyfill-ready configuration.\n\n```json\n{\n  \"$schema\": \"https://json.schemastore.org/tsconfig\",\n  \"extends\": [\"@tsmetadata/polyfill/lib/tsconfig.polyfill.json\"],\n}\n```\n\n## 🙏 Thanks\n\nSpecial thanks to Oleksandr Tarasiuk for implementing decorator metadata and to Andrew Branch for releasing an early version of this polyfill.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsmetadata%2Fpolyfill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsmetadata%2Fpolyfill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsmetadata%2Fpolyfill/lists"}