← Matthew Harrison

Project

WebForge Games

More than 60 board and card games to play with friends in the browser, from one shelf, with no game server.

The WebForge Games home page: a search box, category filters and a grid of games, each with its own drawn icon, under a Start a party button.

What it is

Pick a game, send your friends the code or the link, and play. Or start a party: the group gets together once, and the host takes everyone from game to game without anyone typing a name or a code again. Each game is its own web app, on its own subdomain.

What I built

  • A template every game starts from: room codes and invite links, a lobby, chat and a game log, turns and an optional clock, seats kept through a refresh, and another player taking over the room if the host's tab closes.
  • Multiplayer over WebRTC with PeerJS and no game server. The host's browser holds the only copy of the game, runs every rule and sends each player their own view, so hidden hands stay hidden. Other players send moves for the host to check.
  • My own PeerJS broker for the first handshake, with the public one as a fallback. After that, browsers talk to each other directly.
  • The party hand-off between games on different subdomains, so one party code works in every game and a group can come back to the hub together.
  • The hub's shelf, search and categories, made from one typed list of games. Every illustration is an SVG drawn in code, with no image files.
  • Strict TypeScript, ESLint, and Vitest with coverage thresholds on the networking and game state.