Krab logoKrab
Application

MokuMoku

A small collection of board games that support both human-computer and multiplayer online play, including Gomoku, Go, Reversi, and Hexadecimal.

Demo:https://s.krab.cn/moku

Repository:https://github.com/krab-lab/MokuMoku


Features

MokuMoku is a real-time board game app for EdgeOne Pages. It supports public matchmaking, private rooms, and AI games across four board games:

  • Gomoku
  • Go
  • Reversi
  • Connect6

The frontend is a static app built with plain HTML, CSS, and JavaScript.

The backend uses EdgeOne Pages Cloud Functions, with /api/game for gameplay state and /api/presence for low-frequency online counts. Room, player, and matchmaking state use EdgeOne Pages Blob storage.

Why MokuMoku

  • 🚪 No login required
  • 📦 No installation required
  • ⚡️ Lightweight and fast

State Model

Rooms, players, queue tickets, and lightweight locks are stored under a single Blob store namespace.

  • Public queues are separated by game type.
  • The first public queued player or private room creator plays black.
  • Disconnected player seats are preserved for 60 seconds.
  • AI rooms close when the human player leaves.
Copyright © 2026 Krab. Some rights reserved.
Built with Docus.