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.

Try buildzr in your browser

No install: edit a model and watch the viewer update.

  • 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

The quickest way is the in-browser demo: edit a model and run it, with nothing to install.

To run buildzr on your machine, install uv (it finds or fetches a compatible Python) and 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.11 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

Found a problem? Check the issue tracker for known issues, and open one if something does not work.

buildzr is released under the MIT License.

Metadata

Release files for buildzr 1.2.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.2.0
File Size Uploaded Provenance Actions
buildzr-1.2.0.tar.gz 1.3 MB With provenance Details for buildzr-1.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 23.2 MB

Release files / buildzr-1.2.0.tar.gz

Download URL buildzr-1.2.0.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
2b14abaa1f80ba22d3071102ebf8c030775735a0781fef9aefa70b1d9ea936fc
BLAKE2b-256 checksum
How to use checksums
616666045f4c79250ca7fdd8db6e9d43d8b71ab6dadba656f43297d3bcfb3f72
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 Nov 4, 2026.

Transparency log

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

Download URL buildzr-1.2.0-py3-none-any.whl
Size 21.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f32ce458e296177a86da0c3ddb6d2749c825143ac23142207e9242644e6dcd5a
BLAKE2b-256 checksum
How to use checksums
c07a5b28529b92a3abdffa4c7c7733765103051ee4a42d7ee0c1ef563a75c6fa
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 Nov 4, 2026.

Transparency log

Security for buildzr 1.2.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for buildzr-1.2.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 Nov 4, 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.2.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