# Maethril > Everything behind your game, except the game. User accounts, saved games, and prices you can change without shipping a patch. The backend a live game needs, without building one. Documentation: https://docs.maethril.dev ## They press play. Everything else is already there. None of this is your game. All of it has to work before anybody sees your game. - Signing in — on a phone, then on a laptop, then on the phone they bought to replace the first one. - A save that is already there when they come back after a month away. - Buying something, and still owning it on the other device. - A price that changed last Tuesday without them downloading anything. - Asking to be forgotten, and actually being forgotten. ## Five things you would otherwise build twice. Once for the game, and once more the week you discover the first version did not survive contact with real users. ### Users sign in, and their game follows them. One account, every device, progress saved the moment it changes. If they lose their phone they lose nothing. Somebody drops their phone in a canal on Tuesday. On Wednesday they sign in on a borrowed laptop and their Friday save is waiting, and nobody emails your support address about it. ### Try everything in a practice copy first. A complete second copy of your game's data to break as often as you like. When it is right, you put it live — and if it was not, you put it back. You break the economy on Monday morning, find out on Monday morning, and the only person who sees it is you. ### Change a price without shipping an update. Prices, rewards and drop rates are settings, not code. Change one and it is live in seconds — no patch, no store review, no waiting a week to find out whether it worked. The new weapon is twenty per cent too cheap and it is Friday. You change the number over lunch and the evening session plays the fixed version. The alternative is a build, a review queue, and next Thursday. ### Know a change is safe before your users feel it. STATUS: not built yet — This one is designed and not built yet. The rest of this list is live. Make the sword cheaper and you might have broken your whole economy. This tells you before you ship it, rather than a chart telling you three days later. You cut a crafting cost by a third. Something says it triples the gold entering your economy — and it says it while the change is still a draft, not in a post-mortem. ### A user asks to be deleted. One click, and proof. Every piece of personal information is tagged the moment it is stored, so erasing somebody is one action that hands you a receipt — not a fortnight of hunting through tables. The email arrives on a Friday afternoon with a statutory deadline attached. You answer it in a minute, and you keep something you could show a regulator. ## How it actually works. Everything above is the promise. Here is the mechanism, in the detail an engineer evaluating this will want — and the full list of what we have not built yet. ### Your schema, not a key-value store. Your game's data model is ordinary EF Core in your own repository. We take the migrations you already committed and apply them to a PostgreSQL database per environment. `mae gen` shells out to your `dotnet ef`, not to a copy of EF inside our CLI — because a migration built against a different EF version is subtly wrong with nothing to catch it. It also strips the byte-order mark and refuses transaction control, both of which break a resumable deploy. - Ordinary EF Core - Your migrations - The SQL stays in your repo ### Environments are promoted into, never typed into. A release is a content-addressed artefact; deploying it to an environment writes a ledger entry; rolling back is its own operation rather than an undo. Push the same manifest twice and you get one release, because the digest is the identity. A deploy writes a ledger row in the same transaction as the migration it applied, which is what makes a deploy that failed halfway resumable rather than ambiguous. - A database per environment - Content-addressed releases - Rollback is one call > There is no --to prod. The direction is not a default that could be overridden; the operation does not exist. > — ADR 0026 ### One declaration, four surfaces. Every operation is declared once, so the HTTP route, the CLI verb, the MCP tool and the studio UI are four spellings of the same thing — same validator, same permission check, same audit entry. `tenancy.projects.list` is the route, the verb and the tool name. Rename it once and every surface renames with it, because there is only one of it to rename — and the MCP server reuses the CLI's own request builder, so the two cannot construct different requests for the same operation. - HTTP API - The mae CLI - MCP for your agent - The studio app See also: Built for agents — /agents/ ### Effects are classified, so inflation is computable. STATUS: designed, not shipped — Designed and argued, not built. ADR 0024 and 0025. Rules run here and every effect declares whether it creates, destroys, moves or converts resource — so a candidate release can be measured against the production baseline rather than watched after the fact. Four effect kinds, closed on purpose: faucet, sink, transfer, convert. Inflation is the first rate minus the second, which is computable only because the effect declares which it is. Machinations simulates a model a studio drew by hand; this would simulate the rules that actually ran. - Faucet minus sink - Differential, not absolute - Says so when it cannot tell See also: How the gate works — /simulation/ ## Everything we ship, and everything we don't. Three game backends shut down or changed shape in 2026. You are right to check, so here is the whole list. - A database per environment: shipping (ADR 0030) - Your schema, your migrations: shipping (ADR 0023) - Releases, deploys, rollback: shipping (ADR 0022) - Config values per environment: shipping (ADR 0026) - Erasure, and its receipt: shipping (ADR 0011) - API, CLI and MCP: shipping - Users, sessions, bans: soon - Unity and Godot packages: soon - The studio app: soon - Rules and simulation: designed (ADR 0024, 0025) - Economy and ledger: designed (ADR 0027) - A dedicated database per tenant: designed (ADR 0004) - Self-hosting: not offered (Talo and Nakama do) - Analytics: not ours (Bring your own) - Matchmaking and realtime: not ours (Not planned) We route trust, not packets. If you need matchmaking you need something else alongside us, and we would rather you learned that here than from a support ticket. ## And if we disappeared tomorrow? You would still have the game. - The SQL that built your database is a file in **your** repository. - Your data is in PostgreSQL, in a database of its own. - The docs are generated from the operation catalogue, so they cannot describe something that is not there. - What is not built is listed above, by name. ## Questions worth asking first. ### What is Maethril? Maethril is a hosted backend for games. It stores user accounts and saved progress, gives each of your environments its own database, and lets you change prices and other values without shipping a client update. You keep your own data model rather than adopting ours. ### Does Maethril do matchmaking or multiplayer? No, and it is not planned. Maethril handles accounts, data, releases and configuration. If your game needs matchmaking, real-time networking or dedicated server hosting, you need a separate service alongside this one — we would rather say so here than in a support ticket. ### Do I have to use your data model? No. You design your own tables and write your own migrations, and we apply them to a PostgreSQL database for each of your environments. Most backends hand you a key-value store and ask you to flatten your save into it; this one does not. ### Can I change a price without shipping a patch? Yes. Prices, rewards and drop rates are configuration values resolved per environment, not constants compiled into your build. Changing one takes effect in seconds, with no client release and no store review — which is the difference between tuning weekly and tuning quarterly. ### What happens to my game if Maethril shuts down? You keep the game. The SQL that built your database is a file in your own repository, and your data sits in an ordinary PostgreSQL database rather than a proprietary store. Three game backends shut down or changed shape during 2026, so the question is a fair one. ### What does Maethril cost? A full environment with its own database is free while your game is in development — no user cap and no peak-concurrent meter. The production price is not set yet. When it is, it will be printed on this page as a number rather than hidden behind a sales call. ### How is Maethril different from Talo, Nakama or PlayFab? They decide your data model; Maethril does not. Each of those gives you accounts, saves and leaderboards in a shape you fit your game to. Here you design your own tables and we run them. Talo and Nakama are also self-hostable today and we are not — our comparison page says when to pick them. ### Can an AI coding agent use Maethril? Yes. Every operation is declared once and published to an HTTP API, a command-line tool and an MCP server, so an agent can read the whole catalogue without a credential. The agent surface is deliberately narrower than yours: it cannot reach credentials or personal data. ## Start with a database of your own. We have not set the production price yet. When we do it will be printed on this page as a number, rather than hidden behind a call with somebody from sales. ## Everyone else decides your data model. We don't. Accounts, saves, leaderboards, properties — every backend in this category hands you a shape and asks your game to fit it. You bring your own tables, your own migrations and your own queries, and they run in a database nobody else is in. ### Maethril compared with Talo Talo: An open-source backend for Godot and Unity — accounts, leaderboards, saves, analytics and live config. What Talo does better: It is MIT-licensed and self-hostable today, free for up to 10,000 users with every feature included, and its Godot and Unity packages are shipping while ours are not. It also has analytics and real-time channels, which we do not. The difference: Talo gives you its model — users, saves, leaderboards, properties — and you fit your game to it. Maethril gives you a PostgreSQL database and you bring your own tables and migrations. That is the whole difference, and which way round you want it depends on whether your game's data looks like theirs. Pick Talo if your game's data fits accounts, saves and leaderboards, or if self-hosting is non-negotiable. ### Maethril compared with Nakama Nakama: A mature, Apache-2.0 game server from Heroic Labs, self-hostable, with real-time multiplayer and matchmaking. What Nakama does better: Real-time networking, matchmaking and presence — none of which we do or plan to. It is also years older, and you can run it yourself. The difference: Nakama embeds runtimes for your server logic — Go, Lua and JavaScript — against its own storage engine. Maethril keeps your schema yours and makes the release the unit of promotion, with a database per environment and a ledger behind every deploy. Pick Nakama if your game needs users in the same session with each other. If you need both, you will run both. ### Maethril compared with PlayFab PlayFab: Microsoft's long-established game backend, now tied closely to the Xbox Store. What PlayFab does better: Enormous breadth, a decade of production use, and a free path for titles shipping through the Xbox Store. The difference: Title data is a key-value store you fit your save into, environments are separate titles you keep in step by hand, and the terms of the free tier are set by a platform holder with a storefront to fill. Ours are not. Pick PlayFab if you are shipping on Xbox and the Foundation terms fit your title. Read from each product's own pages in October 2026. ## Pages - /compare/ — Maethril beside Talo, Nakama and PlayFab, including when to pick them - /simulation/ — why a balance change should be simulated rather than observed - /agents/ — the MCP server, the catalogue, and the two rules that narrow it