Skip to content

Install and run ​

PBrokkR comes as two programs in one folder:

ProgramWhat it is
pbrokkrThe app. Double-click it: it opens the PBrokkR window and stops when you close the window.
pbrokkr-cliThe command line (pbrokkr-cli generate, batch, params, mcp…), for scripts, batches and AI agents.

Download (no Python needed) ​

Open the Releases page of the repository and download the file of your system (SHA256SUMS.txt holds the checksums of all of them):

SystemInstallerOr the zip (no install)
Windowspbrokkr-<version>-windows-x64-setup.exepbrokkr-<version>-windows-x64.zip
macOS (Apple silicon)pbrokkr-<version>-macos-arm64.dmgpbrokkr-<version>-macos-arm64.zip
Linuxpbrokkr-<version>-linux-x64.zip
  • Windows installer: installs for your user (no administrator; the first page offers "all users"), adds PBrokkR to the Start menu (and, if ticked, the desktop), and puts pbrokkr-cli on the PATH (ticked by default). A newer installer replaces the old version; uninstall from Settings > Apps, which also takes it off the PATH.
  • macOS disk image: open it and drag PBrokkR.app onto Applications. To use the command line, double-click Add pbrokkr-cli to PATH.command in the image afterwards.
  • Zip: unzip it anywhere, for example C:\Tools\PBrokkR, and double-click pbrokkr (pbrokkr.exe).

The program folder is never written to: your work goes to the library, and installing or uninstalling never touches it.

The window uses Edge or Chrome in app mode; without either, PBrokkR opens in your default browser. Starting pbrokkr again while it runs opens another window on the same app. The programs are not signed yet: Windows SmartScreen may ask you to confirm the first start (More info > Run anyway), and macOS may need right-click > Open.

To use the command line from any folder with the zip, run its script once (current user only, no administrator), then open a new terminal and try pbrokkr-cli --version:

  • Windows: double-click add-to-path.cmd (add-to-path.cmd /remove undoes it).
  • macOS / Linux: ./add-to-path.sh in that folder (./add-to-path.sh --remove undoes it). It adds one marked line to your shell start-up file (~/.zprofile on macOS, ~/.profile on Linux). Run it again if you move the folder.

Or call it by its full path:

powershell
C:\Tools\PBrokkR\pbrokkr-cli.exe generate rock.jpg -p photo_rock -o out\rock

From the source code ​

For development, or on a system without a download. You need Python 3.10 or newer (3.13 is what it is tested with) and two libraries, numpy and Pillow, installed inside the project folder; nothing goes into your system Python.

powershell
py -3.13 -m venv .venv
$env:PIP_CACHE_DIR = "$PWD\.cache\pip"
.venv\Scripts\python -m pip install -r requirements.txt
.\pbrokkr.cmd                   # the app window
.\pbrokkr-cli.cmd --help        # the command line
sh
python3 -m venv .venv
PIP_CACHE_DIR="$PWD/.cache/pip" .venv/bin/python -m pip install -r requirements.txt
./pbrokkr.sh                    # the app window
./pbrokkr-cli.sh --help         # the command line

From source, pbrokkr-cli in this site means .\pbrokkr-cli.cmd (Windows) or ./pbrokkr-cli.sh. The older launchers pbrgen.cmd / pbrgen.sh and python -m pbrgen still work and take the same commands.

The server from the command line ​

powershell
pbrokkr-cli serve --app

--app opens PBrokkR in its own window. Use --open instead to open a normal browser tab, or neither and go to http://127.0.0.1:8765 yourself. The server only listens on your own computer (127.0.0.1). Press Ctrl+C to stop it, or add --exit-when-closed to stop it when the window is closed (what pbrokkr does).

OptionWhat it does
--port 9000Use another port when 8765 is taken.
--library D:\Textures\PBrokkRKeep your materials, exports and layouts in this folder for this session.

pbrokkr takes --port and --library too. Without --library, the library is the folder set in File > Preferences, and before you set one it is Documents/PBrokkR. See Library and files.

Check that it works ​

powershell
pbrokkr-cli generate --kind procedural -p proc_bubbles -o out\bubbles --sheet

This needs no input image. It writes the maps of a bubble pattern to out\bubbles, with a contact sheet (*_sheet.png) that shows them side by side.

Feedback ​

Help > Leave your feedback sends a rating and comments to the author. It is the only thing PBrokkR ever sends over the internet, and only when you click Send.