Pool.

8-ball and 9-ball physics on a matter.js engine, daily trick-shot challenges, and live multiplayer races to N.

Multiplayer + AI@orphnet/pool-gamev0.1.0
Loading table…
Theme
Ruleset
Race to3
Install

Two commands, then ship.

Pick the subpath that matches your stack. Full Cloudflare integration takes about ten minutes including DO + D1 migrations.

bun add @orphnet/pool-game
bunx d1-eloquent migrate
Integration

Mount the router. Bind the DO. Done.

// worker/index.ts
import { Hono } from 'hono'
import { createPoolRouter } from '@orphnet/pool-game/hono'
import { PoolGameDO, D1GameRepository } from '@orphnet/pool-game/cloudflare'

const app = new Hono<{ Bindings: Env }>()

app.route('/pool', createPoolRouter({
  basePath: '/pool',
  ports: (c) => ({ games: new D1GameRepository(c.env.DB) }),
}))

export { PoolGameDO }
export default app
What's next

Play a round against someone right now.

Five-second matchmaking, no signup. Or grab a room code and share it with a friend.