RevealPeerJS Docs
Enhanced quickstart, usage snippets, and showcase links.
README
Project overview and full reference: README.md
Usage
Install:
pnpm add reveal-peerjs
ESM setup:
import Reveal from 'reveal.js';
import RevealPeerJS from 'reveal-peerjs';
Reveal.initialize({
hash: true,
plugins: [RevealPeerJS]
});
Script include:
<script src="https://cdn.jsdelivr.net/npm/reveal-peerjs@latest/dist/reveal-peerjs.js"></script>
<script>
Reveal.initialize({ plugins: [RevealPeerJS] });
</script>
Example / Showcase
Open the full interactive showcase deck: example/index.html
Tip: open it in two windows to test chat, hub controls, polls, and games.
UI and Accessibility 1.4
The collaboration interface now follows one shared design system with 44px primary targets, visible focus, staged settings, keyboard-complete menus and dialogs, and safe-area-aware mobile layouts.
Reduced motion, forced colors, enhanced contrast, readable identity markers, and a
standalone pnpm test:ui-audit command are included.
Arena 1.3
Arena now synchronizes kills, damage, pickups, and a live event feed. Item, zombie, and reward randomness is derived from the round seed for reproducible simulation.
Damage and armor handling are shared across projectiles and zombie bites, while extracted snapshot helpers keep statistics, effects, and standings consistent.
Arena 1.2
Choose Vanguard, Scout, Guardian, Ranger, or Engineer in Settings, then launch a Hub-authoritative multiplayer round or solo zombie survival session.
Arena includes weighted recovery, armor, weapon, HASTE, AMP, MAGNET, and REGEN drops, class-specific stats and silhouettes, synchronized timed effects, and an in-game item legend.