Installation

This is the one place where the installation is described. The README, the tutorial and the manual link here.

What you need

What Why

Required

The bausteinsicht program (one file, no installer, no runtime). Download it as described below.

It reads and writes the model and synchronizes it with the diagram.

Recommended

draw.io (also called diagrams.net), a free diagram editor: the desktop app, or the draw.io extension of VS Code.

To open and edit the diagrams that Bausteinsicht generates (architecture.drawio). Everything except opening diagrams and the PNG/SVG export works without it.

Recommended

A text editor with JSON support, for example VS Code.

The model is a text file (architecture.jsonc); with the JSON Schema the editor completes keys and flags typos.

Optional

The draw.io desktop app on a machine without a screen (CI, container), plus xvfb and D-Bus; see Headless and CI export.

Only for bausteinsicht export to PNG/SVG on a server.

Go is only needed for go install and for building from source. You do not need it to use a release.

Download a release

All releases are on the releases page. The files are named Bausteinsicht_<version>_<os>_<arch>.tar.gz (.zip on Windows), for example Bausteinsicht_1.2.1_linux_amd64.tar.gz.

Your computer <os>_<arch>

Linux, Intel or AMD (uname -m shows x86_64)

linux_amd64

Linux, ARM 64 bit (aarch64) / Raspberry Pi 32 bit (armv7l)

linux_arm64 / linux_arm

macOS, Intel (uname -m shows x86_64)

darwin_amd64

macOS, Apple Silicon (uname -m shows arm64)

darwin_arm64

Windows, Intel or AMD (Settings, System, About: "x64-based processor")

windows_amd64

Windows on ARM

windows_arm64

Linux and macOS

# the latest version and your platform
VERSION=$(curl -sI https://github.com/docToolchain/Bausteinsicht/releases/latest | sed -n 's|^[Ll]ocation: .*/tag/v\([^[:space:]]*\).*|\1|p' | tr -d '\r')
OS=linux      # or: darwin
ARCH=amd64    # or: arm64, arm (see the table)

curl -Lo bausteinsicht.tar.gz "https://github.com/docToolchain/Bausteinsicht/releases/download/v${VERSION}/Bausteinsicht_${VERSION}_${OS}_${ARCH}.tar.gz"
tar xzf bausteinsicht.tar.gz bausteinsicht

The program is the single file bausteinsicht. Put it in a directory that is on your PATH, so that you can start it from every directory:

sudo mv bausteinsicht /usr/local/bin/              # for all users
# without sudo: mkdir -p ~/.local/bin && mv bausteinsicht ~/.local/bin/
#               and make sure ~/.local/bin is in your PATH (add it to ~/.bashrc or ~/.zshrc)

PATH is the list of directories in which your shell looks for programs. If bausteinsicht --version says "command not found", the directory with the file is not in the list.

Windows (PowerShell)

$version = (Invoke-RestMethod https://api.github.com/repos/docToolchain/Bausteinsicht/releases/latest).tag_name.TrimStart('v')
Invoke-WebRequest -Uri "https://github.com/docToolchain/Bausteinsicht/releases/download/v$version/Bausteinsicht_${version}_windows_amd64.zip" -OutFile bausteinsicht.zip
Expand-Archive bausteinsicht.zip -DestinationPath "$env:LOCALAPPDATA\Bausteinsicht" -Force

# add the folder to your PATH (new terminals pick it up)
[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", "User") + ";$env:LOCALAPPDATA\Bausteinsicht", "User")

Open a new terminal; bausteinsicht --version must now work. On Windows on ARM use windows_arm64 instead of windows_amd64. (These commands use the file names of the release; if one fails on your machine, download the zip from the releases page and unpack it by hand.)

Check it

bausteinsicht --version

prints bausteinsicht version <version>. The checksums.txt of each release lists a SHA-256 for every file, and every archive comes with an SBOM (.spdx.json, .cyclonedx.json).

With Go

Needs Go 1.26 or newer:

go install github.com/docToolchain/Bausteinsicht/cmd/bausteinsicht@latest

The program ends up in $(go env GOPATH)/bin, which has to be in your PATH (see PATH).

From source

git clone https://github.com/docToolchain/Bausteinsicht.git
cd Bausteinsicht
make build        # produces ./bausteinsicht

make build_<os>_<arch> (for example make build_windows_amd64) builds for another platform into dist/, make build_all for all of them. Contributors: see CONTRIBUTING.md for the development environment.

Headless and CI export

bausteinsicht export (PNG/SVG images) starts the draw.io desktop app in the background. On a computer with a screen nothing else is needed. On a server, in a container or in CI there is no screen, so the app needs:

  • the draw.io desktop app (drawio on the PATH, or --drawio-path),

  • a virtual screen: xvfb-run -a bausteinsicht export,

  • D-Bus running (sudo mkdir -p /run/dbus && sudo dbus-daemon --system --fork),

  • --no-sandbox where the container has no user namespaces (the drawio-export wrapper of the devcontainer sets it).

On native Windows and macOS none of this is needed; under WSL2 treat it as Linux. The details are in the user manual.

Next