{"id":22975817,"url":"https://github.com/jc-ll/ws_svg_anim","last_synced_at":"2026-02-07T05:31:33.602Z","repository":{"id":146879999,"uuid":"383863847","full_name":"JC-LL/ws_svg_anim","owner":"JC-LL","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-12T14:44:04.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-27T08:46:23.872Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/JC-LL.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,"zenodo":null}},"created_at":"2021-07-07T16:39:32.000Z","updated_at":"2021-07-12T14:44:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"a3f48ff2-34e0-4699-98e6-93ba27c51bec","html_url":"https://github.com/JC-LL/ws_svg_anim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JC-LL/ws_svg_anim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JC-LL%2Fws_svg_anim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JC-LL%2Fws_svg_anim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JC-LL%2Fws_svg_anim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JC-LL%2Fws_svg_anim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JC-LL","download_url":"https://codeload.github.com/JC-LL/ws_svg_anim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JC-LL%2Fws_svg_anim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29187182,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T05:07:31.176Z","status":"ssl_error","status_checked_at":"2026-02-07T05:06:15.227Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-12-15T00:39:30.453Z","updated_at":"2026-02-07T05:31:33.598Z","avatar_url":"https://github.com/JC-LL.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Animating SVG using Ruby through _Websockets_  \n\n## Presentation\nA set of small experiments to drive SVG animation _via websockets_.\nI struggled too much on trying to animate scenes using various GUI librairies.\nMy conclusion is that there's nothing better than SVG.\n\nHere, I use a simple Ruby websocket server on one side and a simple browser (my case Firefox) that displays the SVG. The server is here to send drawing commands of my own, to a Javascript client that applies the commands to the SVG elements. We can also imagine that the client can send status or user events back to the server.\n\n## Contents description\n\n* **Test 1** : where I started playing with the idea. Various commands are prototyped.\n* **Test 2** : crude (but cheap) animation of a graphviz finite-state machine.\n* **Test 3** : dealing with scale command.\n* **Test 4** : trying to animate external SVG file (TO COME)\n\n## How to install ?\n\nSimply clone the github projet project.\n\n## How to reproduce ?\n\n```[bash]\n  cd test_1\n  cd server\n  ruby app.rb #start the server\n```\nThen open test_1/browser/index.html in your browser. An animation should be displayed.\n\n## Questions ?\nIf you have suggestions, plase contact me **jean-christophe.le_lann** at ensta-bretagne dot fr.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjc-ll%2Fws_svg_anim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjc-ll%2Fws_svg_anim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjc-ll%2Fws_svg_anim/lists"}