Viewers of a shared board can leave comments. They persist across visits and live in the storage that hosts the share — your own D1 database if you set up private storage.
How viewers comment
The shared-board viewer has a Comments button in the top-right corner, with a badge showing how many comments the board has. It opens a right-side panel:
- The panel lists every comment on the board, oldest first, with author and time.
- Comments pinned to a position show as numbered markers on the canvas; clicking a marker opens the panel and scrolls to that comment.
- The form at the bottom takes a display name and the comment text.
No account is required. The display name is remembered in the viewer’s browser (localStorage) and can be changed with the pencil button next to it; a comment left without a name is posted as Anonymous.
The panel refreshes every 15 seconds, so a conversation between two people with the link updates on its own, with a soft sound when a new comment arrives.
Reading comments back in the app
Comments are not pulled back into the app UI — open the share URL in a browser to read them.
If the share is hosted on your own Cloudflare account, the D1 table is queryable directly:
npx wrangler d1 execute moodboard-comments --command "SELECT * FROM comments WHERE share_id = '<share-id>';"
Delete a comment
There is no in-app moderation panel. On your own storage, delete from the D1 table:
npx wrangler d1 execute moodboard-comments --command "DELETE FROM comments WHERE id = '<comment-id>';"
Or use the Cloudflare D1 dashboard UI. Stop sharing removes the share and all of its comments in one go.
Privacy
Comments are public. Anyone with the share URL can read them, and anyone with the URL can post — there is no spam challenge on the comment form. Treat shared boards as public; do not invite comments on confidential boards.
Leave a Reply