{"id":15063578,"url":"https://github.com/mneumann/scenic_from_svg","last_synced_at":"2025-07-23T07:05:52.453Z","repository":{"id":254475013,"uuid":"846644183","full_name":"mneumann/scenic_from_svg","owner":"mneumann","description":"Rapid UI prototyping for Scenic","archived":false,"fork":false,"pushed_at":"2024-08-28T19:36:14.000Z","size":640,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-14T16:44:38.910Z","etag":null,"topics":["elixir","elixir-lang","elixir-library","scenic","ui"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/mneumann.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2024-08-23T16:38:53.000Z","updated_at":"2025-05-22T03:53:06.000Z","dependencies_parsed_at":"2024-09-25T03:22:59.414Z","dependency_job_id":"73495199-72a3-4a0e-be05-55562fad89bd","html_url":"https://github.com/mneumann/scenic_from_svg","commit_stats":null,"previous_names":["mneumann/scenic_from_svg"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mneumann/scenic_from_svg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneumann%2Fscenic_from_svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneumann%2Fscenic_from_svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneumann%2Fscenic_from_svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneumann%2Fscenic_from_svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mneumann","download_url":"https://codeload.github.com/mneumann/scenic_from_svg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneumann%2Fscenic_from_svg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266633421,"owners_count":23959547,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["elixir","elixir-lang","elixir-library","scenic","ui"],"created_at":"2024-09-25T00:04:37.325Z","updated_at":"2025-07-23T07:05:52.433Z","avatar_url":"https://github.com/mneumann.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scenic.FromSVG - Rapid UI prototyping for Scenic\n\n![Screenshot of Scenic.FromSVG vs Inkscape](./screenshot.jpg)\n\n* This library derives [Scenic][scenic] primitives from Scalable Vector\n  Graphics (SVG), either at runtime or compile-time. To put in other\n  words: It converts SVG into Scenic drawing primitives.\n\n* SVG is used to leverage wide-spread and open-source tools like [Inkscape][inkscape].\n\n* [Scenic][scenic] is a UI framework for [Elixir][elixir], mainly targeting embedded\n  and fault-tolerant systems.\n\n* [Elixir][elixir] is a language running on top of the\n  [Erlang/OTP][erlang] platform, the latter of which is \"used to build\n  massively scalable soft real-time systems with requirements on high\n  availability\", quoting it's website.\n\n* [Scenic primitives][scenic-primitives] are the drawing primitives\n  offered by the Scenic framework. Examples for such primitives are:\n  `circle`, `rect` or `text`. They more or less directly map to SVG\n  primitives like `\u003ccircle\u003e`, `\u003crect\u003e` or `\u003ctext\u003e`.\n\n## Example\n\n    \u003e elixir script/svg_viewer.exs script/example.svg\n\n## Limitations\n\n* This library is a quick-and-dirty, half-night-long proof-of-concept,\n  implemented by looking at some Inkscape-generated SVGs and deriving some\n  Elixir code from it, without ever having read the SVG spec thoughtfully\n  myself. Though, the \"concept\" looks promising.\n\n* Only `\u003ccircle\u003e`, `\u003cellipse\u003e`, `\u003crect\u003e`, `\u003ctext\u003e`, `\u003cg\u003e` and `\u003cpath\u003e` are\n  somewhat implemented.\n\n* `\u003ctext\u003e` does not properly map font names (yet).\n\n* Only tested with Inkscape-generated SVG.\n\n## Use Cases\n\n* This is *NOT* a general-purpose SVG viewer for Scenic!!!\n\n* Rapid UI prototyping for Scenic. \"Wireframing-Tool\".\n\n* Generate Elixir code from SVG, then hand-modify the generated code.\n\n* My intended use case: Customers can use existing SVG-editors like\n  Inkscape or web-based ones to design 80% of the scenes of their\n  infotainment screens, either themselves or with the help of graphic\n  artists. Based on these SVGs and this underlying library, deriving\n  Elixir code becomes a lot easier and let's me concentrate on logic and\n  dynamic functionality. It's a *tool*, not a 100% feature-full solution\n  with shiny marketing brochures and mandatory training courses.\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `scenic_from_svg` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:scenic_from_svg, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at \u003chttps://hexdocs.pm/scenic_from_svg\u003e.\n\n[inkscape]: https://inkscape.org/\n[scenic]: https://hexdocs.pm/scenic/welcome.html\n[scenic-primitives]: https://hexdocs.pm/scenic/0.12.0-rc.0/Scenic.Primitives.html\n[elixir]: https://elixir-lang.org/\n[erlang]: https://erlang.org/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmneumann%2Fscenic_from_svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmneumann%2Fscenic_from_svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmneumann%2Fscenic_from_svg/lists"}