What it is
Mengüyir is a virtual tabletop for playing roleplaying games online with friends. The name and the look come from Bayterek, the world tree of Turkic myth: one trunk of accounts, tables and tools, with a branch for each game system. The branch I built properly is a ruleset for journeys through Middle-earth. Two other systems exist as early previews.
The idea at its heart fits in one sentence: humans and deterministic server code change the world, and the AI narrator tells the story.
How it works
Every change at the table, whether a ruling, a roll request, damage, a scene change or a journey event, goes through one write path on the server. Each command runs in a single transaction and is idempotent, so a double click never applies twice. Dice are rolled on the server, and a player’s bonus is read from the stored character sheet rather than typed in. Each player then receives only their own view of the table. Hidden tokens, secret rolls and the Loremaster’s notes never reach a browser that shouldn’t see them.
Only after events are committed does the narrator get its turn. It turns those facts into English or Turkish prose, and its output is checked before anyone reads it. A narration is rejected if it describes a missed attack as a hit, names a hidden character, narrates a living hero as dead, slips dice numbers into the story or skips the new facts. The narrator can retry once. If it still fails, the job fails, and the game state stays exactly as it was. A campaign memory of people, places, promises and threads keeps the story grounded across sessions.
What’s next: the AiME engine
The lessons from Mengüyir became a new project, written from scratch: a shared campaign app with a Rust server, a deterministic game engine, PostgreSQL event history and a Next.js table. The AI there is advisory too, with semantic memory running on local embeddings. It ships with original short adventures, Lanterns at the Ford in English and Geçitteki Fenerler in Turkish. The engineering foundations are in place. A table I’d happily invite friends to is not there yet, and the next work is aimed at exactly that.
Mengüyir is an independent, unofficial project and is not affiliated with or endorsed by the owners of the games it supports. Adventures in Middle-earth, Dungeons & Dragons and Traveller are trademarks of their respective owners.