{"id":19401473,"url":"https://github.com/ayosec/svgo-sandbox","last_synced_at":"2026-05-29T16:31:20.917Z","repository":{"id":66617374,"uuid":"407603566","full_name":"ayosec/svgo-sandbox","owner":"ayosec","description":"Sandbox for svgo","archived":false,"fork":false,"pushed_at":"2021-09-17T16:15:27.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-18T16:46:47.979Z","etag":null,"topics":["bubblewrap-scripts"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/ayosec.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-17T16:08:43.000Z","updated_at":"2021-09-17T16:15:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee612073-4204-41a0-96ba-420fa82bf53e","html_url":"https://github.com/ayosec/svgo-sandbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ayosec/svgo-sandbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayosec%2Fsvgo-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayosec%2Fsvgo-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayosec%2Fsvgo-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayosec%2Fsvgo-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayosec","download_url":"https://codeload.github.com/ayosec/svgo-sandbox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayosec%2Fsvgo-sandbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33662205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"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":["bubblewrap-scripts"],"created_at":"2024-11-10T11:18:37.639Z","updated_at":"2026-05-29T16:31:20.902Z","avatar_url":"https://github.com/ayosec.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svgo-sandbox\n\nScript to launch [svgo] in a [bubblewrap] sandbox. An executable file for\n[svgo] is built using [pkg].\n\n[bubblewrap]: https://github.com/containers/bubblewrap\n[pkg]: https://github.com/vercel/pkg\n[svgo]: https://github.com/svg/svgo\n\n## Usage\n\n1. Create a [svgo] package in the `vendor` directory, as described below.\n\n2. Add an alias to the `./run` script in this repository.\n\n3. Use the alias to invoke [svgo].\n\n    The current directory at the moment of executing `./run` is the only\n    directory writable in the sandbox. If you want to use the `-o` option in\n    svgo, the path has to be relative to the current directory.\n\n### Example\n\n```console\n$ alias svgo=~/path/to/svgo-sandbox/run\n\n$ svgo --help\nUsage: svgo [options] [INPUT...]\n\nNodejs-based tool for optimizing SVG vector graphics files\n\nArguments:\n  INPUT                      Alias to --input\n\nOptions:\n  -v, --version              output the version number\n  -i, --input \u003cINPUT...\u003e     Input files, \"-\" for STDIN\n  -s, --string \u003cSTRING\u003e      Input SVG data string\n[…]\n\n$ svgo -i a.svg -o b.svg\n\na.svg:\nDone in 211 ms!\n134.196 KiB - 36.3% = 85.438 KiB\n\n$ ls -1sh a.svg  b.svg\n136K a.svg\n 88K b.svg\n```\n\n## Build svgo package\n\n```console\nhost$ cd svgo-sandbox\n\nhost$ mkdir vendor\n\nhost$ docker run --rm -ti -v \"$PWD/vendor:/h\" node bash\n\n$ npm install -g svgo\n\n$ npm install -g pkg\n\n$ cd /h\n\n$ pkg --compress GZ -t node16-linux-x64  /usr/local/lib/node_modules/svgo/bin/svgo\n\n$ chown 1000:1000 svgo\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayosec%2Fsvgo-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayosec%2Fsvgo-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayosec%2Fsvgo-sandbox/lists"}