Most backends are not hard because of one big problem. They are hard because of thirty small ones: where the sign-in lives, which value a setting has in staging, which banner the German app shows, where the checkout session is kept for twenty minutes, which queue the payout goes to, which job runs at two in the morning. Each one gets its own service, its own API style, its own idea of what an "environment" is, and its own way of telling a mobile app from a partner backend.

The Backend Suite is our answer to those thirty small problems. It is a toolbox for backend developers and operators: a set of small apps that share one project model, so that a client, a zone, a language or a scope means the same thing in every one of them.

What is in the toolbox

The Backend Suite: eight apps on one project model, with Kombi on top
AppIts job
keybeSign-in for your team, API keys for your clients, and an OpenID Connect provider per environment for your own end users.
kfigOne key, the right value in every environment: settings, and the services your code connects to (HTTP endpoints, databases, queues, storage, mail), real or mocked.
mondifyThe words of your apps in every language: labels as bundles, and pages of Markdown.
zbyteThe small files of your project (icons, images, fonts, documents), served by key, with one file per zone, client or language when they differ.
popfileSpreadsheets your team already keeps, turned into typed, read-only APIs.
pressiShort-lived JSON data: sessions, caches, idempotency keys, one row per end user.
q10Queues of JSON messages with leases, dead letters and pipelines between queues.
srunScheduled jobs, run by your own workers or by the platform.
KombiYour own HTTP APIs, written as short scripts that call every app above.

Under all of them sits strims PM, where a project is defined once: its environments (dev, tst, prd), its clients, its zones, its languages, its scopes and its domain models. Every app reads the project from there. Nothing is declared twice.

What it is not for

What the suite covers and what you bring yourself

We drew the line on purpose. The suite covers the many small, mostly stateless or lightly stateful parts of a backend: authentication, configuration, small datasets, short-lived data, queues, scheduled work, content and small files.

It does not try to be your logging pipeline, your large relational or analytical database, your bulk object storage or your GPU cluster. Those are heavy, stateful systems with their own specialists and their own economics, and pretending otherwise would make both worse.

They still have a place in the picture: a kfig key can hold a service, so payments.db points to your PostgreSQL in prd and to a mock in dev, and your code asks for the same key everywhere. The heavy systems stay where they belong; finding them is one lookup.

One backend, many perspectives

The idea that shapes every app is simple: the same request does not always deserve the same answer. A mobile app in Germany, a merchant portal in the United States and a reporting tool that may only see one part of the domain should not need three backends. They need one backend that knows who is asking.

The same request answered for three callers

Every call to the suite carries enough to tell:

  • who is calling: the client named by its API key, with the scopes it may read;
  • where it is calling from: the zone, worked out from the country header, then the IP address, then the project's default zone;
  • what language it reads, from the request or the Accept-Language header, falling back to the project's default language;
  • which environment it lives in, from the address itself (/{project}/{env}/api).

Each app then answers from what it keeps:

  • kfig looks for the client's own file first, then the global one, each time for the caller's zone first: payments.timeout_seconds@eu-west-1, then payments.timeout_seconds. The client's code only ever asks for payments.timeout_seconds.
  • zbyte keeps several files under one key and sends the one whose zones, clients and languages fit the caller best. checkout.pay-button.svg can be a German button for the mobile app in Europe and the default button for everybody else, at the same address.
  • mondify answers a bundle of labels in the caller's language, with the default language filling the gaps.
  • pressi can keep rows per zone, so a caller only sees the rows written from its own zone.
  • Scopes apply everywhere: a client limited to the reporting scope reads reporting.* keys, types and files, and gets a clear 403 for the rest.

Nothing of this is code in your app. It is configuration, visible in the dashboards, promoted from dev to tst to prd like the rest.

A domain model, not a pile of endpoints

APIs drift when every service invents its own shapes. The suite keeps one vocabulary instead.

A project's scopes split its domain into parts (payments, checkout, settlement), and every key in every app is written <scope>.<name>: payments.events.inbound is a queue, payments.pay_now a label, payments.db a service. Reading a key tells you where it belongs.

A project's domain models are typed shapes, written in dref, such as PaymentIntent. They are defined once in strims PM and used where data comes in:

  • a q10 queue can refuse every message that does not match its model;
  • a Kombi operation can refuse every request that does not match its request model, and warn when its answer does not match its response model;
  • popfile maps the columns of a spreadsheet onto a model, so an orders sheet becomes a typed /orders API, each order served with its customer inline.

The conventions are shared too: one way to authenticate, one shape of error ({"message": "..."}), times always in epoch milliseconds in fields ending in At, one promotion between environments. Learn one app and you have learnt most of the others.

Close to your users, in one region or several

A customer's data placed in one region, or followed by nodes in several

The suite runs as a cluster of nodes in several regions and on several providers. Your data is held by the nodes your placement names:

  • in one region, when it has to stay there: one node writes, another in the same region keeps a full copy and answers reads; if the writing node stops, the copy takes over when its lease runs out, about half a minute in our own failover drill;
  • across regions, when your users are spread out: nodes in other regions keep their own copy, answer reads from it close to the caller, and pass writes on to the one node that writes.

Every copy is also kept in a central store, so a node that loses its disk restores itself from it. Your code does not change between the two: it calls the same address.

Use one app, or all of them

Each app stands on its own. A team that only needs feature flags and service endpoints per environment can use kfig and nothing else. A team that only wants its spreadsheets as APIs can use popfile alone. One API key per client, one dashboard per app, and the same sign-in for all of them.

They also work together without glue code. A srun job can run a script that sends to q10, a q10 queue can feed a Kombi script, a Kombi script can read kfig, pressi, zbyte, mondify and popfile in the same run.

A whole backend, with Kombi

It is possible to build a complete backend with the suite alone. When you do, we recommend Kombi, which brings the apps together behind APIs of your own. An operation is a short script, and every call it makes to another app is logged with its answer and its time.

Here is a real one from our demo project: an instant payout that is safe to retry.

assert request.body.amount > 0 : "amount must be positive"
assert request.body.merchant != null : "merchant is required"
let key = request.headers["idempotency-key"]
if key != null {
    pressi.get("idempotency_keys", key)
    if response.status == 200 {
        print "Replay of " + key
        return response.body.data
    }
}
let payout = { "payoutId": "po_" + randomString(12), "merchant": request.body.merchant,
               "amount": request.body.amount, "currency": request.body.currency,
               "status": "dispatched" }
q10.send("settlement.transfers.outbound", { "type": "payout.instant", "payout": payout })
assert response.status == 200 : "q10 refused the payout"
if key != null {
    pressi.put("idempotency_keys", key, payout, 86400)
}
status(201)
return payout

Published as POST /payouts/instant, it is open only to the clients its API lists (merchant_portal, mobile_pos), and it knows the caller's zone (context.zone). Give the operation a request model and a body that does not match the project's domain is refused before the first line runs. The queue it sends to is drained by another script or by your own workers; the idempotency keys expire by themselves after a day.

No container to build, no framework to upgrade, no infrastructure to name. Just the domain, the rules, and the answer each client should get.

Where it stands

The Backend Suite is in development. Its apps, their APIs and their documentation are written; the cluster runs on our own nodes while we finish what has to be true before the first customers. If your backend is made of those thirty small problems, tell us what you are working on.