{"id":20461351,"url":"https://github.com/antvis/thumbnails","last_synced_at":"2025-08-23T06:02:27.852Z","repository":{"id":46012252,"uuid":"315604239","full_name":"antvis/thumbnails","owner":"antvis","description":"Thumbnail images for different chart types from Chart Knowledge Base.","archived":false,"fork":false,"pushed_at":"2021-11-20T12:09:29.000Z","size":178,"stargazers_count":2,"open_issues_count":7,"forks_count":3,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-08-08T09:40:26.719Z","etag":null,"topics":[],"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/antvis.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}},"created_at":"2020-11-24T10:59:33.000Z","updated_at":"2021-11-20T12:09:32.000Z","dependencies_parsed_at":"2022-09-14T11:13:05.611Z","dependency_job_id":null,"html_url":"https://github.com/antvis/thumbnails","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/antvis/thumbnails","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antvis%2Fthumbnails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antvis%2Fthumbnails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antvis%2Fthumbnails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antvis%2Fthumbnails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antvis","download_url":"https://codeload.github.com/antvis/thumbnails/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antvis%2Fthumbnails/sbom","scorecard":{"id":199950,"data":{"date":"2025-08-11","repo":{"name":"github.com/antvis/thumbnails","commit":"f6704ecf64048343e747e68c42b06f34b45635d5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"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/automerge.yml:1","Warn: no topLevel permission defined: .github/workflows/update-chart.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":"Code-Review","score":1,"reason":"Found 3/19 approved changesets -- score normalized to 1","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":"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":"Dangerous-Workflow","score":0,"reason":"dangerous workflow patterns detected","details":["Warn: script injection with untrusted input ' github.head_ref ': .github/workflows/update-chart.yml:189"],"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/automerge.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/antvis/thumbnails/automerge.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-chart.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/antvis/thumbnails/update-chart.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-chart.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/antvis/thumbnails/update-chart.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-chart.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/antvis/thumbnails/update-chart.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-chart.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/antvis/thumbnails/update-chart.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-chart.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/antvis/thumbnails/update-chart.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-chart.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/antvis/thumbnails/update-chart.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-chart.yml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/antvis/thumbnails/update-chart.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-chart.yml:86: update your workflow using https://app.stepsecurity.io/secureworkflow/antvis/thumbnails/update-chart.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-chart.yml:113: update your workflow using https://app.stepsecurity.io/secureworkflow/antvis/thumbnails/update-chart.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-chart.yml:144: update your workflow using https://app.stepsecurity.io/secureworkflow/antvis/thumbnails/update-chart.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-chart.yml:160: update your workflow using https://app.stepsecurity.io/secureworkflow/antvis/thumbnails/update-chart.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-chart.yml:198: update your workflow using https://app.stepsecurity.io/secureworkflow/antvis/thumbnails/update-chart.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/update-chart.yml:151","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  10 third-party GitHubAction dependencies pinned","Info:   1 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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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":"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 23 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"}}]},"last_synced_at":"2025-08-16T22:38:34.138Z","repository_id":46012252,"created_at":"2025-08-16T22:38:34.138Z","updated_at":"2025-08-16T22:38:34.138Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271246624,"owners_count":24725899,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","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":[],"created_at":"2024-11-15T12:24:57.137Z","updated_at":"2025-08-23T06:02:27.772Z","avatar_url":"https://github.com/antvis.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AntV/Thumbnails\n\nThumbnail images for different chart types from [CKB](https://github.com/antvis/AVA/tree/master/packages/knowledge).\n\n\u003c!-- THE PREVIEW PARTS BELOW ARE GENERATED BY SCRIPTS. DON'T TOUCH! --\u003e\n\u003c!-- PREVIEW START --\u003e\n\n\u003cdiv style=\"display: flex; flex-flow: row wrap;\"\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/area_chart.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/bar_chart.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/bubble_chart.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/column_chart.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/donut_chart.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/grouped_bar_chart.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/grouped_column_chart.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/heatmap.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/histogram.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/line_chart.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/percent_stacked_area_chart.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/percent_stacked_bar_chart.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/percent_stacked_column_chart.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/pie_chart.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/radar_chart.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/scatter_plot.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/stacked_area_chart.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/stacked_bar_chart.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n  \u003ckbd\u003e\u003cimg src=\"https://github.com/antvis/thumbnails/blob/master/packages/core/src/generated/svgs/stacked_column_chart.svg\" width=\"200\" height=\"200\"\u003e\u003c/kbd\u003e\n\u003c/div\u003e\n\n\u003c!-- PREVIEW END --\u003e\n\n## Usage\n\n### Use as Data in Object\n\n```ts\nimport Thumbnails from '@antv/thumbnails';\n\nif (Thumbnails.pie_chart) {\n  const { id, name, svgCode } = Thumbnails.pie_chart;\n  console.log(id, name, svgCode);\n}\n});\n```\n\n```ts\nimport { BAR_CHART } from '@antv/thumbnails';\n\nconst { id, name, svgCode } = BAR_CHART;\nconsole.log(id, name, svgCode);\n```\n\nThe ChartIDs are listed in: [AVA/CKB](https://github.com/antvis/AVA/blob/master/packages/knowledge/src/chartID.ts).\n\n### Use as React Component\n\n```tsx\nimport Thumbnails, { Thumbnail, PIE_CHART } from '@antv/thumbnails';\n\n// Thumbnail is the React Component\n// ...\n\n  // define a chart id from 'AVA/CKB'\n  \u003cThumbnail chart={'pie_chart'} /\u003e\n\n  // get the svg code from Thumbnails object\n  \u003cThumbnail svg={Thumbnails.pie_chart.svgCode} /\u003e\n\n  // get the svg code from specific chart thumbnail object\n  \u003cThumbnail svg={PIE_CHART.svgCode} /\u003e\n\n  // with other img HTML attributes\n  \u003cThumbnail chart={'pie_chart'} alt={'pie'} width={80} /\u003e\n```\n\nFor example:\n\n```tsx\nimport * as React from 'react';\n\nimport Thumbnails, { Thumbnail } from '@antv/thumbnails';\n\nclass App extends React.Component\u003c{}\u003e {\n  constructor(props: {}) {\n    super(props);\n  }\n\n  public render() {\n    return (\n      \u003cdiv className=\"symbols\"\u003e\n        {Object.keys(Thumbnails).map((chart) =\u003e {\n          const { svgCode, name } = Thumbnails[chart];\n          return (\n            \u003cdiv className=\"symbol-img-container\"\u003e\n              \u003cThumbnail svg={svgCode} alt={name} width={200} /\u003e\n            \u003c/div\u003e\n          );\n        })}\n      \u003c/div\u003e\n    );\n  }\n}\n\nexport default App;\n```\n\n## Development\n\nRun this command to setup all:\n\n```bash\nnpm run one-stop-setup\n```\n\nRun this command and then visit \u003chttp://localhost:8299/\u003e.\n\n```bash\nnpm run start:demo\n```\n\nIf you can see the demo page well, it means that all setups have been successfully completed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantvis%2Fthumbnails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantvis%2Fthumbnails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantvis%2Fthumbnails/lists"}