SelfHost HubSelfHost Hub
中文
← Back to all services

GitHub repository information

Fetched · November 24, 2026
★ 2,693Latest: v2.18.45Updated: November 22, 2026
README
# WBO

WBO is an online collaborative whiteboard that allows many users to draw simultaneously on a large virtual board.
Connected users see edits in real time; the server saves boards as SVG files.
Use it for drawing, design, teaching, or collaborative diagrams.

Try [wbo.ophir.dev](https://wbo.ophir.dev). For contributors, see the short
[architecture guide](./ARCHITECTURE.md) and [engineering policies](./AGENTS.md).

## Screenshots

<table>
 <tr>
  <td> The <i><a href="https://wbo.ophir.dev/boards/anonymous">anonymous</a></i> board
  <td> <img width="300" src="https://user-images.githubusercontent.com/552629/59885574-06e02b80-93bc-11e9-9150-0670a1c5d4f3.png">
  <td> collaborative diagram editing
  <td> <img alt="Screenshot of WBO's user interface: architecture" width="300" src="https://user-images.githubusercontent.com/552629/59915054-07101380-941c-11e9-97c9-4980f50d302a.png" />
  
  <tr>
   <td> teaching math on <b>WBO</b>
   <td> <img alt="wbo teaching" width="300" src="https://user-images.githubusercontent.com/552629/59915737-a386e580-941d-11e9-81ff-db9e37f140db.png" />
   <td> drawing art
   <td> <img alt="kawai cats on WBO" width="300" src="https://user-images.githubusercontent.com/552629/120919822-dc2c3200-c6bb-11eb-94cd-57a4254fbe0a.png"/>
</table>

## Running your own instance of WBO

### Docker

The Docker image is available as [`lovasoa/wbo`](https://hub.docker.com/r/lovasoa/wbo).

You can run the following bash command to launch WBO on port 5001, while persisting the boards outside of docker:

```bash
mkdir wbo-boards # Create a directory that will contain your whiteboards
chown -R 1000:1000 wbo-boards # Make this directory accessible to WBO
docker run -it --publish 5001:80 --volume "$(pwd)/wbo-boards:/opt/app/server-data" lovasoa/wbo:latest # run wbo
```

You can then access WBO at `http://localhost:5001`.

The official Docker image does not force an IP source. By default the application uses `WBO_IP_SOURCE=remoteAddress`. If you run the container behind a trusted proxy or CDN, set `-e WBO_IP_SOURCE=...` explicitly, for example `X-Forwarded-For`, `Forwarded`, or `CF-Connecting-IP`.

### Node.js

Install Node.js 26, then:

```sh
git clone https://github.com/lovasoa/whitebophir.git
cd whitebophir
npm ci --omit=dev
PORT=5001 npm start
```

Set `HOST=127.0.0.1` to listen only on loopback when using a reverse proxy.
For development, use `npm ci` to include test and lint dependencies.

### Running WBO on a subfolder

By default, WBO launches its own web server and serves all of its content at the root of the server (on `/`).
If you want to make the server accessible with a different path like `https://your.domain.com/wbo/` you have to setup a reverse proxy.
Set `WBO_BASE_PATH=/wbo` so generated links, redirects, and canonical URLs point at the external subfolder.
See instructions on our Wiki about [how to setup a reverse proxy for WBO](https://github.com/lovasoa/whitebophir/wiki/Setup-behind-Reverse-Proxies).

## Translations

WBO is available in multiple languages. The translations are stored in [`server/http/translations.json`](./server/http/translations.json).
If you feel like contributing to this collaborative project, you can [translate WBO into your own language](https://github.com/lovasoa/whitebophir/wiki/How-to-translate-WBO-into-your-own-language).

## Authentication

Set `AUTH_SECRET_KEY` to require a signed JSON Web Token. Pass it in the
`token` query parameter, such as `/boards/team?token=...`. With JWT authentication
disabled, anyone with a valid board URL can open it and edit writable boards.

Tokens may contain global roles or board-scoped roles:

```json
{
  "roles": ["editor:team", "moderator:planning", "reader:archive"]
}
```

When any role names a board, the token can open only the named boards. Use
standard JWT expiry claims to limit token lifetime.

| Access | Writable board | Read-only board | Clear and moderation |
| --- | --- | --- | --- |
| Public visitor, JWT disabled | Edit | View | No |
| Board-scoped reader | Edit | View | No |
| Editor | Edit | Edit | No |
| Moderator | Edit | Edit | Yes |

A reader role only enforces viewing on a board that is itself read-only.
Permission resolution is defined in
[board_capabilities.mjs](./server/auth/board_capabilities.mjs).

### Moderators

`WBO_BOARD_MODERATORS` grants moderator access through the user's
`wbo-user-secret-v1` cookie, including on instances without JWT authentication.
Configure space-separated groups in the form `team:<secret1>,<secret2>` using
the actual cookie values. Treat these values as credentials.

Permanent moderators can grant temporary moderator access from the users menu.
Temporary grants and bans are local to the board and process and disappear on
restart. Temporary moderators can warn and ban, but cannot clear the board, revoke
bans, or delegate their role. Ordinary reports disconnect the reporter and
target without creating a ban. Published text matching the personal-information
warning automatically alerts online moderators on every board, without banning.

### Read-only boards

Stop the server before editing stored board files so an in-memory save cannot
overwrite the change. Back up `board-<boardName>.svg` in `WBO_HISTORY_DIR`, set
`data-wbo-readonly="true"` on its root `<svg>`, then restart the server. Set it to
`false` to make the board writable again. Editors and moderators can still edit
read-only boards. Legacy JSON boards are migrated to SVG when loaded.

## Configuration

Environment variables are read at startup; see [`configuration.mjs`](./server/configuration.mjs). Common settings:

- `WBO_HISTORY_DIR` : configures the directory where the boards are saved. Defaults to `./server-data/`.
- `WBO_BASE_PATH` : optional external URL path prefix, such as `/wbo`, for deployments mounted under a reverse-proxy subfolder.
- `WBO_HTML_HEAD_SNIPPET_PATH` : trusted HTML inserted before `</head>`, read once at startup. Scripts can read the package version from `document.documentElement.dataset.wboVersion`.
- `WBO_MODERATOR_REQUIRED_BOARDS` : comma-separated board names (e.g. `anonymous`), empty/disabled by default. Listed boards pause editing and show a safety/recruitment notice while no permanent or unexpired temporary moderator is online.
- `WBO_MAX_CONSTRUCTIVE_ACTIONS_PER_IP` : the constructive per-IP write limit profile. Use compact entries such as `*:40/10s anonymous:20/10s`.
- `WBO_MAX_DESTRUCTIVE_ACTIONS_PER_IP` : the destructive per-IP write limit profile. Use compact entries such as `*:190/60s anonymous:95/60s`.
- `WBO_IP_SOURCE` : `remoteAddress` (default) ignores forwarded headers. Behind a trusted proxy, set `X-Forwarded-For`, `Forwarded`, or a custom header such as `CF-Connecting-IP` to trust forwarded client IP, host, and protocol.
- `AUTH_SECRET_KEY` : If you would like to authenticate your boards using jwt, this declares the secret key.

## Monitoring

Server logs use stdout/stderr and `LOG_LEVEL`. Set
`OTEL_EXPORTER_OTLP_ENDPOINT` for OTLP export; `OTEL_*` settings control
resources and sampling.

Browser telemetry uses User Timing entries named `wbo.*`; measures carry `detail` diagnostics.

## Storage and recovery

Back up `WBO_HISTORY_DIR`. Accepted edits are saved asynchronously, so a crash
can lose changes since the last completed save. Run one server process per
history directory; independent writers are not supported.

Failed loads leave unreadable SVGs in place; a validated `.svg.bak` replaces
them after quarantine. This staging file is not a durable backup. See the
[architecture guide](./ARCHITECTURE.md) for persistence and replay boundaries.

## SVG preview

Open `/preview/<boardName>` to download a standalone SVG preview, for example
[the anonymous board preview](https://wbo.ophir.dev/preview/anonymous).

## Releases

Only `lovasoa/whitebophir` publishes releases; forks skip preparation. Successful
dependency CI merges updates and tests master before bumping the package and
lockfile patch version, tagging, and deploying. Manual version tags also run CI
before deployment. Retry failed deployment jobs to reuse their release tag.

Discover more