{"id":32183915,"url":"https://github.com/jebberjeb/fsmviz","last_synced_at":"2026-02-21T13:01:31.203Z","repository":{"id":62432716,"uuid":"87561271","full_name":"jebberjeb/fsmviz","owner":"jebberjeb","description":"Generate Graphviz diagrams from FSM data","archived":false,"fork":false,"pushed_at":"2020-06-15T14:52:33.000Z","size":683,"stargazers_count":50,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-02T15:09:01.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/jebberjeb.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}},"created_at":"2017-04-07T15:35:49.000Z","updated_at":"2023-11-07T19:13:00.000Z","dependencies_parsed_at":"2022-11-01T21:15:56.365Z","dependency_job_id":null,"html_url":"https://github.com/jebberjeb/fsmviz","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jebberjeb/fsmviz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jebberjeb%2Ffsmviz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jebberjeb%2Ffsmviz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jebberjeb%2Ffsmviz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jebberjeb%2Ffsmviz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jebberjeb","download_url":"https://codeload.github.com/jebberjeb/fsmviz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jebberjeb%2Ffsmviz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29681468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T12:30:22.644Z","status":"ssl_error","status_checked_at":"2026-02-21T12:29:55.402Z","response_time":107,"last_error":"SSL_read: 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":"2025-10-21T23:13:11.098Z","updated_at":"2026-02-21T13:01:31.197Z","avatar_url":"https://github.com/jebberjeb.png","language":"Clojure","funding_links":[],"categories":["Graphviz"],"sub_categories":[],"readme":"# fsmviz\n\nGenerate [Graphviz]() diagrams from FSM data using Clojure or Clojurescript.\n\n## Release\n\n### Leiningen\n\n```clojure\n[fsmviz \"0.1.4\"]\n```\n\n## Usage\n\nDiagrams can be generated using FSM data in the form of either `[from via to]`\ntriples, or maps of state -\u003e transition map.\n\n\n```clojure\n(require '[fsmviz.core :as fsmviz])\n```\n\n```clojure\n(fsmviz.core/generate-image {:start {:t1 :foo\n                                     :t2 :bar}\n                             :foo {:t3 :baz}\n                             :bar {:t4 :baz}} \"example-map\")\n\n```\n\n![fsmmap](example-map.png)\n\n```clojure\n(fsmviz.core/generate-image [[:start :t1 :x]\n                             [:start :t2 :y]\n                             [:start :t3 :z]\n                             [:z :t4 :x]\n                             [:z :t5 :finish]\n                             [:x :t6 :finish]\n                             [:y :t7 :finish]] \"example-tuples\"))\n```\n\n![fsmtuples](example-tuples.png)\n\n## Clojurescript Demo\n\nA simple demo with Clojurescript, created using Figwheel, can be found at\nexamples/demo-cljs. To run the demo:\n\n`$\u003e cd examples/demo-cljs`\n\n`$\u003e lein fighweel`\n\nAfter the Figwheel webserver starts, visit `http://localhost:3449` to view the\ndemo.\n\n## Javascript Demo \u0026 API\n\nYou can also use this library from Javascript. You must use the tuple form for\nstate machine data, and string names, rather than keywords.\n\n```javascript\nfsmviz.core.generate_image_js(\n        [[null,     \"birth\",       \"human\"],\n         [\"human\",  \"bitten\",      \"zombie\"],\n         [\"zombie\", \"brain death\", \"corpse\"]],\n        \"a graph name\");\n```\n\nSee [example.html](resources/example.html) for a complete example.\n\n## TODO\n\nThe Javascript binary is 2.6 MB, currently.  Largely due to the depenency on\nviz.js, which is 2.1 MB.  Can this be improved?\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Jeb Beich\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjebberjeb%2Ffsmviz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjebberjeb%2Ffsmviz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjebberjeb%2Ffsmviz/lists"}