{"id":20780765,"url":"https://github.com/greglook/clj-hiera","last_synced_at":"2025-08-22T06:32:20.778Z","repository":{"id":15564904,"uuid":"18300181","full_name":"greglook/clj-hiera","owner":"greglook","description":"Generate Clojure namespace hierarchy graphs","archived":false,"fork":false,"pushed_at":"2022-11-15T01:51:03.000Z","size":97,"stargazers_count":67,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-11T07:25:40.450Z","etag":null,"topics":["clojure","graphviz"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/greglook.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-31T16:38:36.000Z","updated_at":"2025-01-04T16:38:17.000Z","dependencies_parsed_at":"2022-09-24T03:13:07.777Z","dependency_job_id":null,"html_url":"https://github.com/greglook/clj-hiera","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/greglook/clj-hiera","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greglook%2Fclj-hiera","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greglook%2Fclj-hiera/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greglook%2Fclj-hiera/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greglook%2Fclj-hiera/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greglook","download_url":"https://codeload.github.com/greglook/clj-hiera/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greglook%2Fclj-hiera/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271598508,"owners_count":24787678,"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-08-22T02:00:08.480Z","response_time":65,"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":["clojure","graphviz"],"created_at":"2024-11-17T13:39:07.774Z","updated_at":"2025-08-22T06:32:20.308Z","avatar_url":"https://github.com/greglook.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"clj-hiera\n=========\n\nGenerates a graph of the dependency hierarchy of a set of clojure files. This\nuses the [clojure.tools.namespace](https://github.com/clojure/tools.namespace)\nlibrary for namespace parsing and [Rhizome](https://github.com/ztellman/rhizome)\nfor graph generation using [Graphviz](http://www.graphviz.org/).\n\nThis tool was originally inspired by\n[lein-ns-dep-graph](https://github.com/hilverd/lein-ns-dep-graph), but has many\nadditional options for graph generation.\n\n\n## Usage\n\nThere are a few different ways to use clj-hiera. First, you'll need Graphviz\ninstalled in order to generate the images. Check your local package manager:\n\n```bash\n# Debian/Ubuntu:\nsudo apt-get install graphviz\n\n# OS X with Homebrew:\nbrew install graphviz\n```\n\n### Deps Alias\n\nIf you're using `tools.deps`, you can use this by adding an alias to your\n`deps.edn` file:\n\n```clojure\n:hiera\n{:deps {io.github.greglook/clj-hiera {:git/tag \"2.0.0\", :git/sha \"b14e514\"}}\n :exec-fn hiera.main/graph\n :exec-args {,,,}}\n```\n\nTo generate namespace graphs:\n\n```bash\nclj -X:hiera [opts]\n```\n\n### Clojure Tool\n\nAlternately, you can use this as a standalone Clojure tool:\n\n```bash\nclj -Ttools install-latest :lib io.github.greglook/clj-hiera :as hiera\n```\n\nThen, to invoke the tool in any Clojure project:\n\n```bash\nclj -Thiera graph [opts]\n```\n\n### Leiningen\n\nFor Leiningen, you can use this via the `lein-hiera` plugin. Add the following\nto your `project.clj` file or user-level profile:\n\n```clojure\n[lein-hiera \"2.0.0\"]\n```\n\nThen you can run:\n\n```bash\nlein hiera [opts]\n```\n\n\n## Options\n\nThe available options, and their default values are:\n\n| name              | default                 | description |\n|-------------------|-------------------------|-------------|\n| `:sources`        | `#{\"src\"}`              | Set of directories containing source files to analyze.\n| `:output`         | `\"target/hiera\"`        | Directory to write files to.\n| `:layout`         | `:vertical`             | Whether to lay out the graph vertically or horizontally.\n| `:cluster-depth`  | `0`                     | Number of namespace segments to cluster nodes by.\n| `:external`       | `false`                 | Show external namespaces as nodes in the graph.\n| `:ignore`         | `#{}`                   | A set of namespace prefixes or patterns to exclude from the graph.\n\nWhen using Leiningen, graph generation options may be provided under the\n`:hiera` key in the project map. You can also provide/override the\nconfiguration options by specifying them on the command line with keyword\narguments:\n\n```bash\nlein hiera :cluster-depth 3 :layout :horizontal\n```\n\n\n## Example\n\nThis image shows the dependency hierarchy from a moderately complex project. The\nnamespaces are clustered by two levels, and it shows a dependency on the external\n`puget` library.\n\n![Example dependency hierarchy](doc/example.png)\n\n\n## License\n\nThis is free and unencumbered software released into the public domain.\nSee the UNLICENSE file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreglook%2Fclj-hiera","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreglook%2Fclj-hiera","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreglook%2Fclj-hiera/lists"}