BeiHuan — web games, tools and experiments

We are BeiHuan

We turn ideas into things you can play and use.

A small hands-on team building web games, tools and experiments in code. Everything we've made lives here — and most of it runs right in your browser.

projects
03
games
02
apps & experiments
01

Games

The games

Rules live in the code. Luck is up to the dice.

Game · 2026

Dicebound

命骰远征

A roguelite dice-tactics card battler

Summon your party from a 20-card deck onto a 3D tabletop diorama with real elevation, where every attack, save and check comes down to the dice. Pick your path, collect relics and feats, and overthrow the Dicemaster who rigs fate itself.

  • d20 checks you can read
  • Twenty cards, hard choices
  • Elevation and terrain
  • TypeScript
  • three.js
  • Preact
  • Vite
  • WebAudio

Game · 2026

Endless Script

无尽剧本

A roguelite where an AI writes every story

Each run starts with dice rolled in code — genre, motif, hidden truth, twist, ending tone — and an AI author then writes that "script contract" into a three-chapter book. The engine owns every number, and a procedural "old manuscript" author keeps it fully playable offline, no API key required.

  • The dice live in code
  • A six-stage writing pipeline
  • Nothing ever breaks the run
  • TypeScript
  • React
  • Claude API
  • Vite
  • Node.js

Projects

Apps & experiments

Tools, apps and experiments that don't fit neatly anywhere else.

View all
Abstract illustration of stacked manga pages, four storage tiers and a red seal with a keyhole Private

App 2026

MangaPrivate

私人书库

A private manga and novel library on Cloudflare's edge

A single-user library for manga and novels — multi-source search and import, synced reading progress, favorites and permanent archiving — with an AI workspace behind the login. The whole system runs on Cloudflare Workers, with no always-on server.

  • TypeScript
  • Cloudflare Workers
  • D1
  • R2
  • Queues
  • Google Drive API
  • Playwright

For personal use — signing in is required.

About

About BeiHuan

We care about the parts you never see.

Rules engines kept apart from rendering, every run reproducible from a seed, AI output that has to pass validators before you see it, and live services that avoid depending on an always-on server. Every project ships with design docs and automated tests.

  1. Rules live in code

    Randomness, numbers and checks belong to the engine; the interface just performs the result. That is what lets us run headless, simulate in bulk and test.

  2. Degrade, don't break

    No network, no API key, an upstream outage — the work still runs, just in a humbler mode.

  3. Built on the edge

    We deploy on Cloudflare so pages load close to you everywhere, and bring in cloud servers only where something truly needs one.

What we build with

  • TypeScript
  • Vite
  • WebAudio
  • Claude API
  • Cloudflare Workers
  • D1
  • Google Drive API
  • Node.js
  • Playwright
  • Preact
  • Queues
  • R2
  • React
  • three.js

Contact

Want to build something?

Collaboration, bug reports, or just a chat about games — come find us on GitHub.