How it works

Four services, one database, and a queue on the client. Everything below is checkable in the repository.

A write that survives the network.

The board reads from IndexedDB, so it renders and accepts edits with no connection at all.

  1. 1

    The client decides the id

    Every mutation carries a key generated on the device, before anything is sent.

  2. 2

    The queue is durable

    It lives in IndexedDB, so closing the tab mid-edit loses nothing.

  3. 3

    The server keeps a ledger

    The first request for a key inserts a row and stores its response. A replay finds that row and returns the stored response instead of doing the work twice.

  4. 4

    A retry is therefore safe

    An offline client cannot tell a request that never arrived from one whose response was lost. Without the ledger, "create issue" retried after an ambiguous failure produces two issues.

The board with the network disabled, showing changes saved on the device but not yet synced.

Four roles, one matrix.

Every permission check in the API resolves against a single declarative table, so the rules are greppable and cannot drift between endpoints.

A member of the workspace

GET /workspaces/4c84…/issues
cookie: robis_session=…

200 OK

Membership resolved, permission checked against the matrix, rows returned.

Everybody else

GET /workspaces/4c84…/issues
cookie: robis_session=…

404 Not Found

Not forbidden. As far as this caller is concerned, the workspace is not there.

The second response is the interesting one. A 403 would confirm the workspace exists, which is half of what somebody probisng for it wants to know.

The pieces.

frontend

Next.js and React. Reads from IndexedDB, not the network.

backend/api

Fastify. Every request resolves a session and checks membership.

backend/realtime

A Bun WebSocket gateway: fan-out, presence, document rooms.

backend/worker

Background jobs off the same Postgres table.

shared/contracts

Zod schemas and the permission matrix, used by both sides.

robis-ml

Duplicate detection and triage. Advisory, and optional.

What was chosen, and why.

Several of these are also one fewer service to run. That constraint was real and is stated rather than dressed up.

Postgres LISTEN/NOTIFY
Redis pub/sub
The event is published inside the same transaction as the write it describes. An event therefore cannot exist for a change that rolled back, and there is no second system to keep in step.
A SKIP LOCKED job table
a queue broker
Jobs are enqueued in the same transaction as the work that causes them, so there is no window where a comment exists but nobody has been told about it. One fewer service to run.
Keyset pagination
OFFSET
OFFSET re-counts from the start on every page, so an insert between requests shifts every later row: the reader silently skips one and sees another twice. A cursor names the last row seen.
Opaque server-side sessions
JWTs
A session can be revoked the moment a password changes. A signed token stays valid until it expires, whatever has happened in between.
Postgres full-text search
Elasticsearch
A stored generated tsvector column is recomputed by the database inside the same write, so the index cannot drift from the row it describes and there is nothing to backfill after a bug.
Yjs CRDTs
operational transform
Two people typing in one paragraph converge without a central authority deciding an order, which means a document keeps working while a client is offline.

What is missing.

Robis has not been deployed. These are real gaps, not an oversight, and listing them is the point.

  • A real host. Every service has a container image that CI builds, starts and drives end to end, but nothing runs anywhere public yet.
  • A real mail provider. Mail goes out over SMTP, tested only against a local server.
  • Precision and recall for the duplicate detector. No labelled set of true duplicate pairs exists yet, so it is not a validated model.