Getting started
Install playhtml and ship your first live element. Read →
toggles for everyone live!
Communal by default. Shared state, presence, and cursors for shared spaces rather than solitary feeds.
Library-agnostic, fast, expressive. Works with plain HTML, React, or any framework.
No backend to run. Real-time sync and persistence taken care of.
Customize as needed. Extend the library with your own expressive experiences.
<script type="module">
import { playhtml } from "https://unpkg.com/playhtml";
playhtml.init();
</script>
<img can-toggle id="lamp" src="/noguchi-hanging-lamp.png" /> // npm install @playhtml/react @playhtml/common
import { PlayProvider, CanToggleElement } from "@playhtml/react";
<PlayProvider>
<CanToggleElement>
<img id="lamp" src="/noguchi-hanging-lamp.png" />
</CanToggleElement>
</PlayProvider>