{"id":32149335,"url":"https://github.com/ibdecodable/ibgraph","last_synced_at":"2025-10-21T09:54:28.408Z","repository":{"id":63912030,"uuid":"199312178","full_name":"IBDecodable/IBGraph","owner":"IBDecodable","description":"Generate a graph by reading storyboard connections.","archived":false,"fork":false,"pushed_at":"2020-05-08T08:09:21.000Z","size":40,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-21T09:54:27.959Z","etag":null,"topics":["graph","ios","storyboard","storyboards","swift"],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/IBDecodable.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-28T16:38:10.000Z","updated_at":"2025-04-08T03:44:52.000Z","dependencies_parsed_at":"2023-01-14T13:16:04.372Z","dependency_job_id":null,"html_url":"https://github.com/IBDecodable/IBGraph","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/IBDecodable/IBGraph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBDecodable%2FIBGraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBDecodable%2FIBGraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBDecodable%2FIBGraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBDecodable%2FIBGraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IBDecodable","download_url":"https://codeload.github.com/IBDecodable/IBGraph/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBDecodable%2FIBGraph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280240308,"owners_count":26296527,"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-10-21T02:00:06.614Z","response_time":58,"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":["graph","ios","storyboard","storyboards","swift"],"created_at":"2025-10-21T09:54:25.419Z","updated_at":"2025-10-21T09:54:28.403Z","avatar_url":"https://github.com/IBDecodable.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IBGraph\n[![Build Status](https://travis-ci.org/IBDecodable/IBGraph.svg?branch=master)](https://travis-ci.org/IBDecodable/IBGraph)\n[![Swift 5.0](https://img.shields.io/badge/Swift-5.0-orange.svg?style=flat)](https://developer.apple.com/swift/)\n\nA tool to create a graph representaton of your  `.storyboard` files.\n\n## Install\n\n### Using sources\n\n```\ngit clone https://github.com/IBDecodable/IBGraph.git\ncd IBGraph\nmake install\n```\n\n### Using Homebrew (swiftbrew)\n\nIf not already installed yet, install [Swiftbrew](https://github.com/swiftbrew/Swiftbrew) with [Homebrew](https://brew.sh/index_fr)\n\n```\nbrew install swiftbrew/tap/swiftbrew\n```\n\nthen type \n```\nswift brew install IBDecodable/IBGraph\n```\n\n## Usage\n\nYou can see all description by `ibgraph help`\n\n```\n$ ibgraph help\nAvailable commands:\n\n   help      Display general or command-specific help\n   generate  Show graph (default command)\n   version   Display the current version of ibgraph\n```\n\n### Generate command\n\n#### Using `default` reporter\n\n```\n$ ibgraph\nFirstViewController -\u003e [\"SecondViewController\"]\n```\n\n#### Using `dot` reporter\n```\n$ ibgraph --reporter dot\ndigraph {\n    0 [label = \"FirstViewController\"];\n    1 [label = \"SecondViewController\"];\n\n    0 -\u003e 1;\n}\n# or ibgraph if reporter defined in configuration file\n```\n\n_[Visualize this graph online](http://bit.ly/2YtkuY5)_\n\n_[Example on IBAnimatable demo app](http://bit.ly/2STM1wW)_\n\nor if you ave `graphviz` installed you can open preview\n\n```bash\nibgraph --reporter dot | dot -Tpng | open -Wfa preview\n```\n\n#### Using `online` reporter\n\nThis reporter open the graph on https://dreampuf.github.io/GraphvizOnline/\n\n```\n$ ibgraph --reporter online\nOpen url https://dreampuf.github.io/GraphvizOnline/#digraph....\n```\n\n### Convert graph to png\n\nFirst use `dot` reporter.\n\n\nThen you can install `graphviz` using Homebrew\n\n```\nbrew install graphviz\n```\n\nAnd finally launch the convertion using `dot` command on your result file\n\n```\ndot -Tpng MyStoryboards.dot -o MyStoryboards.png\n```\n\nor directly after `ibgraph` launch\n\n```\n ibgraph --reporter dot | dot -Tpng -o MyStoryboards.png\n```\n\n#### Xcode\n\nAdd a `Run Script Phase` to integrate IBGraph with Xcode\n\n```sh\nif which ibgraph \u003e/dev/null; then\n  if which dot \u003e/dev/null; then\n    ibgraph generate --reporter dot | dot -Tpng -o storyboards.png\n  else\n    echo \"warning: dot from graphviz is not installed, check how to install here https://github.com/IBDecodable/IBGraph#convert-graph-to-png\"\n  fi\nfi\nelse\n  echo \"warning: IBGraph not installed, download from https://github.com/IBDecodable/IBGraph\"\nfi\n```\n\n## Requirements\n\nIBGraph requires Swift5.0 runtime. Please satisfy at least one of following requirements.\n\n - macOS 10.14.4 or later\n - Install `Swift 5 Runtime Support for Command Line Tools` from [More Downloads for Apple Developers](https://developer.apple.com/download/more/)\n \n## Configuration\n\nYou can configure IBGraph by adding a `.ibgraph.yml` file from project root directory.\n\n\n| key                  | description                 |\n|:---------------------|:--------------------------- |\n| `excluded`           | Path to ignore.    |\n| `included`           | Path to include.   |\n| `reporter`           | Choose the output format between `default`, `dot`, `json`, `gml` and `graphml`. Or `online` to open graph on default browser.|\n\n```yaml\nincluded:\n  - App/Views\nreporter: \"dot\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibdecodable%2Fibgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibdecodable%2Fibgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibdecodable%2Fibgraph/lists"}