{"id":15629692,"url":"https://github.com/anko/svg-pizzabase","last_synced_at":"2026-02-17T03:03:27.110Z","repository":{"id":37883912,"uuid":"50852396","full_name":"anko/svg-pizzabase","owner":"anko","description":"tool to run DOM-modifying JS and extract the resulting SVG","archived":false,"fork":false,"pushed_at":"2023-07-18T21:22:18.000Z","size":125,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T16:53:49.734Z","etag":null,"topics":["boilerplate","data-visualisation","tool"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anko.png","metadata":{"files":{"readme":"readme.markdown","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}},"created_at":"2016-02-01T16:19:35.000Z","updated_at":"2021-06-02T19:46:46.000Z","dependencies_parsed_at":"2023-11-27T16:01:06.996Z","dependency_job_id":"6000054d-3261-4ed7-a916-3a99fea6999f","html_url":"https://github.com/anko/svg-pizzabase","commit_stats":{"total_commits":29,"total_committers":2,"mean_commits":14.5,"dds":"0.13793103448275867","last_synced_commit":"f207764e2353af6b14eaf02cf803357c575a4ec5"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/anko/svg-pizzabase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anko%2Fsvg-pizzabase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anko%2Fsvg-pizzabase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anko%2Fsvg-pizzabase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anko%2Fsvg-pizzabase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anko","download_url":"https://codeload.github.com/anko/svg-pizzabase/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anko%2Fsvg-pizzabase/sbom","scorecard":{"id":197310,"data":{"date":"2025-08-11","repo":{"name":"github.com/anko/svg-pizzabase","commit":"f207764e2353af6b14eaf02cf803357c575a4ec5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","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":"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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"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":-1,"reason":"no workflows found","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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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: ISC 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":"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":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"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-16T22:03:59.203Z","repository_id":37883912,"created_at":"2025-08-16T22:03:59.203Z","updated_at":"2025-08-16T22:03:59.203Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004073,"owners_count":26083665,"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-10-10T02:00:06.843Z","response_time":62,"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":["boilerplate","data-visualisation","tool"],"created_at":"2024-10-03T10:28:11.022Z","updated_at":"2025-10-10T13:17:21.679Z","avatar_url":"https://github.com/anko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svg-pizzabase [![](https://img.shields.io/npm/v/svg-pizzabase.svg?style=flat-square)][1] [![](https://img.shields.io/travis/anko/svg-pizzabase.svg?style=flat-square)][2] [![](https://img.shields.io/david/anko/svg-pizzabase.svg?style=flat-square)][3]\n\nScript to help create SVG visualisations from JavaScript code; headlessly and\nserver-side.  Like a ready-made pizza-base: add toppings and bake.\n\n    npm i -g svg-pizzabase\n\n## How\n\nPass client JavaScript on `stdin`.  In that script, append stuff to the\n`svg#vis` element present on the page.\n\nWhen that script finishes running, the SVG element is extracted, the proper\ndoctype stuff added, and the finished SVG is printed on `stdout`.\n\nFor example:\n\n\u003c!-- !test program node ./index.js --\u003e\n\n`vis.js`:\n\n\u003c!-- !test in example --\u003e\n\n```js\nvar vis = document.getElementById('vis')\nvar rect = vis.appendChild(document.createElement('rect'))\nrect.setAttribute('width', 50)\nrect.setAttribute('height', 50)\n```\n\nRun in a terminal:\n\n    svg-pizzabase \u003c vis.js \u003e output.svg\n\n\u003c!-- !test out example --\u003e\n\n`output.svg`:\n\n```svg\n\u003c?xml version=\"1.0\" standalone=\"no\"?\u003e\n\u003c!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"\u003e\n\u003csvg id=\"vis\"\u003e\u003crect width=\"50\" height=\"50\"\u003e\u003c/rect\u003e\u003c/svg\u003e\n```\n\nIf you need the SVG element to be a particular size, just change select it and\nchange its `width` and `height` attributes it in your code.\n\nWorks brilliantly with [browserify][4] (or [webpack][5], or another bundler) to\nget [D3][6] (or whatever other JS library you want to use) into the same file\nfor writing to stdin.\n\n## Why\n\nI often draw stuff to clarify [my Game Development SE answers][7].  Sometimes\nit's convenient to draw with [D3][8] code.  This eases that.  Give it code and\nit will give you a picture.\n\n## Bonus tip: PNG conversion\n\nTo convert an SVG into a PNG image, I recommend [Inkscape][9]'s command line:\n\n```sh\ninkscape picture.svg --export-png=picture.png --export-area-drawing\n```\n\nI tried [ImageMagick][10]'s command line, but it tends to crop stuff all funky\nand renders text badly.  YMMV.\n\n[1]: https://www.npmjs.com/package/svg-pizzabase\n[2]: https://travis-ci.org/anko/svg-pizzabase\n[3]: https://david-dm.org/anko/svg-pizzabase\n[4]: https://www.npmjs.com/package/browserify\n[5]: https://github.com/webpack/webpack\n[6]: http://d3js.org/\n[7]: http://gamedev.stackexchange.com/users/7804/anko?tab=answers\n[8]: http://d3js.org/\n[9]: https://inkscape.org/\n[10]: http://www.imagemagick.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanko%2Fsvg-pizzabase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanko%2Fsvg-pizzabase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanko%2Fsvg-pizzabase/lists"}