multiplayer

multiplayer is a skill for Claude Code, Codex from kyh/vibedgames. It costs 33 tokens per session (4,117 once invoked), scanned C, original, MIT.

A library for adding real-time multiplayer to browser games. It synchronizes shared game data, individual player data, and broadcast events between players.

In plain words
What is it for?
Use it to add co-op or player-versus-player features to games made with Phaser, Three.js, React, or plain JavaScript.
Why use it?
It provides a defined way for players to see the same game world and exchange updates without building the networking layer from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add co-op or player-versus-player features to games made with Phaser, Three.js, React, or plain JavaScript.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kyh/vibedgames/multiplayer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kyh/vibedgames --skill multiplayer
Clone the repo
git clone --depth 1 https://github.com/kyh/vibedgames

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for multiplayer

README.md
[![agentmods](https://agentmods.dev/badge/skills/kyh/vibedgames/multiplayer/github.svg)](https://agentmods.dev/skills/kyh/vibedgames/multiplayer)
Your own site
<a href="https://agentmods.dev/skills/kyh/vibedgames/multiplayer"><img src="https://agentmods.dev/badge/skills/kyh/vibedgames/multiplayer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for multiplayer

Your own site · 80×15
<a href="https://agentmods.dev/skills/kyh/vibedgames/multiplayer"><img src="https://agentmods.dev/badge/skills/kyh/vibedgames/multiplayer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,117 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.04117
Opus 5.5 $0.00013 $0.01647
Sonnet 5.5 $0.00007 $0.00823
Haiku 4.5 $0.00003 $0.00412

Measured 3d ago against content hash 734cf19fe166, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

multiplayer scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- ❌ **Welding multiplayer into Phaser scene `update()`.** Use the adapter pattern. Single-player should still work after `rm -rf net/`.
skills/multiplayer/SKILL.md · 240 lines

How it starts

The opening of the file, as written. The whole thing — 240 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Vibedgames Multiplayer

Add real-time multiplayer to any browser game with @vibedgames/multiplayer.

Install

npm install @vibedgames/multiplayer

Two entry points

  • @vibedgames/multiplayer — framework-agnostic MultiplayerClient class (Phaser, Three.js, vanilla JS)
  • @vibedgames/multiplayer/react — React hooks wrapping the client

Party host

Every example assumes this constant. Define it once — in a real game it lives in net/client.ts (see references/architecture.md) — and import it; never repeat the literal per call site:

export const PARTY_HOST = "https://party.vibedgames.com";

Core concepts

  1. Shared state — one copy, all players see the same (game world, score, phase). Host-only writes.
  2. Player state — per-player, owned by that player (position, health, intent flags).
  3. Events — fire-and-forget messages, broadcast to everyone (explosions, kills, pings).

The host (first player) runs authoritative game logic. If the host leaves, the next-joined player is reassigned as host.

The SDK also ships the netcode pieces every real-time game needs. Use them rather than hand-rolling a throttle or a lerp:

  • FixedRate — a steady send clock.
  • client.serverNow() / client.serverClock — one clock every client shares; stamp sends with it.
  • Interpolator — render remote players smoothly from those stamps; its RemoteClock learns each sender's relay delay.
  • Reconciler — correct a guest's own predicted body against the host's copy.

And the party server runs the services no single client can do fairly:

  • Claims — client.claim(key): first come, first served, one hop (pellets, pickups, harvests).
  • Tick rooms — tickRate + sendInput + onTick: ordered inputs for lockstep/rollback games.
  • Interest — interest: { radius }: far players stop receiving each other's state.
  • Limits — limits: { hp: { min, max } }: the server drops out-of-range player state.

Read the full file on GitHub · 240 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · -4 lines 734cf19fe166
  2. 7d ago Changed e3c50196a97a
  3. 8d ago Changed · +37 lines 6ba7a6867505
  4. 14d ago Changed 30a56a2ffa10
  5. 22d ago Changed 9999d5562a8e
  6. 1mo ago Changed · +35 lines 78e8a07f8168
  7. 1mo ago Changed · +21 lines 4ba41f6a6809
  8. 2mo ago Changed · -399 lines · -45 tokens per session b5e3a8822e82
  9. 3mo ago First seen · 550 lines · 78 tokens per session scan C f2a3cc5bb115

Subscribe to this mod's changes

multiplayer is a skill published in the GitHub repository kyh/vibedgames (62 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 4,117 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

multiplayer compared with skills from other repositories

multiplayer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
multiplayerkyh/vibedgamesSkill62todayMITC33Claude Code, Codex
verifymeursyphus/ssgoiSkill1.0kyesterdayMITA26Claude Code
quality-engineering-playwright-cliHoangNguyen0403/agent-skills-standardSkill597yesterdayMITA62Claude Code, Codex
quality-engineering-playwright-pom-generationHoangNguyen0403/agent-skills-standardSkill597yesterdayMITA69Claude Code, Codex
next-cache-components-optimizervercel/next.jsSkill144ktodayMITA123Claude Code
migrate-radix-to-baseshadcn-ui/uiSkill130ktodayMITA61Cursor
channels-setupCopilotKit/CopilotKitSkill39ktodayMITA141Claude Code