Skip to content

Spike: prototype the Playground press→feedback loop #149

Description

@jonocodes

Prototype spike: does the press→feedback loop feel alive?

Throwaway spike to de-risk the whole mocked-demo epic before we build the foundation properly.

Question to answer

When a user presses a deck button in a backend-free browser session, and a fake in-browser "app" reacts (music position advances, a value moves), does it feel alive enough to be worth building out?

Minimal build

  • A MockDaemon stand-in that satisfies the same surface useDeckdSocket produces (a send() + a way to push ServerMessages into the existing callbacks: onLayout, onMediaState, etc.).
  • One ticking virtual music app: holds position, advances on a clock, emits media_state + chrome_media, responds to media_command (pause actually pauses the progress bar).
  • Wire it behind the existing ?demo= path so no real WebSocket is involved.

Success = gate for the epic

  • Pressing play/pause on the deck visibly moves/stops the progress bar.
  • It feels like "using the app," not a static mock.
  • We have a clear read on whether the MockDaemon seam against useDeckdSocket is as clean as the plan assumes.

Throwaway code is fine — the goal is the judgment call, not shippable quality.

Part of the mocked-demo epic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestspikeDesign-doc spike work (input injection, focus watcher, etc.)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions