Back to search
playhtml
MarketplaceWorks with Claude CodeGitHubIncomplete
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Checked today
Check it deeper on your machine
It has changed since its scan on 14 Nov 2026.
As a Claude Code plugin, install it and then ask Claude Code:
/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/spencerc99/playhtml with scanskillsafety
Or from a terminal, clone it and run it:
git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/spencerc99/playhtml'
It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.
Badge for your README
Markdown
[](/listings/spencerc99--playhtml)HTML
<a href="/listings/spencerc99--playhtml"><img src="/api/listings/spencerc99--playhtml/badge.svg" alt="findsafeskills safety rating" /></a>Install
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
.claude-plugin/marketplace.json · Manifest · 17 lines
- {
- "name": "playhtml",
- "owner": {
- "name": "Spencer Chang",
- "url": "https://github.com/spencerc99"
- },
- "metadata": {
- "description": "Plugins for building with the playhtml library"
- },
- "plugins": [
- {
- "name": "playhtml",
- "source": "./claude-plugin",
- "description": "Skill for building collaborative, real-time HTML elements with playhtml. Covers APIs, data types, and common mistakes."
- }
- ]
- }
README.md · README · 147 lines
- # <a href="https://playhtml.fun">playhtml</a> 🛝🌐 [](https://www.npmjs.com/package/playhtml) [](https://www.npmjs.com/package/playhtml) [](https://www.npmjs.com/package/playhtml)
- _interactive, collaborative HTML elements with a single data attribute_
- playhtml is a fast, small (~300KB), library-agnostic, and expressive library for magically creating collaborative interactive HTML elements that persist their state across sessions. It aims to be infrastructure for creating lived-in, alive internet spaces filled with traces of past visitors and the life of present visitors.
- ```html
- <div id="couch" can-move style="display: inline-block; font-size: 80px">🛋</div>
- ```
- That's it. The couch is draggable for everyone on the page, and its position persists across sessions.
- https://github.com/spencerc99/playhtml/assets/14796580/00e84e15-2c1c-4b4b-8e15-2af22f39db7a
- **📚 [Full documentation →](https://playhtml.fun/docs/)**
- playhtml is in beta and actively developed. Join the [Discord](https://discord.com/invite/SKbsSf4ptU) to get help and show what you've built.
- ## 30-second install
- **Vanilla HTML** — drop in from a CDN, no build step:
- ```html
- <script type="module">
- import { playhtml } from "https://unpkg.com/playhtml";
- playhtml.init();
- </script>
- <div id="couch" can-move style="display: inline-block; font-size: 80px">🛋</div>
- ```
- **React:**
- ```bash
- npm install playhtml @playhtml/react
- ```
- ```tsx
- import { PlayProvider, CanMoveElement } from "@playhtml/react";
- <PlayProvider>
- <CanMoveElement>
- <div id="couch" style={{ display: "inline-block", fontSize: 80 }}>🛋</div>
- </CanMoveElement>
- </PlayProvider>;
- ```
- See [getting started](https://playhtml.fun/docs/) for both paths in depth. React users should also read the [React API reference](https://playhtml.fun/docs/reference/react-api/).
- ## What's in the box
- **Built-in capabilities** — drop these attributes on any element:
- | Attribute | What it does |
- | --------------- | ------------------------------------------------------------- |
- | `can-move` | Drag anywhere; position persists and syncs |
- | `can-toggle` | Click to flip an on/off state |
- | `can-spin` | Rotate by dragging |
- | `can-grow` | Click to scale up, alt-click to scale down |
- | `can-duplicate` | Click to clone a target element |
- | `can-mirror` | Auto-sync attributes, children, and form state (experimental) |
- | `can-hover` | Sync hover state across users |
- | `can-play` | Fully custom capability with your own logic |
- Each has a live demo and full docs in the [capabilities reference](https://playhtml.fun/docs/capabilities/).
- **Beyond capabilities:**
- - **[Element data](https://playhtml.fun/docs/data/data-essentials/)** — persistent, synced state scoped to a single element
- - **[Page-level data](https://playhtml.fun/docs/data/page-data/)** — shared data channels not tied to DOM elements (counters, votes, etc.)
- - **[Presence & cursors](https://playhtml.fun/docs/data/presence/)** — ephemeral per-user state with custom channels, plus multiplayer cursors
- - **[Events](https://playhtml.fun/docs/data/events/)** — fire-and-forget broadcasts for transient actions (confetti, pings)
- - **[Shared elements](https://playhtml.fun/docs/advanced/shared-elements/)** — cross-page and cross-domain state for interconnected sites
- - **[Dynamic elements](https://playhtml.fun/docs/advanced/dynamic-elements/)** — `setupPlayElement` and `selector-id` for runtime-added nodes
- - **[SPA navigation](https://playhtml.fun/docs/advanced/navigation/)** — works with Astro ViewTransitions, React Router, Next.js, htmx boost, Turbo
- ## Building with AI
- Point any coding agent (Claude, Codex, Cursor, Copilot, ChatGPT, ...) at one guide:
- ```text
- Read https://playhtml.fun/docs/llms.txt first, then help me build a playhtml element that...
- ```
- Or install it as a skill so your agent picks it up automatically:
- ```bash
- npx skills add spencerc99/playhtml --skill building-playhtml-elements
- ```
- More options in the [building with AI](https://playhtml.fun/docs/integrations/building-with-ai/) guide.
- ## Examples
- - Live demos at [playhtml.fun](https://playhtml.fun) and [playhtml.fun/experiments/](https://playhtml.fun/experiments/)
- - Source examples in `website/` and `packages/react/examples/`
- - Capability demos (interactive, running side-by-side with the code) on every [capabilities page](https://playhtml.fun/docs/capabilities/)
- ## Help & Community
- - **Docs:** [playhtml.fun/docs](https://playhtml.fun/docs/)
- - **Discord:** [discord.gg/SKbsSf4ptU](https://discord.gg/SKbsSf4ptU)
- - **Email:** [hi@spencer.place](mailto:hi@spencer.place)
- ## Data policy
- All data is currently stored by a [PartyKit](https://partykit.dev) instance under my account and is not encrypted. Anyone with the room name can access the data. Custom persistence options (your own storage backend) are on the roadmap.
- ## Contributing
- See [CONTRIBUTING.md](CONTRIBUTING.md). Contributions for new built-in capabilities are especially welcome — the same `can-play` API powers all of them.
- ### Contributors
- Thank you to everyone who has helped build playhtml.
- <!-- contributors:start -->
- <!-- Generated from contributors.json by scripts/update-contributors.mjs. Edit that file, then run: bun run contributors -->
- <table>
- <tr>
- <td align="center" valign="top">
- <a href="https://github.com/spencerc99"><img src="https://avatars.githubusercontent.com/spencerc99?s=128" width="64" height="64" alt="spencerc99" /><br /><sub><b>Spencer Chang</b></sub></a><br /><sub>Creator and maintainer</sub>
- </td>
- <td align="center" valign="top">
- <a href="https://github.com/jessa0"><img src="https://avatars.githubusercontent.com/jessa0?s=128" width="64" height="64" alt="jessa0" /><br /><sub><b>Jessa</b></sub></a><br /><sub>Moved the sync server to PartyServer</sub>
- </td>
- <td align="center" valign="top">
- <a href="https://github.com/alexwennerberg"><img src="https://avatars.githubusercontent.com/alexwennerberg?s=128" width="64" height="64" alt="alexwennerberg" /><br /><sub><b>Alex Wennerberg</b></sub></a><br /><sub>README fixes</sub>
- </td>
- <td align="center" valign="top">
- <a href="https://github.com/W-A-James"><img src="https://avatars.githubusercontent.com/W-A-James?s=128" width="64" height="64" alt="W-A-James" /><br /><sub><b>Warren James</b></sub></a><br /><sub>Per-site privacy: turning collection off for a site</sub>
- </td>
- </tr>
- </table>
- <!-- contributors:end -->
- ## Support & Maintenance
- If you enjoy using this, please consider [sponsoring the project](https://github.com/sponsors/spencerc99). This helps fund the hosting costs for the syncing and persistence services and keeps the library maintained over time.
- ## Licensing
- This repository uses two licenses:
- - **MIT** — applies to `packages/` (the playhtml library, React bindings, shared types, extension-types package). See [`LICENSE`](LICENSE).
- - **CC BY-NC-ND 4.0** — applies to everything else (`website/`, `extension/`, `tools/`, `apps/docs/`), which contain Spencer's personal art, product copy, visualizations, and exhibition work. See [`LICENSE-ART`](LICENSE-ART).
- The library is free to use, modify, and embed commercially. The art, experiments, and extension UI are visible as receipts of authorship but may not be copied commercially or redistributed as derivatives.
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.