{"id":13983576,"url":"https://github.com/lucasepe/yml2dot","last_synced_at":"2025-08-13T03:32:35.423Z","repository":{"id":40990666,"uuid":"341868598","full_name":"lucasepe/yml2dot","owner":"lucasepe","description":"Turn YAML into beautiful Graph","archived":true,"fork":false,"pushed_at":"2024-06-18T06:20:37.000Z","size":201,"stargazers_count":162,"open_issues_count":3,"forks_count":20,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-04-08T04:24:32.759Z","etag":null,"topics":["command-line-tool","golang","graphviz-dot","visualization","yaml"],"latest_commit_sha":null,"homepage":"","language":"Go","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/lucasepe.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-24T10:51:16.000Z","updated_at":"2025-01-03T05:19:19.000Z","dependencies_parsed_at":"2024-08-09T05:19:22.613Z","dependency_job_id":null,"html_url":"https://github.com/lucasepe/yml2dot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lucasepe/yml2dot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasepe%2Fyml2dot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasepe%2Fyml2dot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasepe%2Fyml2dot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasepe%2Fyml2dot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasepe","download_url":"https://codeload.github.com/lucasepe/yml2dot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasepe%2Fyml2dot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270175825,"owners_count":24540093,"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-13T02:00:09.904Z","response_time":66,"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":["command-line-tool","golang","graphviz-dot","visualization","yaml"],"created_at":"2024-08-09T05:01:49.025Z","updated_at":"2025-08-13T03:32:35.051Z","avatar_url":"https://github.com/lucasepe.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# [yml2dot](https://github.com/lucasepe/yml2dot/releases/latest) - Turn YAML into beautiful Graph\n\n## Use Cases\n\n- Visualize your YAML files as Graph\n- Generate additional info from your source code (simply define a YAML block and use this tool)\n\n## How [yml2dot](https://github.com/lucasepe/yml2dot/releases/latest) works?\n\nTakes in input:\n\n- any YAML file\n- any text file that has YAML between comments (like [front matter](https://jekyllrb.com/docs/front-matter/))\n\nGenerates a [dot script](https://en.wikipedia.org/wiki/DOT_(graph_description_language)) for [Graphviz](https://graphviz.gitlab.io/download/).\n\n# Examples\n\n## Visualize a [Kubernetes Deployment](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/) YAML file\n\nGiven a sample `deployment.yml` file:\n\n```yaml\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: nginx-deployment\n  labels:\n    app: nginx\nspec:\n  replicas: 3\n  selector:\n    matchLabels:\n      app: nginx\n  template:\n    metadata:\n      labels:\n        app: nginx\n    spec:\n      containers:\n      - name: nginx\n        image: nginx:1.14.2\n        ports:\n        - containerPort: 80\n```\n\nRun [yml2dot](https://github.com/lucasepe/yml2dot/releases/latest) like this:\n\n```bash\n$ yml2dot deployment.yml | dot -Tpng \u003e deployment.png\n```\n\nand create this graph:\n\n![](./_examples/deployment.png)\n\n## Grab YAML info embedded in your source code\n\n```java\n/*** \nBox:\n  Object:\n    - set\n    - get\n***/\n\npublic class Box {\n    private Object object;\n\n    public void set(Object object) {\n        this.object = object;\n    }\n    public Object get() {\n        return object;\n    }\n}\n```\n\n\u003e Use the `-from` and `-to` flags to mark your YAML block.\n\nRun [yml2dot](https://github.com/lucasepe/yml2dot/releases/latest) like this:\n\n```bash\n$ yml2dot -from '/***' -to '***/' Box.java | dot -Tpng \u003e Box.java.png\n```\n\nand create this graph:\n\n![](./_examples/Box.java.png)\n\n## Piping YAML strings\n\nYou can also pipe YAML strings directly into `yml2dot`, allowing for dynamic generation and transformation of YAML data. This is particularly useful when combining `yml2dot` with other command-line tools in a Unix-style pipeline.\n\nFor example, to visualize a YAML string without creating an intermediate file:\n\n```bash\necho \"apiVersion: v1\\nkind: Pod\\nmetadata:\\n  name: mypod\" | yml2dot | dot -Tpng \u003e mypod.png\n```\n\nOr, to dynamically generate a YAML configuration and immediately visualize it:\n\n```bash\ngenerate-yaml-config | yml2dot | dot -Tpng \u003e config.png\n```\n\nThis feature enhances `yml2dot`'s flexibility and integration into automated workflows and scripts.\n\n# How to install?\n\nIf you have [golang](https://golang.org/dl/) installed:\n\n```sh\n$ go install github.com/lucasepe/yml2dot@latest\n```\n\nThis will create the executable under your `$GOPATH/bin` directory.\n\n## Ready-To-Use Releases \n\nIf you don't want to compile the sourcecode yourself, [Here you can find the tool already compiled](https://github.com/lucasepe/yml2dot/releases/latest) for:\n\n- MacOS\n- Linux\n- Windows\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasepe%2Fyml2dot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasepe%2Fyml2dot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasepe%2Fyml2dot/lists"}