# ljacobsson/cfn-diagram

CLI tool to visualise CloudFormation/SAM/CDK stacks as visjs networks, draw.io or ascii-art diagrams.

Repository: https://github.com/ljacobsson/cfn-diagram
Canonical: https://ross.abutalabs.com/products/cfn-diagram
Language: JavaScript
License Family: other
Topics: aws-tools, cloudformation, sam, visualisation
Last push: 2024-04-19T10:32:58+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2303, "days_push": 866, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1019, forks 91 (observed 2026-08-28T04:03:15.129943+00:00)

## What it is
cfn-diagram is a Node.js CLI tool that visualizes AWS CloudFormation, SAM, and CDK templates as diagrams. It can generate draw.io files, interactive vis.js HTML pages, or ASCII art from templates, including deployed stacks.

## Use cases
- visualize cloudformation template as a diagram
- generate draw.io diagram from CDK stack
- convert SAM template to architecture diagram
- browse and diagram deployed AWS CloudFormation stacks
- create vis.js network diagram of AWS resources
- exclude IAM roles and policies from infrastructure diagrams

## When to choose
- you work with CloudFormation, SAM, or CDK and need visual architecture diagrams
- you want to filter out noisy resource types like roles and policies
- you prefer draw.io or browser-based interactive diagrams of your stacks

## When to avoid
- you use Terraform, Pulumi, or other non-CloudFormation IaC tools
- you need a GUI application rather than a CLI workflow
- you need actively maintained tooling with guaranteed support

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: cli, developer-tools, data-visualization, infrastructure-as-code
- domain: cloud-computing, infrastructure-as-code, developer-tools
- platform: cli, cross-platform
- tags: aws, cloudformation, aws-cdk, aws-sam, drawio, visjs, diagram-generation, infrastructure-visualization, devops, nodejs

## Member repositories
- ljacobsson/cfn-diagram (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:15.129943+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-30T07:09:23.715727+00:00, confidence not recorded.
  - readme: https://github.com/ljacobsson/cfn-diagram (fetched 2026-08-28T04:03:15.129943+00:00, sha 9483320a840a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
