Awesome Open Source
Awesome Open Source

Swift Auto Diagram

A Ruby script that scans all swift code from the specified folders and files and automatically generates an entity diagram (similar to a class diagram) which can be viewed in a browser.


In terminal run:

$ ruby generateEntityDiagram.rb

If you don't specify any command line arguments then the script will search for all swift files in the script's main directory. You can specify any number of command line arguments which should be existing directory or file paths. The directories will be searched in depth for swift files recursively.



The state of the project is still in a beta version which means it still may not run or may be not accurate for all projects. We hope to see more contributors help make this a wonderful developer tool even better.

Initial creators:


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
ruby (12,268
swift (7,439
generator (322
script (170
diagram (89

Find Open Source By Browsing 7,000 Topics Across 59 Categories