Skip to content
playhtml
support

Examples

Browse complete PlayHTML recipes and smaller live demos from across the docs. Recipes open on their own page and can be remixed in the playground. Docs demos jump to the guide that explains them. The newest sites people made with PlayHTML show at the top. The full list lives in the playhtml.fun gallery.

To test a collaborative example, open it in two browser windows. Use a regular and private window, or use two different browsers. Then follow the steps on the example page.

Examples

24 examples

Recipestarter

Drag with can-move

Drag two shared stickers inside a bounded area and keep their positions across reloads.

  • can-move
  • dragging
  • bounds
Recipestarter

Switch with can-toggle

Share one persistent on or off switch with every connected browser.

  • can-toggle
  • switch
  • boolean
Recipestarter

Presence with can-hover

Show an ephemeral hover effect to everyone while any connected reader is hovering.

  • can-hover
  • hover
  • presence
Recipestarter

Emoji-only mirrored textarea

Filter a textarea to emoji while can-mirror shares its current value.

  • can-mirror
  • textarea
  • input filtering
Recipestarter

Growing mirrored list

Append direct list children and let can-mirror share the resulting DOM.

  • can-mirror
  • dynamic DOM
  • lists
Recipestarter

Shared click counter

Increment one persistent count with a merge-safe can-play data update.

  • can-play
  • counter
  • shared data
Recipeintermediate

Shared guestbook

Add short notes to a persistent shared list capped at the latest 20 entries.

  • can-play
  • guestbook
  • shared list
Recipeintermediate

Shared doodle strip

Draw a tiny face and add it to a shared strip capped at 20 doodles.

  • can-play
  • drawing
  • canvas
Recipestarter

Your name and color

Show your saved name and color, and let readers change them for everyone.

  • people
  • names
  • colors
Recipestarter

Page status board

Everyone picks a status and sees everyone else's, gone when they leave.

  • people
  • presence
  • status
Recipeintermediate

Online presence indicator

Show one live colored dot for each reader currently on the page.

  • can-play
  • presence
  • online
Recipeintermediate

Custom cursors

Draw everyone else's cursor as an emoji in their color with onCustomCursorRender.

  • cursors
  • presence
  • custom render
Recipestarter

Shared page color

Store one page-wide background color in a named page channel that any code can write.

  • page data
  • color
  • persistent state
Recipestarter

Borrow an element from another page

Spin the logo stamp from the playhtml.fun homepage, from any other page.

  • can-spin
  • shared elements
  • cross-page
Recipeintermediate

Send a rain event

Trigger a temporary rain effect for everyone currently connected.

  • events
  • animation
  • transient
Recipeintermediate

Live reactions

Broadcast short-lived emoji reactions without storing shared state.

  • events
  • emoji
  • transient
Recipeadvanced

Shared prize wheel

Share when a spin started and where it lands, so every reader sees the same result.

  • can-play
  • animation
  • requestUpdate
Recipeintermediate

Shared audio file

Play, pause, and restart one audio file for everyone using a shared timeline.

  • can-play
  • audio
  • audio file
Recipeadvanced

Synchronized sound

Send a one-shot cue to everyone currently connected, or share a loop that late joiners can join.

  • can-play
  • events
  • audio
Recipeadvanced

Shared Matter.js physics

Drag, drop, add, and reset a small set of physics bodies shared across browsers.

  • can-play
  • physics
  • Matter.js
Docs demostarter

Grow a balloon

Grow or shrink a balloon and share its current scale.

  • can-grow
  • scale
  • click
Docs demostarter

Spin a wheel

Drag a wheel to rotate it for everyone on the page.

  • can-spin
  • rotation
  • dragging
Docs demointermediate

Duplicate rabbits

Create shared copies from one template and reset the collection.

  • can-duplicate
  • cloning
  • dynamic elements
Docs demoadvanced

Native controls mirror playground

Test shared forms, contenteditable fields, hover, focus, and nested elements.

  • can-mirror
  • forms
  • contenteditable
playhtml