Skip to content

Demo level 2: real short-lived boards on the server #76

Open

Description

@ascorbic

The public demo (tack.social/try, #75) runs entirely in the browser: the board is a local Yjs doc, the forge is pretend, and AI goes through a small same-origin endpoint that's sent the selected items' text (because there's no server copy of the board to read from). That keeps it cheap and unmoderated, but it isn't quite "the real thing".

Level 2: give each visitor a real, short-lived board on a server, so the demo runs exactly as an instance does.

  • A board Durable Object per visitor, synced like any board (y-partyserver), with the pretend forge's cards.
  • AI, stack naming and Auto-stack run in the board's Durable Object, reading the server's own copy, exactly as an instance does. No demo-only AI path.
  • Real multiplayer: open two tabs (or share with someone, if we allow it) and see each other's cursors.

Needs

  • Boards that expire (hours, not days) and can't be shared or used to host content: unlisted, noindex, no public embeds or OG images, size caps.
  • Abuse limits: boards per IP, shapes per board, the AI budget.
  • A cost check for Durable Object storage and requests at demo traffic.
  • A fallback to the in-browser demo when the server's busy or down.

When: only if the in-browser demo drifts from the product, or we want multiplayer in it. Until then, level 1 plus the real AI endpoint is enough.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions