{"id":13878936,"url":"https://github.com/DannyBen/victor","last_synced_at":"2025-07-16T14:33:22.012Z","repository":{"id":41287829,"uuid":"59841455","full_name":"DannyBen/victor","owner":"DannyBen","description":"Ruby SVG Image Builder","archived":false,"fork":false,"pushed_at":"2024-08-29T09:37:47.000Z","size":786,"stargazers_count":379,"open_issues_count":0,"forks_count":20,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-11-20T23:28:04.083Z","etag":null,"topics":["gem","image-api","ruby","svg","svg-builder","svg-image"],"latest_commit_sha":null,"homepage":"https://victor.dannyb.co","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DannyBen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"DannyBen"}},"created_at":"2016-05-27T14:42:49.000Z","updated_at":"2024-11-20T02:58:10.000Z","dependencies_parsed_at":"2024-01-13T20:56:19.724Z","dependency_job_id":"a6c3ffd9-4a64-4f3b-a20e-1f1f99339cb5","html_url":"https://github.com/DannyBen/victor","commit_stats":{"total_commits":232,"total_committers":5,"mean_commits":46.4,"dds":0.3362068965517241,"last_synced_commit":"fbd7ececbb2e52c33b71cda824e8887de06f1b53"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Fvictor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Fvictor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Fvictor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Fvictor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DannyBen","download_url":"https://codeload.github.com/DannyBen/victor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226138849,"owners_count":17579496,"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":["gem","image-api","ruby","svg","svg-builder","svg-image"],"created_at":"2024-08-06T08:02:04.670Z","updated_at":"2024-11-24T07:31:25.253Z","avatar_url":"https://github.com/DannyBen.png","language":"Ruby","funding_links":["https://github.com/sponsors/DannyBen"],"categories":["Ruby"],"sub_categories":[],"readme":"\u003cdiv align='center'\u003e\n\u003cimg src='assets/logo.svg' width=500\u003e\n\n# Victor - Ruby SVG Image Builder\n\n[![Gem Version](https://badge.fury.io/rb/victor.svg)](https://badge.fury.io/rb/victor)\n[![Build Status](https://github.com/DannyBen/victor/workflows/Test/badge.svg)](https://github.com/DannyBen/victor/actions?query=workflow%3ATest)\n[![Maintainability](https://api.codeclimate.com/v1/badges/85cc05c219d6d233ab78/maintainability)](https://codeclimate.com/github/DannyBen/victor/maintainability)\n\n## [victor.dannyb.co](https://victor.dannyb.co)\n\n\u003c/div\u003e\n\n---\n\n**Victor** is a lightweight, zero-dependencies Ruby library that lets you build\nSVG images using Ruby code.\n\n---\n\n## Install\n\n```\n$ gem install victor\n```\n\n## Example\n\n\u003ctable\u003e\u003ctr\u003e\u003ctd width=\"250\"\u003e\n\n\u003cimg src='assets/ghost.svg' width=250\u003e\n\n\u003c/td\u003e\u003ctd\u003e\n\n```ruby\nsetup viewBox: '0 0 100 100'\n\nbuild do\n  rect x: 0, y: 0, width: 100, height: 100, fill: :white\n  circle cx: 50, cy: 50, r: 40, fill: 'yellow'\n  rect x: 10, y: 50, width: 80, height: 50, fill: :yellow\n\n  [25, 50].each do |x|\n    circle cx: x, cy: 40, r: 8, fill: :white\n  end\n\n  path fill: 'white', d: %w[\n    M11 100 l13 -15 l13 15 l13 -15 \n    l13 15 l13 -15 l13 15 Z\n  ]\nend\n```\n\n\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\n\n## Documentation\n\n- [Victor Homepage][docs]\n\n## Contributing / Support\n\nIf you experience any issue, have a question or a suggestion, or if you wish\nto contribute, feel free to [open an issue][issues] or\n[start a discussion][discussions].\n\n[issues]: https://github.com/DannyBen/victor/issues\n[discussions]: https://github.com/DannyBen/victor/discussions\n[docs]: https://victor.dannyb.co/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDannyBen%2Fvictor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDannyBen%2Fvictor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDannyBen%2Fvictor/lists"}