Skip to main content

buildzr

Build PyPI version Python versions

Define your C4 software architecture in Python, then build it and explore it in an interactive browser viewer.

  • Write architecture as code. Describe people, systems, containers and components with Python with blocks and >> relationships.
  • See it in your browser. One command, buildzr serve, builds your model and serves a viewer that you can zoom, search and link to.
  • Stay compatible. buildzr produces standard Structurizr workspaces, so other Structurizr tools can read your model.

The buildzr viewer showing an AWS deployment view: two regions, each with a DNS router, a load balancer, an autoscaling group running the web application and an RDS MySQL database, drawn with AWS icons; one load balancer is selected and its details are in the right panel

Try it now

With uv installed (it finds or fetches a compatible Python), run:

uvx buildzr serve --example

This serves a bundled example workspace and prints its address. Open it to explore the interactive viewer. You do not need a project, a model file or Node.js. If you prefer a browser tab, press Run Code on the complete Quick Start example: it runs without installing anything.

Use buildzr with your coding agent

Let your coding agent model your architecture for you. The buildzr skill teaches it to write model files, build them, fix build errors, serve the viewer and answer questions about your model.

Install the skill in your project:

npx skills add amirulmenjeni/buildzr

Then ask your agent:

Use buildzr to model the architecture of this repository. Read the code, create or update
the model in workspaces/, add a system context view and a container view, build it, and
tell me how to open it with buildzr serve.

The agent builds the model and tells you how to open the viewer. See Use buildzr with AI agents for the requirements and what the agent can do.

Quick Start

To write a model yourself, start a project. You need:

  • Python 3.10 or newer.
  • Node.js 18 or newer: when buildzr builds your model, its layout step runs on Node. Check it with node --version.
  • uv. With pip, install with pip install buildzr instead of uv add buildzr.

Create a project and install buildzr:

uv init hello-buildzr
cd hello-buildzr
uv add buildzr
mkdir workspaces

Save this model as workspaces/hello.py:

from buildzr.dsl import (
    Workspace,
    SoftwareSystem,
    Person,
    StyleElements,
    SystemContextView,
)

with Workspace('hello') as w:
    user = Person('User', description='A user of the system')
    system = SoftwareSystem(
        'Web Application',
        description='Our main web application'
    )

    user >> "Uses" >> system

    StyleElements(
        on=[user],
        shape='Person'
    )

    SystemContextView(
        software_system_selector=system,
        key='system-context',
        description='System Context View',
        auto_layout='tb'
    )

Build and serve it:

uv run buildzr serve

Open http://127.0.0.1:8000/. The viewer shows your model; click a box to see its details. The Quick Start tutorial explains each step.

What you can do

  • Model in Python. Nest elements with with, connect them with >>, group them, and extend an existing workspace. The DSL is type-hinted, so your editor can complete it.
  • Draw the views you need. System landscape, system context, container, component, dynamic and deployment views, with styles and cloud-provider themes (AWS, Azure, Google Cloud, Kubernetes, Oracle Cloud).
  • Build and serve. buildzr build writes each workspace as static web pages. buildzr serve builds what changed and serves them on your machine. See Serve your workspaces.
  • Explore in the viewer. Expand and collapse boxes, search, filter by type or tag, inspect relationships, switch between light and dark themes, and share a link to one view or element.
  • Export. Save Structurizr JSON, and PlantUML, SVG or PNG files (these need Java; see Export).
  • Query your model. buildzr serve also exposes a read-only JSON Model API for scripts and CI jobs.
  • Run the examples in your browser. Every example in the documentation has a Run Code button that runs it without installing anything.

Learn more

buildzr is approaching 1.0. Read the issue tracker for known problems, and open an issue if something does not work.

buildzr is released under the MIT License.

Metadata

Release files for buildzr 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for buildzr 1.1.0
File Size Uploaded Provenance
buildzr-1.1.0.tar.gz 1.3 MB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for buildzr 1.1.0
File Interpreter ABI Platform
buildzr-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.2 MB

Release files / buildzr-1.1.0.tar.gz

Download URL buildzr-1.1.0.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
837460896086e549447ac557b453b48e83069d4f3f7e81d075d21071c4041ae8
BLAKE2b-256 checksum
How to use checksums
9b771f1ee48ad065fd439db12fbe57da998fc7491a876dda427e7a832e24bbf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / buildzr-1.1.0-py3-none-any.whl

Download URL buildzr-1.1.0-py3-none-any.whl
Size 21.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2568fad4c37efd2d9b5f09f6c02464c893ee4a2b679ce1d0604653200623d4c4
BLAKE2b-256 checksum
How to use checksums
55f90525ae5d80598ddeecec5f0ee69ee2fb0e0e4750f1f5e1da824e153d0dbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Security for buildzr 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for buildzr-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page