Theme
Difficulty
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/chess-game
bunx d1-eloquent migrate
Integration
Mount the router. Bind the DO. Done.
// worker/index.ts
import { Hono } from 'hono'
import { createChessRouter } from '@orphnet/chess-game/hono'
import { ChessGameDO, D1GameRepository } from '@orphnet/chess-game/cloudflare'
const app = new Hono<{ Bindings: Env }>()
app.route('/chess', createChessRouter({
basePath: '/chess',
ports: (c) => ({ games: new D1GameRepository(c.env.DB) }),
}))
export { ChessGameDO }
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.