{"id":17887555,"url":"https://github.com/sheldonhull/diagrams-as-code-template","last_synced_at":"2026-05-31T01:31:34.645Z","repository":{"id":74691938,"uuid":"382161970","full_name":"sheldonhull/diagrams-as-code-template","owner":"sheldonhull","description":"Use python 🐍 to generate diagrams via code. This project can be used as a template to quickly start work on new diagrams without having to setup tooling each time.","archived":false,"fork":false,"pushed_at":"2025-12-01T09:12:30.000Z","size":417,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-03T20:50:21.049Z","etag":null,"topics":["codespaces","diagrams","python"],"latest_commit_sha":null,"homepage":"https://www.sheldonhull.com/diagrams-as-code/","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sheldonhull.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-07-01T21:37:15.000Z","updated_at":"2025-12-01T09:12:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"37c43482-8174-4a30-8668-092cd5850351","html_url":"https://github.com/sheldonhull/diagrams-as-code-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/sheldonhull/diagrams-as-code-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheldonhull%2Fdiagrams-as-code-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheldonhull%2Fdiagrams-as-code-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheldonhull%2Fdiagrams-as-code-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheldonhull%2Fdiagrams-as-code-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sheldonhull","download_url":"https://codeload.github.com/sheldonhull/diagrams-as-code-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheldonhull%2Fdiagrams-as-code-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33716338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"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":["codespaces","diagrams","python"],"created_at":"2024-10-28T13:30:17.772Z","updated_at":"2026-05-31T01:31:34.629Z","avatar_url":"https://github.com/sheldonhull.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Diagrams As Code\n\n[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?style=for-the-badge)](https://github.com/tterb/atomic-design-ui/blob/master/LICENSEs) [![forthebadge](https://forthebadge.com/images/badges/gluten-free.svg)](https://forthebadge.com)\n[![forthebadge](https://forthebadge.com/images/badges/gluten-free.svg)](https://forthebadge.com)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/sheldonhull/diagrams-as-code-template?style=for-the-badge)\n![GitHub last commit (branch)](https://img.shields.io/github/last-commit/sheldonhull/diagrams-as-code-template/main?style=for-the-badge)\n\n## More On This\n\nI wrote up a blog post on this here: [Sheldon Hull - Diagrams As Code](https://www.sheldonhull.com/diagrams-as-code/)\n\n## Features\n\n- I've dug through the issues and found some great snippets to better configure default behavior.\n- This includes a function for tracing the \"route\" (aka edge).\nThis allows you to build a path to describe an activity in simple function call, and then alter it to re-render with new path.\nLive diagram discussion is easy this way.\n- Pre-built poetry tooling and container details gives you a quick start to reuse on a new project for diagrams.\n- Diagrams as code... no more visio. What's not to love?## Development Prerequisites\n\n1. [Install go-task](https://github.com/go-task/task/blob/master/docs/installation.md)\n2. [Install Poetry](https://python-poetry.org/docs/#installation)\n3. Python3\n\nOptional:\n\n- Codespaces configuration included, so open this up in codespaces!\n\n## Example Output\n\n![Simple](diagrams/simple-diagram.png)\n\n![Compex](diagrams/complex-diagram.png)\n\n## Development Prerequisites\n\n[Install go-task](https://github.com/go-task/task/blob/master/docs/installation.md)\n\n## Run Locally\n\nFrom your terminal run `task` to see all prebuild commands.\n\nTo initialize project use: `task init`\n\n\u003e NOTE: Due to how diagrams works, you'll have to have one diagram python script file for each diagram.\n\u003e I've tried to make it more modular to build the paths as a seperate function, but due to scoping it's not feasible.\n\u003e In essence, you'll just have to deal with copy-paste for a new diagram and not reuse much in the same file.\n\nTo add a new diagram task to poetry just name a new file and add a new poetry task in `pyproject.toml`.\n\n```toml\n[tool.poetry.scripts]\nbasic = \"diag.diagram:main\"\ncomplex = \"diag.diagram-complex:main\"\n```\n\n## Dependencies\n\nProject automatically submits dependency updates monthly using Renovate Whitesource.\n\n## Acknowledgements\n\n[Diagrams](https://diagrams.mingrammer.com/)\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheldonhull%2Fdiagrams-as-code-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsheldonhull%2Fdiagrams-as-code-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheldonhull%2Fdiagrams-as-code-template/lists"}