# awslabs/diagram-as-code

Diagram-as-code for AWS architecture.

Repository: https://github.com/awslabs/diagram-as-code
Canonical: https://ross.abutalabs.com/products/diagram-as-code
Language: Go
License: Apache-2.0
License Family: permissive
Topics: aws, diagram-as-code
Last push: 2026-08-26T07:40:28+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 87, longevity 66
- inputs: {"age_days": 925, "days_push": 7, "days_rel": 7, "gap_med": 38.5, "n_releases_24m": 15}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1559, forks 100 (observed 2026-08-28T04:05:03.566875+00:00)

## What it is
A Go-based CLI tool (awsdac) that generates AWS architecture diagrams from human-readable YAML definitions, following AWS diagram guidelines. It can also convert CloudFormation templates into diagrams and be used as a Go library for integration with IaC tools and AI assistants.

## Use cases
- generate AWS architecture diagrams from YAML code
- convert CloudFormation templates into architecture diagrams
- manage infrastructure diagrams in Git as code
- automate diagram generation in CI/CD pipelines
- create diagrams compliant with AWS architecture icon guidelines
- integrate diagram generation with AI assistants via MCP server

## When to choose
- you want diagrams-as-code versioned with Git instead of manual drawing tools
- your infrastructure is on AWS and you want guideline-compliant diagrams
- you need lightweight, headless diagram generation in CI/CD pipelines
- you want to derive diagrams automatically from CloudFormation templates

## When to avoid
- you need diagrams for non-cloud or multi-cloud architectures without writing custom definition files
- you need interactive, drag-and-drop diagram editing
- you require rich output formats beyond PNG or complex custom styling

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, developer-tools, infrastructure-as-code, ci-cd, documentation
- domain: cloud-computing, infrastructure-as-code, developer-tools, documentation
- platform: cli, windows, go, cross-platform
- tags: aws, diagram-as-code, yaml, cloudformation, architecture-diagrams, iac, mcp-server, linux, macos

## Member repositories
- awslabs/diagram-as-code (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:03.566875+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:29:49.426336+00:00, confidence not recorded.
  - readme: https://github.com/awslabs/diagram-as-code (fetched 2026-08-28T04:05:03.566875+00:00, sha 4a84fa6b5d81)
- Data as of 2026-08-30T08:39:29.467469+00:00.
