{"id":18687521,"url":"https://github.com/junosuarez/svega","last_synced_at":"2025-11-08T02:30:35.532Z","repository":{"id":145717686,"uuid":"307005868","full_name":"junosuarez/svega","owner":"junosuarez","description":"A cli tool to render vega-lite visualizations to svg","archived":false,"fork":false,"pushed_at":"2020-10-25T03:22:36.000Z","size":125,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T16:46:22.255Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/junosuarez.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":"2020-10-25T01:57:00.000Z","updated_at":"2022-01-18T07:12:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"bf1f7116-c62b-4d0f-8774-c172c0c06e56","html_url":"https://github.com/junosuarez/svega","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fsvega","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fsvega/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fsvega/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fsvega/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junosuarez","download_url":"https://codeload.github.com/junosuarez/svega/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239545567,"owners_count":19656809,"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","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-07T10:33:08.759Z","updated_at":"2025-11-08T02:30:35.482Z","avatar_url":"https://github.com/junosuarez.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svega\n\nA cli tool to render [vega-lite](https://vega.github.io/vega-lite) visualizations to svg.\n\n![](example/example.png)\n\n## Installation\n\n```\nnpm install --global @junosuarez/svega\n\n# or\n\nyarn add --global @junosuarez/svega\n```\n\n## Usage\n\n```\nsvega [opts] \u003cspec.vl.json\u003e \u003c data.json \u003e out.svg\n\n   stdin must be data, stdout will be svg or empty\n\n   OPTIONS:\n     --format=[auto],json,ndjson,csv\n```\n\nThe output on stdout is an SVG string. You can save this to a file, open it in your favorite viewer, or display it right in your terminal:\n\n## Displaying svg in your terminal\n\nKudos to [Kate](https://twitter.com/thingskatedid/status/1316074032379248640) for sending me down this whole graphical terminal adventure.\n\nThe examples use `isvg`, the following shell alias, using [kitty terminal](https://sw.kovidgoyal.net/kitty/kittens/icat.html) and rsvg-convert (with `brew install imagemagick`):\n\n```sh\nalias isvg='rsvg-convert --zoom=2 | kitty icat --align=left'\n```\n\n## Alternatives\n\nThere is an official [vega-cli](https://github.com/vega/vega/tree/master/packages/vega-cli) package that includes two tools that may suit your needs:\n\n- vg2svg\n- vl2svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunosuarez%2Fsvega","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunosuarez%2Fsvega","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunosuarez%2Fsvega/lists"}