kmap discovers Kubernetes workloads, builds a normalized architecture model, and renders documentation for Structurizr and LikeC4.
kmap is not a LikeC4-from-Structurizr converter. Kubernetes inspection and product configuration are the source inputs; Structurizr and LikeC4 are renderer outputs.
pip install kmapFor development:
pip install -e '.[dev]'Copy one of the generic examples:
cp config/example.minimum.yaml config/my-product.yaml
kmap validate-config config/my-product.yaml
kmap run-all --config config/my-product.yaml --data-mode mocked --mock-seed demo --no-execBy default, run kmap from the project root. Paths resolve under the current directory:
config/
Likec4/
Structurizr/
Inventory/
artifacts/buckets/
.tmp/
Tool-level defaults can be stored in kmap.yaml. Start from kmap.yaml.example.
kmap validate-config config/example.minimum.yaml
kmap render-inventory
kmap validate-likec4 --root Likec4
kmap validate-structurizr --root Structurizr
kmap view example-productThe source checkout also keeps python kmap.py ... as a compatibility shim.
- INSTALL.md - installation and runtime dependencies.
- DEVELOP.md - development workflow and repository layout.
- GENERATION_RULES.md - model and renderer contract.
- CONTRIBUTING.md - contribution rules.
- SECURITY.md - security and data safety notes.