boardgame.io

Build turn-based multiplayer games with G, ctx, moves, and events.

Updated Sep 29, 2025
One-click install
npx skills add https://github.com/cyotee/manamesh --skill boardgame-io
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: boardgame.io
Source: https://github.com/cyotee/manamesh/tree/main/.opencode/skills/boardgame.io
Command: npx skills add https://github.com/cyotee/manamesh --skill boardgame-io

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

boardgame.io provides a turnkey framework for building turn-based multiplayer games in JavaScript/TypeScript, handling game state, networking, randomness, and bot AI so developers can focus on core game logic.

Core Features & Use Cases

  • State management with G and ctx
  • Moves, events, and game flow (turns, phases, and stages)
  • Built-in client/server tooling for local and online multiplayer
  • Bot AI integration via MCTSBot and AI scaffolding
  • Plugins and secret-state support for privacy and extensibility
  • Rapid prototyping and education through reusable game templates

Quick Start

Define a simple Game object with setup and moves, then run it with a Local multiplayer client to test.

Frequently Asked Questions about boardgame.io

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a turn-based multiplayer game in JavaScript without writing custom networking logic?

You can build a turn-based multiplayer game by defining a structured game object with setup state, moves, and flow rules, letting the framework handle state management, networking, and randomness automatically.

Does boardgame.io support AI bots for testing multiplayer game logic?

Yes, the framework includes MCTSBot and AI scaffolding to integrate AI bots, allowing you to test and simulate multiplayer game logic locally without requiring human players.

How do I manage game state and player turns in a browser-based multiplayer title?

Game state and player turns are managed by separating user data into a G object and framework metadata into a ctx object, using built-in phases, stages, and events to control flow.

Can I use TypeScript to prototype and deploy online multiplayer board games?

Yes, the framework supports both JavaScript and TypeScript, enabling you to prototype and deploy browser-based online multiplayer board games with predictable state and type safety.

What is the best way to hide secret state from specific players in a multiplayer game?

The framework provides playerView and secret-state support, allowing you to configure the game object to filter and hide sensitive state data from specific clients during multiplayer sessions.

How do I run a multiplayer game prototype locally before deploying to a server?

You can run a multiplayer game prototype locally by using the built-in Local client backend to test game objects, moves, and turns before switching to the SocketIO backend for deployment.