{"id":44726785,"url":"https://github.com/onfido/castor-icons","last_synced_at":"2026-02-15T17:50:16.324Z","repository":{"id":36983649,"uuid":"315892303","full_name":"onfido/castor-icons","owner":"onfido","description":"Collection of icons for Castor published as SVGs and React components","archived":false,"fork":false,"pushed_at":"2024-04-11T14:02:59.000Z","size":4414,"stargazers_count":14,"open_issues_count":19,"forks_count":2,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-10-19T08:37:10.831Z","etag":null,"topics":["castor","react-icons","svg-icons"],"latest_commit_sha":null,"homepage":"https://castor-icons.vercel.app","language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onfido.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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-11-25T09:38:00.000Z","updated_at":"2024-09-22T18:16:15.000Z","dependencies_parsed_at":"2024-04-11T11:24:48.089Z","dependency_job_id":"095fc983-e9ad-4ac4-a496-29c8e0d686e4","html_url":"https://github.com/onfido/castor-icons","commit_stats":{"total_commits":794,"total_committers":13,"mean_commits":61.07692307692308,"dds":0.2128463476070529,"last_synced_commit":"9a770946cffee68bfa6e893a22441870d74dbdda"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/onfido/castor-icons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onfido%2Fcastor-icons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onfido%2Fcastor-icons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onfido%2Fcastor-icons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onfido%2Fcastor-icons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onfido","download_url":"https://codeload.github.com/onfido/castor-icons/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onfido%2Fcastor-icons/sbom","scorecard":{"id":707251,"data":{"date":"2025-08-11","repo":{"name":"github.com/onfido/castor-icons","commit":"7a273986493501ebc65d8e9a1deea95beb94c6a7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/lint.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":5,"reason":"dependency not pinned by hash detected -- score normalized to 5","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/onfido/castor-icons/lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/onfido/castor-icons/lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/onfido/castor-icons/lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/onfido/castor-icons/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/onfido/castor-icons/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/onfido/castor-icons/publish.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/onfido/castor-icons/publish.yml/main?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T07:02:05.023Z","repository_id":36983649,"created_at":"2025-08-22T07:02:05.023Z","updated_at":"2025-08-22T07:02:05.023Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29486040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T15:33:17.885Z","status":"ssl_error","status_checked_at":"2026-02-15T15:32:53.698Z","response_time":118,"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":["castor","react-icons","svg-icons"],"created_at":"2026-02-15T17:50:15.718Z","updated_at":"2026-02-15T17:50:16.318Z","avatar_url":"https://github.com/onfido.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Castor Icons\n\n[![npm version](https://badgen.net/npm/v/@onfido/castor-icons)](https://www.npmjs.com/package/@onfido/castor-icons)\n[![Bundle size](https://badgen.net/bundlephobia/minzip/@onfido/castor-icons)](https://bundlephobia.com/result?p=@onfido/castor-icons)\n\nThis is _Castor_ addition providing a collection of selected [Boxicons](https://boxicons.com/) and custom icons.\n\n## Get started\n\nInstall package:\n\n    npm install @onfido/castor-icons\n\nThen make icons available by following either plain/bundled code approach, or by using React components.\n\n### Use with plain code\n\nWhen referring to a fragment identifier for an icon to be used, a link is made to `icons.svg` sprite through the `\u003cuse\u003e` element. The sprite must be public, copy it from `svg` directory of this package, or configure the bundler to do so.\n\nStraight after this you can easily add an icon to your HTML code, e.g. \"passport\" if copied to same `.castor-icons` directory:\n\n```html\n\u003csvg fill=\"currentColor\" focusable=\"false\" height=\"24\" width=\"24\"\u003e\n  \u003cuse href=\"/.castor-icons/icons.svg#passport\"\u003e\u003c/use\u003e\n\u003c/svg\u003e\n```\n\n### Use with bundled code\n\nImport sprite source to be used when referring to a fragment identifier for icon in JavaScript, like such:\n\n```js\nimport icons from '@onfido/castor-icons/svg/icons.svg';\n\ndocument.body.innerHTML = `\n  \u003csvg fill=\"currentColor\" focusable=\"false\" height=\"24\" width=\"24\"\u003e\n    \u003cuse href=\"${icons}#passport\"\u003e\u003c/use\u003e\n  \u003c/svg\u003e\n`;\n```\n\nYour bundler must handle the `icons.svg` sprite asset for it to be available to public. For example, [Parcel](https://parceljs.org/) will do this for you automatically, but if you're using [webpack](https://webpack.js.org/) then you should add and configure an additional loader like [file-loader](https://webpack.js.org/loaders/file-loader/) to handle svg file type.\n\n### Use React components\n\nEvery SVG icon is also exported as React component, e.g. \"passport\":\n\n```jsx\nimport { IconPassport } from '@onfido/castor-icons';\nimport React, { Fragment } from 'react';\n\nconst Component = () =\u003e (\n  \u003cFragment\u003e\n    \u003cIconPassport /\u003e\n    {/* ...anything else e.g. text */}\n  \u003c/Fragment\u003e\n);\n```\n\nYou may modify SVG appearance by passing component props such as \"fill\" for changing color (defaults to \"currentColor\"), or sizing with \"height\" and \"width\".\n\nBut if you prefer to use a sprite, feel free to (only once) inline it in your app using the `Icons` component:\n\n```jsx\nimport { Icons } from '@onfido/castor-icons';\nimport React, { Fragment } from 'react';\n\nconst App = () =\u003e (\n  \u003cFragment\u003e\n    \u003cIcons /\u003e\n    {/* ...anything else e.g. app routes */}\n  \u003c/Fragment\u003e\n);\n```\n\nThen refer to a fragment identifier directly without setting any sprite source, like this:\n\n```jsx\nconst IconPassport = () =\u003e (\n  \u003csvg fill=\"currentColor\" focusable=\"false\" height=\"24\" width=\"24\"\u003e\n    \u003cuse href=\"#passport\"\u003e\u003c/use\u003e\n  \u003c/svg\u003e\n);\n```\n\n### Use individual SVG icons (advanced)\n\nThe nature of an `\u003csvg\u003e` element does not allow to embed individual icons, unfortunately.\n\nTo use individual SVGs (also distributed within this package) one possible solution is to use [CSS Masks](https://developer.mozilla.org/docs/Web/CSS/mask), e.g. for \"passport\" icon:\n\n```css\n.icon-passport {\n  display: inline-block;\n  height: 24px;\n  width: 24px;\n  mask: url('~@onfido/castor-icons/svg/icon-passport.svg') no-repeat;\n  mask-size: 100%;\n  background-color: currentColor;\n}\n```\n\nThen you're able to use such directly in your HTML:\n\n```html\n\u003ci class=\"icon-passport\"\u003e\u003c/i\u003e\n```\n\nPlease keep in mind that the [browser support](https://caniuse.com/#feat=css-masks) is somewhat limited.\n\n### Improve accessibility\n\n- Focus handling is broken in IE and Edge browsers. When embedding via an `\u003csvg\u003e` element, we recommend to set `focusable=\"false\"`.\n\n- Be mindful of screen readers by applying the appropriate `aria-` attributes depending on each icon context and intent, for example `aria-hidden` or `aria-label`.\n\n- [Learn more about accessibility quirks](https://simplyaccessible.com/article/7-solutions-svgs/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonfido%2Fcastor-icons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonfido%2Fcastor-icons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonfido%2Fcastor-icons/lists"}