Skip to content
Marketplace

Template Communication · Chat

Chat

A chat starter: persisted conversations and messages, one scripted assistant whose replies stream in (with stop, retry and simulated outages), unread badges, a two-pane layout, owner/member/viewer personas and four scenarios.

A starting point: runs as a live demo, and copies into a new prototype.

Screenshot · shown in its full screen shell

Live preview

1280×800
Live demo bundled static build Open
Screenshot of Chat

No live preview yet.

Each prototype stores its data in IndexedDB for the address it runs on. Data you create at localhost:5173 is separate from a build at localhost:4173 or a published URL, and the framed preview shares storage with that address opened directly.

Highlights

  • Persisted conversations and messages
  • A scripted assistant whose replies stream, with stop and retry
  • Simulated outages and unread badges
  • Owner, member and viewer personas

Scenarios 4

  • empty
  • active default
  • viewer
  • assistant-outage

Each scenario rebuilds a deterministic world. Open one with ?scenario=<id>.

Spec kit

Every prototype carries a spec any agent can follow to rebuild it in a real app: the files below, in templates/chat/, with generated regions kept in sync with the code.

  • AGENTS.md
  • docs/SPEC.md
  • docs/DATA_MODEL.md
  • docs/FLOWS.md
  • docs/SCREENS.md
  • docs/PERMISSIONS.md

Check that the spec is current

pnpm protoyard spec chat --check

Rebuild kit (ZIP)

pnpm protoyard spec chat --bundle