{{ workspace.name }} C4 Level 1 — Context

Auto-discovered from filesystem, git, and forktex.json — {{ generated_at }}
{{ workspace.systems | length }}
Systems
{{ total_containers }}
Containers
{{ total_ports }}
Ports
{{ total_packages }}
Packages
{{ "{:,}".format(total_lines) }}
Lines of Code
{% if edges_json and edges_json != '[]' %}

Dependency Graph

{% endif %}

Systems

{% for sys in workspace.systems %}
{{ sys.name }} {{ sys.fsd_level }}

{% if sys.provider %}{{ sys.provider }} / {{ sys.region }}{% endif %} {% if sys.domains %}— {{ sys.domains[0] }}{% endif %}

{% if sys.git %}
{{ sys.git.branch }} {{ sys.git.last_commit_hash }} {% if sys.git.dirty %}*{% endif %}
{% endif %} {% if sys.packages %}
{% for p in sys.packages %}
{{ p.name }}v{{ p.version }}
{% endfor %}
{% endif %}
{% for c in sys.containers %}
{{ c.id }} {{ c.tech_summary }} {% if c.primary_port %}:{{ c.primary_port.host }}{% endif %}
{% endfor %}
{% endfor %}
{% if all_ports %}

Port Allocation

{% for p in all_ports %} {% endfor %}
SystemServiceHost PortContainer PortType
{{ p.system }} {{ p.service }} :{{ p.host_port }} :{{ p.container_port }} {{ p.type }}
{% endif %}
{% for sys in workspace.systems %} {% endfor %} {% for sys in workspace.systems %} {% for c in sys.containers %} {% if c.components %} {% endif %} {% endfor %} {% endfor %}