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 appWhat'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.