{"id":16791972,"url":"https://github.com/metonym/svelte-octicons","last_synced_at":"2026-02-14T22:13:43.107Z","repository":{"id":38354853,"uuid":"258051919","full_name":"metonym/svelte-octicons","owner":"metonym","description":"GitHub Octicons as Svelte components","archived":false,"fork":false,"pushed_at":"2025-05-22T18:07:55.000Z","size":1887,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-23T00:12:07.257Z","etag":null,"topics":["github","icon-library","icons","octicons","primer","svelte","svelte-component","svelte-components","svg","typescript-definitions"],"latest_commit_sha":null,"homepage":"https://metonym.github.io/svelte-octicons/","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/metonym.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":"2020-04-23T00:23:48.000Z","updated_at":"2025-05-22T18:07:59.000Z","dependencies_parsed_at":"2024-06-20T06:31:33.715Z","dependency_job_id":"dbd617ab-8bf8-4eb7-8710-df4bf28f4d0d","html_url":"https://github.com/metonym/svelte-octicons","commit_stats":{"total_commits":157,"total_committers":3,"mean_commits":"52.333333333333336","dds":0.09554140127388533,"last_synced_commit":"43f5b93277d4d794729cc0b1f1d531503c68c257"},"previous_names":[],"tags_count":58,"template":false,"template_full_name":null,"purl":"pkg:github/metonym/svelte-octicons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metonym%2Fsvelte-octicons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metonym%2Fsvelte-octicons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metonym%2Fsvelte-octicons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metonym%2Fsvelte-octicons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metonym","download_url":"https://codeload.github.com/metonym/svelte-octicons/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metonym%2Fsvelte-octicons/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263234952,"owners_count":23434919,"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":["github","icon-library","icons","octicons","primer","svelte","svelte-component","svelte-components","svg","typescript-definitions"],"created_at":"2024-10-13T08:43:43.415Z","updated_at":"2026-02-14T22:13:43.103Z","avatar_url":"https://github.com/metonym.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svelte-octicons\n\n[![NPM][npm]][npm-url]\n\n\u003e GitHub Octicons as Svelte components.\n\n\u003c!-- REPO_URL --\u003e\n\nThis library builds [GitHub Primer Octicons](https://primer.style/octicons/) as Svelte components with zero dependencies.\n\nTry it in the [Svelte REPL](https://svelte.dev/repl/dce762f9a93c4e56b3ddde749cb1945f).\n\n---\n\n\u003c!-- TOC --\u003e\n\n## Installation\n\n```sh\n# npm\nnpm i svelte-octicons\n\n# pnpm\npnpm i svelte-octicons\n\n# Bun\nbun i svelte-octicons\n\n# Yarn\nyarn add svelte-octicons\n```\n\n## Usage\n\nRefer to [ICON_INDEX.md](./ICON_INDEX.md) for a list of available icons.\n\n### Base import\n\n`$$restProps` are forwarded to the `svg` element.\n\n```svelte\n\u003cscript\u003e\n  import { Alert16, Diamond16, Rocket16, Video16 } from \"svelte-octicons\";\n\u003c/script\u003e\n\n\u003cAlert16 /\u003e\n\u003cDiamond16 /\u003e\n\u003cRocket16 /\u003e\n\u003cVideo16 /\u003e\n```\n\n### Custom fill\n\n```svelte\n\u003cAlert16 fill=\"red\" /\u003e\n```\n\n## Usage with `svelte:component`\n\n```svelte\n\u003cscript\u003e\n  import * as Octicons from \"svelte-octicons\";\n\u003c/script\u003e\n\n{#each Object.entries(Octicons) as [octicon, component]}\n  \u003cdiv\u003e\n    \u003csvelte:component this={component} /\u003e\n    {octicon}\n  \u003c/div\u003e\n{/each}\n```\n\n## TypeScript\n\nSvelte version 3.31 or greater is required to use this library with TypeScript.\n\n## Changelog\n\n[Changelog](./CHANGELOG.md)\n\n## License\n\n[MIT](LICENSE)\n\n[npm]: https://img.shields.io/npm/v/svelte-octicons.svg?color=%23ff3e00\u0026style=for-the-badge\n[npm-url]: https://npmjs.com/package/svelte-octicons\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetonym%2Fsvelte-octicons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetonym%2Fsvelte-octicons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetonym%2Fsvelte-octicons/lists"}