{"id":31009464,"url":"https://github.com/ydah/graphomaton","last_synced_at":"2025-09-13T04:37:34.296Z","repository":{"id":311745806,"uuid":"1044862954","full_name":"ydah/graphomaton","owner":"ydah","description":"A tiny Ruby library for generating finite state machine (automaton) diagrams as SVG.","archived":false,"fork":false,"pushed_at":"2025-08-26T10:34:10.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-26T11:38:53.303Z","etag":null,"topics":["automation","diagrams","graph-tool","visualizer"],"latest_commit_sha":null,"homepage":"","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/ydah.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2025-08-26T10:11:48.000Z","updated_at":"2025-08-26T10:45:12.000Z","dependencies_parsed_at":"2025-08-26T11:38:57.686Z","dependency_job_id":"da95f0bf-202e-4871-a29f-31c4ebd06f14","html_url":"https://github.com/ydah/graphomaton","commit_stats":null,"previous_names":["ydah/graphomaton"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ydah/graphomaton","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Fgraphomaton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Fgraphomaton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Fgraphomaton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Fgraphomaton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ydah","download_url":"https://codeload.github.com/ydah/graphomaton/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Fgraphomaton/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274919970,"owners_count":25373953,"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-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["automation","diagrams","graph-tool","visualizer"],"created_at":"2025-09-13T04:37:32.884Z","updated_at":"2025-09-13T04:37:34.283Z","avatar_url":"https://github.com/ydah.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Graphomaton [![Gem Version](https://badge.fury.io/rb/graphomaton.svg?icon=si%3Arubygems)](https://badge.fury.io/rb/graphomaton) [![CI](https://github.com/ydah/graphomaton/actions/workflows/ci.yml/badge.svg)](https://github.com/ydah/graphomaton/actions/workflows/ci.yml)\n\nA tiny Ruby library for generating finite state machine (automaton) diagrams as SVG.\n\n![Image](https://github.com/user-attachments/assets/6907869c-1077-4a73-8394-4117f25adc17)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'graphomaton'\n```\n\nAnd then execute:\n\n```bash\nbundle install\n```\n\nOr install it yourself as:\n\n```bash\ngem install graphomaton\n```\n\n## Usage\n\n```ruby\nrequire 'graphomaton'\n\n# Create a DFA that accepts strings ending with 'ab'\nautomaton = Graphomaton.new\n\n# Add states\nautomaton.add_state('q0')\nautomaton.add_state('q1')\nautomaton.add_state('q2')\n\n# Set initial and final states\nautomaton.set_initial('q0')\nautomaton.add_final('q2')\n\n# Add transitions\nautomaton.add_transition('q0', 'q1', 'a')\nautomaton.add_transition('q1', 'q2', 'b')\nautomaton.add_transition('q0', 'q0', 'b')\nautomaton.add_transition('q1', 'q0', 'a')\nautomaton.add_transition('q2', 'q0', 'b')\nautomaton.add_transition('q2', 'q1', 'a')\n\n# Save as SVG\nautomaton.save_svg('output.svg')\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ydah/graphomaton.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Graphomaton project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ydah/graphomaton/blob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydah%2Fgraphomaton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fydah%2Fgraphomaton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydah%2Fgraphomaton/lists"}