Collaborative infinite canvas for brainstorming, diagramming, and presentations.
  • JavaScript 53.2%
  • Rust 33.1%
  • HTML 8.6%
  • CSS 5.1%
Find a file
AhmedHanafy725 7707561e0f
All checks were successful
Build and Test / build (push) Successful in 5m47s
lab publish / publish (push) Successful in 23m6s
auto-update-devwhiteboard / update (push) Successful in 23m56s
Merge pull request 'performance enhancements and some bug fixes' (#225) from integration into main
Reviewed-on: #225
2026-06-08 11:40:07 +00:00
.claude Fix linting and formating 2026-04-20 13:25:47 +02:00
.forgejo/workflows ci: authenticate cargo git fetches to private hero_web_template 2026-06-02 13:51:44 +02:00
_beta/hero_whiteboard_app build: switch remaining direct deps to main branch 2026-06-03 17:25:37 +02:00
crates fix(whiteboard): rubber-band selects a drawing only when it crosses the ink 2026-06-08 14:10:26 +03:00
patches build: track upstream main branches and regenerate lockfile 2026-06-03 17:08:14 +02:00
schema chore: auto-commit local changes before pull 2026-05-31 23:52:08 +02:00
schemas feat(board): add board.refresh RPC method with WebSocket broadcast to connected clients 2026-05-27 23:10:27 +02:00
.gitignore build: track upstream main branches and regenerate lockfile 2026-06-03 17:08:14 +02:00
BUILD.md build: switch remaining direct deps to main branch 2026-06-03 17:25:37 +02:00
Cargo.lock build: switch remaining direct deps to main branch 2026-06-03 17:25:37 +02:00
Cargo.toml build: track upstream main branches and regenerate lockfile 2026-06-03 17:08:14 +02:00
INSTRUCTIONS_TECH.md ci: rename FORGEJO_TOKEN to FORGE_TOKEN across all workflows and docs 2026-05-26 13:01:20 +02:00
PURPOSE.md ci: rename FORGEJO_TOKEN to FORGE_TOKEN across all workflows and docs 2026-05-26 13:01:20 +02:00
README.md ci: rename FORGEJO_TOKEN to FORGE_TOKEN across all workflows and docs 2026-05-26 13:01:20 +02:00
SPECIFICATIONS.md feat(kanban): add rich card fields — description, deadline, and tags 2026-05-29 23:06:59 +02:00

Hero Whiteboard

A collaborative visual whiteboard — brainstorm, diagram, plan, present, and document decisions on an infinite canvas with real-time and async collaboration.

Architecture

Hero Whiteboard follows the Hero service model:

Crate Purpose
hero_whiteboard_server Business logic, SQLite storage, OpenRPC API (Unix socket)
hero_whiteboard_sdk JSON-RPC client for the server over Unix socket
hero_whiteboard_admin End-user whiteboard UI + admin dashboard
hero_whiteboard_examples SDK usage examples and integration tests

Sockets

Service Path
Server $PATH_SOCKET/hero_whiteboard/rpc.sock
Admin $PATH_SOCKET/hero_whiteboard/admin.sock

Quick Start

lab service whiteboard --install # Build and install all binaries
lab service whiteboard --start # Register with hero_proc and start
lab service whiteboard --stop # Stop all components
lab service whiteboard --status # Check service status

API

The server exposes a full JSON-RPC 2.0 API over the Unix socket. See the OpenRPC spec for all 45+ methods across these domains:

  • workspace.* — multi-tenant workspace management
  • board.* — board CRUD
  • object.* — whiteboard objects (sticky notes, shapes, text, etc.)
  • connector.* — arrows and connectors between objects
  • comment.* — threaded comments
  • share.* — share links and tokens
  • group.* — groups and permissions
  • user.* — user management
  • rpc.health, rpc.discover — health and OpenRPC discovery

Browser Compatibility

Hero Whiteboard is tested on modern Chromium-based browsers (Chrome, Edge, Brave) and Firefox.

Brave Browser

Brave's fingerprint protection adds noise to the HTML Canvas API (getImageData), which can interfere with Konva.js hit detection used by the whiteboard. Symptoms include:

  • Objects can't be moved (dragging does nothing)
  • Right-clicking an object shows the browser's default menu (with "Paste") instead of the whiteboard's copy/cut/delete menu
  • Behavior is random: some objects work, others don't; refreshing may change which ones

How to fix:

  1. Open brave://settings/shields
  2. Scroll to Fingerprinting and set it to "Allow all fingerprinting", or
  3. Click the Shields icon (lion) in the address bar on the whiteboard page and turn Shields OFF for the site

If the issue persists:

  • Disable Hardware acceleration: brave://settings/system → toggle off "Use graphics acceleration when available"
  • Check brave://flags and disable any fingerprinting-related experimental features
  • Avoid using Private Windows (especially "Private Window with Tor"), which enforce protections that can't be fully disabled

This is a general limitation that affects canvas-based apps (Figma, Miro, etc.) on Brave, not specific to Hero Whiteboard.

Web Frame (Iframe) Limitations

The Web Frame tool embeds external websites using an HTML <iframe>. Many websites block iframe embedding via HTTP headers (X-Frame-Options: DENY/SAMEORIGIN or Content-Security-Policy: frame-ancestors). This is a security feature enforced by the browser and cannot be bypassed by any client-side code.

Sites that typically work

  • https://example.com
  • https://en.wikipedia.org
  • YouTube embeds (https://www.youtube.com/embed/<VIDEO_ID>)
  • CodePen/JSFiddle embeds
  • Most documentation sites (MDN, etc.)
  • Internal/intranet tools (unless they explicitly set blocking headers)

Sites that will NOT work

  • Google, Gmail, Google Docs, Google Maps (standard URLs)
  • Facebook, Twitter/X, Instagram, LinkedIn
  • Most major news sites (NYT, BBC, CNN)
  • Banks and financial services
  • Most GitHub pages

When a site blocks embedding, the web frame shows an "Open in new tab" button as a fallback so you can still access the content.

Tips

  • For YouTube, use the embed URL format: https://www.youtube.com/embed/VIDEO_ID
  • For Google Maps, use the embed URL from "Share → Embed a map"
  • Double-click a web frame to change its URL

Documentation