Validate before export
Catch broken references and hierarchy errors, or fail CI when diagnostics include a warning.
Graphomaton validates, analyzes, lays out, and exports automata without making you leave your codebase.
Keep the source of truth in Ruby, JSON, or YAML. Pick the output that fits the next place your diagram needs to live.
Catch broken references and hierarchy errors, or fail CI when diagnostics include a warning.
Find reachable, dead, trap, and strongly connected states from the same automaton.
Use layered, force, manual, or Graphviz layouts with themes and semantic diagnostics.
Add the gem, define the states and transitions, then save the format you need.
gem install graphomatonrequire 'graphomaton'
machine = Graphomaton.new
machine.add_state('idle')
machine.add_state('done')
machine.set_initial('idle')
machine.add_final('done')
machine.add_transition('idle', 'done', 'finish')
machine.save_svg('diagram.svg')
Graphomaton is open source, MIT licensed, and ready for the command line or your application.
Get Graphomaton on RubyGems