Skip to content
Dashboard

How we build Minekube

Minekube is the Cloudflare for Minecraft. The first Minekube Connect website already said so, and with Connect, Games and Minekube Cloud it now holds for the whole stack.

We change the way developers build Minecraft networks. Servers are hosts for games, networks are code, and the way from an idea to a game players can join is as short as a save.

This page explains the principles behind our decisions. We check every new decision against them. Decisions records the individual choices, each with what we chose it over.

You need to bring nothing, and you can bring everything. The platform as we run it works right away: add your servers, build your games, and use our networks, relays, API and hub. At every layer you can use your own instead, depending on how much control, customization or convenience your project wants.

Layer From Minekube Your own
Players and discovery The Minekube network, with the hub and login, in preview; friends are planned Your own network with its own entry
Servers Minekube Cloud, on Akua and our hardware Your servers, at home, at a host or in your own cluster, also with Akua
Game and proxy code Ready bundles and examples Your own bundles, written with the SDKs
Backends Our services for friends, parties and matchmaking (planned) Your own Workers project in your own Cloudflare account (planned, see below)
Reachability Our relays; more regions come next Your own relay
Platform The Minekube API The whole stack as a fork, deployed by you

The layers are independent. A network with its own servers and its own backend can still use our relays and our hub.

We hope most people join in rather than run the stack themselves, so that the Minekube network becomes the largest network, with the most players. Every network that joins brings players to all the others. Running everything yourself is a real option, not a promise on paper, and that is what makes joining easy: nobody is locked in.

We guarantee what is hard to build alone and what everyone has to rely on: reachability, identity, the boundary of a network and facts the registry has checked. Every network writes its own rules, in code. Where we built in a rule, such as the label that marks entry instances, it becomes a default you can replace; for entry, the planned routing bundle does that.

In practice: Entry and routing, Network model.

Paper code calls Paper, Velocity code calls Velocity and client code calls the Minecraft client, typed from their own jars, with one package per platform and no common layer above them. What people and agents already know about a platform holds unchanged. Games become portable through rules that import no platform: logic components, Schemas, and Commands as messages. A portable layer may come later as an opt-in on top, never in place of the real API.

In practice: The real API, Supported platforms.

Games, proxies, routing and backends are Effect TypeScript: versioned, tested and reviewed like any code, with typed errors and resources that are released cleanly when the code is swapped. There are no panels full of switches and no handwritten plugin for each feature. Games and proxy bundles work this way today; routing bundles and backends are planned the same way.

In practice: Games as Effect components, Proxy bundles.

Every capability is an HTTP API first, the mk CLI only calls that API, and what belongs to a project is declared in vite.config.ts. Agents, scripts and people can all do the same things, and no setting hides behind a flag only one tool has.

In practice: Vite plugin and configuration, CLI.

The Minekube API, relay and servers run on your machine with the same code and the same API as Minekube’s. Local is the default, and reaching Minekube is an opt-in by URL, so what you try on your machine is what runs for players.

In practice: Develop on the dev server, Run the dev network, Self-host the Minekube API and relay.

A save swaps the game while players stay connected. Bots join and play, recordings keep what every rule decided, replays check it in bun test, and the devtools show every message. We measure the loop and publish the numbers on the Performance page.

In practice: Live swap, Recordings and replay, Test with bot clients.

A coding agent should write a game, test it with real clients, find mistakes in recordings and keep going until it works. That is what the real types, the tests, the recordings, the devtools and the skills are for.

In practice: The agent loop, Build with a coding agent.

Code outside the servers, such as matchmaking, friends or a shop, is a normal Cloudflare Workers project in your own account. We provide the primitives for it to talk safely with servers and networks, and examples to copy, not a closed backend of our own.

This is in progress. Bundles reach a Worker with fetch and WebSocket, every network publishes its members’ keys, and with an instance token a server proves to your Worker which server of which network it is. The friends example is the first backend to copy; more follow.

In practice: Authenticate servers to your backend, Friends, SDK packages.

Hub, friends, login and routing: our own features are bundles and Workers on the same public SDKs you use. If we miss something, it is a gap in the platform, and we close it for everyone. The Minekube hub already is a game on @minekube/paper; friends and routing are planned the same way.

In practice: Open source.

Only the connector and the runtime run on servers we do not own. What we roll out ourselves runs on Cloudflare or on our own endpoints, never in your server’s process, so your server stays yours and our changes do not wait for your restart.

In practice: Architecture, Connector.

The code is MIT licensed. Domains, the Minekube API, relays and accounts are configuration, with ours as the defaults. If you want, you run your own relay or the whole stack.

In practice: Open source, Self-host the Minekube API and relay.

Connect makes servers reachable and groups them into networks, Games runs code on them, and Minekube Cloud runs the servers on Akua, on your hardware or ours. Each works without the others, and they are built to work together.

In practice: Minekube platform overview.

A server says with labels what it is, and gets what it should run by selector, several games included. A network is a name, a boundary and an assignment in the registry, not a program and not a proxy.

In practice: Labels and selectors, Versions and deployments in a network.

Relays in many places, and the Minekube API and routing on Cloudflare: a network for a few friends and a network for a large audience take the same paths. The Minekube API runs on Cloudflare today. Relays in several regions come next, and routing bundles on Cloudflare are planned.

In practice: Connector, relay and API, Relay.

Was this helpful?