{"id":26825088,"url":"https://github.com/chancehudson/cidbadge","last_synced_at":"2026-02-27T08:33:06.446Z","repository":{"id":57198804,"uuid":"165836270","full_name":"chancehudson/cidbadge","owner":"chancehudson","description":"svg badges for ipfs content identifiers","archived":false,"fork":false,"pushed_at":"2021-10-08T02:03:24.000Z","size":7,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-23T22:02:55.591Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chancehudson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-15T11:05:10.000Z","updated_at":"2025-10-04T22:47:37.000Z","dependencies_parsed_at":"2022-09-16T14:11:48.073Z","dependency_job_id":null,"html_url":"https://github.com/chancehudson/cidbadge","commit_stats":null,"previous_names":["jchancehud/cidbadge","chancehudson/cidbadge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chancehudson/cidbadge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chancehudson%2Fcidbadge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chancehudson%2Fcidbadge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chancehudson%2Fcidbadge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chancehudson%2Fcidbadge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chancehudson","download_url":"https://codeload.github.com/chancehudson/cidbadge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chancehudson%2Fcidbadge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29888177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T07:54:54.515Z","status":"ssl_error","status_checked_at":"2026-02-27T07:54:49.177Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2025-03-30T10:19:11.087Z","updated_at":"2026-02-27T08:33:06.429Z","avatar_url":"https://github.com/chancehudson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cidbadge\n\nGenerate svg badges for IPFS content identifiers.\n\n## Example Use\n\nInstall with `npm install --save cidbadge`.\n\n```js\nimport cidbadge from 'cidbadge';\n\n// the cid to render\nconst cid = 'QmWiNATFRiqGd1daYhno5DuHRCgJivQrRSToKW18GsHf9e';\n// options are optional, only cid is required\nconst options = {\n  targetLength: 12,\n  href: `https://ipfs.io/ipfs/${cid}`\n};\n// Generated svg string\nconst svg = cidbadge(cid, options);\nconsole.log(svg);\n```\n\nThis will output the following svg text:\n\n```svg\n\u003csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"147\" height=\"20\"\u003e\\n  \u003ca href=\"https://ipfs.io/ipfs/QmWiNATFRiqGd1daYhno5DuHRCgJivQrRSToKW18GsHf9e\" target=\"_blank\"\u003e\\n    \u003clinearGradient id=\"b\" x2=\"0\" y2=\"100%\"\u003e\\n      \u003cstop offset=\"0\" stop-color=\"#bbb\" stop-opacity=\".1\"/\u003e\\n      \u003cstop offset=\"1\" stop-opacity=\".1\"/\u003e\\n    \u003c/linearGradient\u003e\\n    \u003cmask id=\"a\"\u003e\\n      \u003crect width=\"147\" height=\"20\" rx=\"3\" fill=\"#fff\"/\u003e\\n    \u003c/mask\u003e\\n    \u003cg mask=\"url(#a)\"\u003e\\n      \u003cpath fill=\"#555\" d=\"M0 0h27v20H0z\"/\u003e\\n      \u003cpath fill=\"#2EC8F7\" d=\"M27 0h120v20H27z\"/\u003e\\n      \u003cpath fill=\"url(#b)\" d=\"M0 0h147v20H0z\"/\u003e\\n    \u003c/g\u003e\\n    \u003cg fill=\"#fff\" text-anchor=\"middle\" font-family=\"Verdana,DejaVu Sans,Geneva,sans-serif\" font-size=\"11\"\u003e\\n      \u003ctext x=\"13.5\" y=\"15\" fill=\"#010101\" fill-opacity=\".3\"\u003ecid\u003c/text\u003e\\n      \u003ctext x=\"13.5\" y=\"14\"\u003ecid\u003c/text\u003e\\n      \u003ctext x=\"87\" y=\"15\" fill=\"#010101\" fill-opacity=\".3\"\u003eQmWiNA...8GsHf9\u003c/text\u003e\\n      \u003ctext x=\"87\" y=\"14\"\u003eQmWiNA...8GsHf9\u003c/text\u003e\\n    \u003c/g\u003e\\n  \u003c/a\u003e\\n\u003c/svg\u003e\n```\n\nRenders as the following:\n![](https://raw.githubusercontent.com/JChanceHud/cidbadge/master/badge.svg?sanitize=true)\n\n## CLI Use\n\n`npx cidbadge /ipfs/QmWiNATFRiqGd1daYhno5DuHRCgJivQrRSToKW18GsHf9e ./badge.svg`\n\n```\nUsage: cidbadge \u003cipfs path|cid\u003e \u003coutput path\u003e\n\nOutputs an SVG badge with the cid text supplied.\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchancehudson%2Fcidbadge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchancehudson%2Fcidbadge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchancehudson%2Fcidbadge/lists"}