{"id":13878446,"url":"https://github.com/samuelgiles/graphwerk","last_synced_at":"2026-05-19T11:34:16.900Z","repository":{"id":43997841,"uuid":"302344718","full_name":"samuelgiles/graphwerk","owner":"samuelgiles","description":"Graphwerk is a small Ruby gem that can generate a diagram of dependencies between packages within an application that's using Packwerk to enforce boundaries.","archived":false,"fork":false,"pushed_at":"2024-08-17T03:07:39.000Z","size":877,"stargazers_count":55,"open_issues_count":4,"forks_count":7,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-24T04:08:18.897Z","etag":null,"topics":["clean-architecture","dependencies","graphviz","packages","packwerk","rails","ruby","ruby-on-rails","sorbet"],"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/samuelgiles.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"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}},"created_at":"2020-10-08T13:12:44.000Z","updated_at":"2025-03-28T22:10:51.000Z","dependencies_parsed_at":"2024-01-29T10:33:09.553Z","dependency_job_id":"d7d5717d-5042-4eb9-bda5-ec2d5f149312","html_url":"https://github.com/samuelgiles/graphwerk","commit_stats":{"total_commits":17,"total_committers":4,"mean_commits":4.25,"dds":0.5294117647058824,"last_synced_commit":"35422c1cafaf02f20b2ff4386f3329b95ca435df"},"previous_names":["tricycle/graphwerk"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelgiles%2Fgraphwerk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelgiles%2Fgraphwerk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelgiles%2Fgraphwerk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelgiles%2Fgraphwerk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samuelgiles","download_url":"https://codeload.github.com/samuelgiles/graphwerk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250560052,"owners_count":21450172,"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","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":["clean-architecture","dependencies","graphviz","packages","packwerk","rails","ruby","ruby-on-rails","sorbet"],"created_at":"2024-08-06T08:01:50.035Z","updated_at":"2025-10-08T17:12:52.694Z","avatar_url":"https://github.com/samuelgiles.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"![graphwerk-logo](https://user-images.githubusercontent.com/2643026/95463568-cfaada80-0970-11eb-8305-aea01a0d77a9.png)\n\n# Graphwerk [![Gem Version](https://badge.fury.io/rb/graphwerk.svg)](https://badge.fury.io/rb/graphwerk) [![Continuous Integration](https://github.com/bellroy/graphwerk/actions/workflows/ci.yml/badge.svg)](https://github.com/bellroy/graphwerk/actions/workflows/ci.yml)\n\nGraphwerk is a small Ruby gem that can generate a diagram of dependencies between packages within an application that's using Packwerk to enforce boundaries.\n\nThe gem builds on top of [Packwerk](https://github.com/Shopify/packwerk) and [Graphviz](https://github.com/glejeune/Ruby-Graphviz).\n\nHere's an example application package dependency diagram:\n\n![example](https://user-images.githubusercontent.com/2643026/97689408-6ca1f480-1a93-11eb-9999-22e79791b300.png)\n\n## Install\n\nAdd this line to your application's Gemfile and run `bundle install`:\n\n`gem 'graphwerk', group: %i[development test]`\n\n## Usage\n\nFor Rails applications a Railtie automatically loads a rake task that makes it easy to generate a diagram for your root package and its dependencies. The diagram will be placed at the root of your application as `packwerk.png`.\n\n```bash\nbundle exec rake graphwerk:update\n```\n\nMore advance usage is possible by passing a [`Packwerk::PackageSet`](https://github.com/Shopify/packwerk/blob/main/lib/packwerk/package_set.rb) directly to `Graphwerk::Builders::Graph` and calling `#build` returning a `Graphviz` instance:\n\n```ruby\ngraph = Graphwerk::Builders::Graph.new(\n   Packwerk::PackageSet.load_all_from(\".\")\n).build\ngraph.output(svg: 'packwerk.svg')\n```\n\nAll [Graphviz layouts](https://graphviz.org/documentation/#layout-manual-pages) are supported and options for the graph, nodes and edges can be set via an optional `options` argument:\n\n```ruby\ngraph = Graphwerk::Builders::Graph.new(\n   Packwerk::PackageSet.load_all_from(\".\"),\n   options: {\n     layout: Graphwerk::Layout::Twopi,\n     deprecated_references_color: 'yellow',\n     package_todo_color: 'yellow',\n     graph: { overlap: true },\n     node: { fillcolor: '#000000' },\n     edges: { len: '3.0' }\n    }\n).build\ngraph.output(svg: 'packwerk.svg')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelgiles%2Fgraphwerk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuelgiles%2Fgraphwerk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelgiles%2Fgraphwerk/lists"}