# 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
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 |
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 ( |
Recommended |
A text editor with JSON support, for example VS Code. |
The model is a text file ( |
Optional |
The draw.io desktop app on a machine without a screen (CI, container), plus |
Only for |
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 ( |
|
Linux, ARM 64 bit ( |
|
macOS, Intel ( |
|
macOS, Apple Silicon ( |
|
Windows, Intel or AMD (Settings, System, About: "x64-based processor") |
|
Windows on ARM |
|
Linux and macOS
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 (
drawioon thePATH, 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-sandboxwhere the container has no user namespaces (thedrawio-exportwrapper 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
-
Start here: which page to read in which order.
-
The Getting Started tutorial takes you from
initto the first diagram.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.