项目 / lovasoa/whitebophir

lovasoa/whitebophir

行业推荐
语言 JavaScript标签 collaborativejavascriptwhiteboardteachingeducationdrawart数据更新 2026-11-23 06:44:28 · 仓库 2026-11-22

一段话介绍

在线协作白板 WBO,供多人同时在同一块虚拟板上绘画,修改会实时同步,服务端把白板存为 SVG。可用于绘图、设计、教学或协作示意图。可先到 [wbo.ophir.dev](https://wbo.ophir.dev) 试用。若要自行部署,可用 Docker 镜像 `lovasoa/wbo`:先建立用于保存白板的目录并调整权限,再按[仓库 README](https://github.com/lovasoa/whitebophir)把容器 80 端口映射到本机 5001 端口,然后访问 `http://localhost:5001`。

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
Online collaborative Whiteboard that is simple, free, easy to use and to deploy
2,693累计星
489Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景 教育 暂无可用场景

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
安装或使用说明见 https://github.com/lovasoa/whitebophir/wiki/Setup-behind-Reverse-Proxies。
特点或设计要点
官方镜像默认用 `WBO_IP_SOURCE=remoteAddress` 识别来源地址。若放在受信任的代理或 CDN 后面,需按说明显式设置 `WBO_IP_SOURCE`,例如 `X-Forwarded-For`、`Forwarded` 或 `CF-Connecting-IP`。贡献者可参阅仓库中的架构说明。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-11-22 · 语言 JavaScript · 贡献者 —
javascript

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 8,110 字节。

# 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.
↑