mirror of
https://github.com/D-Modem/bbs.git
synced 2026-11-28 17:38:04 -08:00
A board with oekaki = yes has a drawing board in its post form (pen, eraser, fill, palette, sizes, undo and redo), in plain JavaScript. The drawing is posted as a PNG through the usual upload, carrying its strokes and their timing in a private okST chunk (zlib-compressed JSON), so the file replays wherever it goes. The server checks the chunk on every PNG (size, canvas, limits, a guard against bombs) and takes out a bad one, keeping the picture; a good one gives the post a Replay link, its drawing time, and on oekaki boards Draw over, which starts a reply from its strokes. boards.json and posts' JSON say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr