Skip to content

Install and run ​

The easiest way is the ready-made program: download the zip for your system from the releases page, unzip it and open askrgarden. No Python or Node needed; see Desktop programs. The rest of this page runs AskrGarden from its source folder, where everything is installed inside the repository folder: nothing goes into your system's Python or Node.

What you need ​

ToolVersionUsed for
Python3.12 or newer (developed on 3.13)the core, the command line, the local server
Node.js22 or newerbuilding the editor once (web/dist)
A browserEdge, Chrome or Firefoxthe editor; Edge or Chrome for the app window (--app)

The core needs only one Python package, numpy.

Install on Windows ​

Open PowerShell in the repository folder:

powershell
py -3.13 -m venv .venv
$env:PIP_CACHE_DIR = "$PWD\.cache\pip"
.venv\Scripts\python -m pip install -r requirements.txt
cd web; npm install; npm run build; cd ..

The first line makes a private Python environment in .venv. The last line builds the editor into web/dist; do it again after you update the source.

Install on macOS or Linux ​

sh
python3 -m venv .venv
PIP_CACHE_DIR="$PWD/.cache/pip" .venv/bin/python -m pip install -r requirements.txt
(cd web && npm install && npm run build)

Open the editor ​

powershell
.\askrgarden-cli.cmd serve --open

The editor opens at http://127.0.0.1:8770. On macOS and Linux use ./askrgarden-cli.sh the same way. .\askrgarden.cmd (./askrgarden.sh) starts it the way the released program does: in its own window, stopping when the window is closed.

OptionWhat it does
--openopens your default browser on the editor
--appopens the editor in its own window, without the browser's bars (Edge or Chrome; otherwise the browser)
--port 8780another port, if 8770 is taken
--library D:\Treesuse this folder for your trees and exports for this run
--exit-when-closedstop the server once the editor window is closed

The server listens only on your own computer (127.0.0.1). It has no accounts and is not meant to be put on a network.

Try the command line ​

powershell
.\askrgarden-cli.cmd new out\oak.treegen.json --preset broadleaf
.\askrgarden-cli.cmd export out\oak.treegen.json -f glb -o out\oak

The first command writes a project from a preset; the second builds it and writes out\oak\oak.glb with its textures and oak_export.json. Every command is listed in the command-line reference.

Run the tests (optional) ​

powershell
.venv\Scripts\python -m pytest -q tests

If something goes wrong ​

SymptomWhat to check
The browser shows a blank page or "not found"the editor is not built: run npm run build in web/
py is not foundinstall Python 3.12+ from python.org, or use python instead of py -3.13
Port 8770 is in useserve --port 8780
--app opens a normal browser tabEdge or Chrome was not found; the editor still works in the tab