{"id":28004000,"url":"https://github.com/johnbillion/ghsvg","last_synced_at":"2026-03-09T15:33:06.415Z","repository":{"id":254415623,"uuid":"846467050","full_name":"johnbillion/ghsvg","owner":"johnbillion","description":"GitHub Sponsors SVG","archived":false,"fork":false,"pushed_at":"2025-04-21T09:14:01.000Z","size":180,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-28T20:51:37.347Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@johnbillion/ghsvg","language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"shivammathur/ghsvg","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnbillion.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,"zenodo":null},"funding":{"github":"johnbillion"}},"created_at":"2024-08-23T09:16:28.000Z","updated_at":"2025-05-10T09:52:22.000Z","dependencies_parsed_at":"2025-05-09T02:39:33.773Z","dependency_job_id":null,"html_url":"https://github.com/johnbillion/ghsvg","commit_stats":null,"previous_names":["johnbillion/ghsvg"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/johnbillion/ghsvg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnbillion%2Fghsvg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnbillion%2Fghsvg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnbillion%2Fghsvg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnbillion%2Fghsvg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnbillion","download_url":"https://codeload.github.com/johnbillion/ghsvg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnbillion%2Fghsvg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30301109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T14:33:48.460Z","status":"ssl_error","status_checked_at":"2026-03-09T14:33:48.027Z","response_time":61,"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":[],"created_at":"2025-05-09T02:38:14.780Z","updated_at":"2026-03-09T15:33:06.407Z","avatar_url":"https://github.com/johnbillion.png","language":"TypeScript","funding_links":["https://github.com/sponsors/johnbillion"],"categories":[],"sub_categories":[],"readme":"# GHSVG\n\nCreate an SVG of your GitHub Sponsors\n\n\u003ca href=\"https://github.com/sponsors/johnbillion\"\u003e\u003cimg src=\"https://cdn.jsdelivr.net/gh/johnbillion/johnbillion@latest/sponsors.svg\" alt=\"Sponsor johnbillion\"\u003e\u003c/a\u003e\n\n## Install\n```bash\nnpm install --save-dev @johnbillion/ghsvg\n```\n\n## Configure\n\n- Create a `.env` file if you don't already have one in your project, and set the `GITHUB_TOKEN` in it.\n```dotenv\nGITHUB_TOKEN=ghp_xxx\n```\n\n- Create a configuration file.\n\nConfiguration file can be \n  - A `.ghsrc` file written in JSON or YAML.\n  - A `.ghsrc.json`, `.ghsrc.yml`, `.ghsrc.yaml`, or `.ghsrc.json5` file.\n  - A `.ghsrc.js`, `.ghsrc.cjs` or `.ghsrc.mjs` file that exports an object.\n  - A `.ghsrc.toml` file.\n\n### Configuration\n\n#### Required\n\n- `username`: The GitHub user or organization for fetching the sponsors.\n\n#### Optional\n\n- `outFile`: The output SVG file.\n- `otherSponsors`: A newline separated file with sponsors from sources other than GitHub Sponsors.\n- `range`: The dollar amount range of sponsorships you want to include.\n- `monthlyTiersRange`: Specify a different range for monthly sponsorships you want to include.\n- `oneTimeTiersRange`: Specify a different range for one-time sponsorships you want to include.\n- `customAmountRange`: Specify a different range for custom amount sponsorships you want to include.\n- `svgWidth`: The total width of the SVG (in px).\n- `svgImageWidth`: The width of each image in the SVG (in px).\n- `svgImageSpace`: The space between each image in the SVG (in px).\n- `quiet`: No Output\n\n**Note:** Since the sponsorship amount is not public, if you are creating the SVG for an account other than yours, the ranges will have no effect and all sponsors will be included.\n\n#### Example configurations\n\n##### .ghsrc.json or .ghsrc.json5\n```json\n{\n  \"username\": \"johnbillion\",\n  \"outFile\": \"sponsors.svg\",\n  \"range\": [1, 12000],\n  \"svgWidth\": 1024,\n  \"svgImageWidth\": 64\n}\n```\n\n##### .ghsrc.js or .ghsrc.cjs\n```javascript\nmodule.exports = {\n  \"username\": \"johnbillion\",\n  \"outFile\": \"sponsors.svg\",\n  \"range\": [1, 12000],\n  \"svgWidth\": 1024,\n  \"svgImageWidth\": 64,\n};\n```\n\n##### .ghsrc or .ghsrc.yaml\n```yaml\nusername: johnbillion\noutFile: sponsors.svg\nrange: [1, 12000]\nsvgWidth: 1024\nsvgImageWidth: 64\n```\n\n##### .ghsrc.toml\n```toml\nusername = \"johnbillion\"\noutFile = \"sponsors.svg\"\nrange = [ 1, 12_000 ]\nsvgWidth = 1_024\nsvgImageWidth = 64\n```\n\n### Run\n\n```bash\nnpx ghsvg\n```\n\nIn addition to using a configuration file, you can also specify the configuration options in the CLI. To see available options:\n\n```bash\nnpx ghsvg --help\n```\n\n## History\n\nThis package originated as a fork of [GHSVG by Shivam Mathur](https://github.com/shivammathur/ghsvg). Thanks Shivam!\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnbillion%2Fghsvg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnbillion%2Fghsvg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnbillion%2Fghsvg/lists"}