{"id":21657525,"url":"https://github.com/navix/icong","last_synced_at":"2026-02-12T12:34:10.134Z","repository":{"id":41184567,"uuid":"237412299","full_name":"navix/icong","owner":"navix","description":"🦍 Efficient Angular SVG Icons.","archived":false,"fork":false,"pushed_at":"2023-08-03T14:14:37.000Z","size":997,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-23T16:01:45.485Z","etag":null,"topics":["angular","icons","svg","svg-icons"],"latest_commit_sha":null,"homepage":"","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/navix.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}},"created_at":"2020-01-31T10:58:54.000Z","updated_at":"2025-06-26T11:47:47.000Z","dependencies_parsed_at":"2024-10-10T18:00:49.052Z","dependency_job_id":"4973c6db-8b6a-44f9-ad79-270c11c3af50","html_url":"https://github.com/navix/icong","commit_stats":{"total_commits":37,"total_committers":2,"mean_commits":18.5,"dds":"0.027027027027026973","last_synced_commit":"31e16104f47f3c688b4493585957a55b8137f6f6"},"previous_names":["navix/ikong"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/navix/icong","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navix%2Ficong","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navix%2Ficong/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navix%2Ficong/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navix%2Ficong/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/navix","download_url":"https://codeload.github.com/navix/icong/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navix%2Ficong/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29366358,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["angular","icons","svg","svg-icons"],"created_at":"2024-11-25T09:26:48.481Z","updated_at":"2026-02-12T12:34:10.120Z","avatar_url":"https://github.com/navix.png","language":"TypeScript","readme":"[![npm version](https://badge.fury.io/js/icong.svg)](https://www.npmjs.com/package/icong)\n![CI](https://github.com/navix/icong/actions/workflows/ci.yml/badge.svg)\n\n# 🦍 icong\n\n## Efficient Angular SVG Icons\n\nRenders icons as symbols in the host, and displays them via `use[href]`.\n\nInspired by this article: https://css-tricks.com/too-many-svgs-clogging-up-your-markup-try-use/\n\n**Features:**\n\n* Renders icons only once in the DOM, then re-use.\n* Load SVG by url or use XML directly.\n* Lazy-rendering and lazy-loading.\n* No additional wrapper components, direct access to `svg` element.\n* No magic coloring or sizing.\n* SSR support.\n\n\u003e [StackBlitz demo](https://stackblitz.com/edit/icong-demo?file=src/app/app.component.ts)\n\n## Installation\n\n```\n$ npm i icong\n```\n\n\n## Usage\n\nImport the module.\n\n```\nimport { IconModule } from 'icong';\n...\n@NgModule({\n  imports: [\n    ...\n    IconModule,\n```\n\nPlace host for symbols rendering (in the root or other shared place). It is invisible.\n\n```html\n\u003cicons-host\u003e\u003c/icons-host\u003e\n```\n\nAdd icons to registry.\n\n```typescript\nimport { IconsRegistry } from 'icong';\n...\nconstructor(\n  private iconsRegistry: IconsRegistry,\n) {}\n...\nthis.iconsRegistry.add({name: 'home', xml: '\u003csvg ...'});\nthis.iconsRegistry.add({name: 'star', url: '/assets/icons/star.svg'});\n// or\nthis.iconsRegistry.add([\n  {name: 'home', xml: '\u003csvg ...'},\n  {name: 'star', url: '/assets/icons/star.svg'},\n]);\n```\n\nDisplay icons in a template:\n\n```html\n\u003csvg icon=\"home\"\u003e\u003c/svg\u003e\n\u003csvg icon=\"star\"\u003e\u003c/svg\u003e\n```\n\n### Color\n\nIcong does not apply any additional changes to the `sgv` code or to the wrappers. You need to manage colors yourself.\n\nI prefer to change `fill` attribute in the `svg` from particular color to `currentColor`. \n\n### Size\n\nIcons are too different: in sizes, proportions, boldness etc. Then we need to place them in very different environments.\n\nA non-generalized solution works good here, I prefer to define `svg` sizes in CSS.\n\nYou always can create a wrapper component or directive that will solve exactly your issue.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavix%2Ficong","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnavix%2Ficong","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavix%2Ficong/lists"}