Set up your first Bwf project
Clone Bwf, create a small application called my-site, and change the heading on its home page.
1. Install the build tools
Install Node.js 22 (22.12 or later) with npm and Bun. Make sure node --version, npm --version and bun --version work in your terminal.
On macOS, install the Xcode Command Line Tools with xcode-select --install if needed, then install libyaml with brew install libyaml. On Debian or Ubuntu, install the system packages with sudo apt install git curl build-essential clang libyaml-dev.
2. Clone Bwf and start my-site
Open a terminal in a directory where you want to create the sibling folders bwf and my-site. Run this block there.
git clone https://github.com/vcombey/bwf.git &&
cd bwf &&
npm ci &&
./scripts/bwf new ../my-site &&
cd ../my-site &&
../bwf/scripts/bwf dev
npm ci runs in the framework checkout. dev runs in your new app using the launcher from the sibling checkout. The first launch downloads Bend and builds Bwf’s development tools. This can take a few minutes. The starter runs without a PostgreSQL server.
3. Open and edit my-site
Wait for Bwf listening, then open http://127.0.0.1:18088/. Change the heading in View/Home.bsx and save it. After the server reloads, refresh the page.
If port 18088 is in use, run BWF_PORT=18089 ../bwf/scripts/bwf dev from my-site and open port 18089. From that directory you can also export the home page to disk with ../bwf/scripts/bwf static.
To run bwf by name, run ./scripts/install-cli from the Bwf checkout and add the directory it prints to your PATH.
4. Open the Journal example
Stop the starter with Ctrl+C. To run the Journal, install libpq, OpenSSL 3 and the PostgreSQL server tools. If Bwf can’t find postgres, initdb and pg_ctl, set BWF_PG_BIN to the directory containing them.
cd ../bwf &&
./scripts/bwf dev
The server prepares a local database under .bwf/postgres and runs the migrations. Open the Journal on port 18088 after startup. Continue with the Journal tutorial to register two readers, publish an article, and open it from another session.