Graphs, series and operations
The rest of the engines over /v1 — a graph traversal, series points, named operations declared in the language, the live feed, and the database describing itself.
Graphs
curl -H "Authorization: Bearer $TOKEN" \
'http://127.0.0.1:8000/v1/app/main/graphs/social/traverse?from=social:1&via=follows&to=social&depth=2'
# {"records":[{"id":"social:2","name":"bob"}, …]}
One route, one question: every distinct record reachable from from over the
via edge kind, within depth hops (1–8), the centre excluded. The start id
is <table>:<id> — the same address a record has everywhere else. Deeper
questions — algorithms, path enumeration, weighted walks — are
the language's, and a declared
operation is how you expose one of them here.
Series
# Append a batch in one transaction.
curl -X POST -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
'http://127.0.0.1:8000/v1/app/main/series/latency/points' \
-d '[{"at":"2026-11-29T10:00:00Z","ms":12},{"at":"2026-11-29T10:00:01Z","ms":15}]'
# {"appended":2}
# Read a span.
curl -H "Authorization: Bearer $TOKEN" \
'http://127.0.0.1:8000/v1/app/main/series/latency/points?from=2026-11-29T00:00:00Z&to=2026-11-30T00:00:00Z'
The bounds are TessariQL spellings on the series' declared TIME field. Windows, fills, rollups and the counter folds stay in the language — the route is the append-and-read pair an instrumented app actually needs.
Operations
DEFINE OPERATION names a parameterized script in the catalog:
DEFINE OPERATION top_customers(days int, limit int) AS '
SELECT customer, sum(total) AS spent FROM orders
WHERE at > time::now() - duration::from_secs($days * 86400)
GROUP BY customer ORDER BY spent DESC LIMIT $limit;';
and the surface invokes it by name:
curl -X POST -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
'http://127.0.0.1:8000/v1/app/main/operations/top_customers' \
-d '{"days": 30, "limit": 10}'
The node reads the declaration, checks each argument against its declared
kind, binds them all as parameters and runs the script as the caller — the
operation is a saved question, never a privilege: what the caller may not
read, the operation may not read for them. The answer is the script's results
in the /script envelope. An undeclared name is a 404.
This is the extension point of the whole surface: anything the language can say — a traversal with algorithms, a multi-statement report, a guarded write — becomes one HTTP route by being declared, with the argument contract checked at the door.
The live feed
GET …/tables/{t}/watch upgrades to the same websocket feed the
clients' subscriptions use, with the target bound by the
path — the first message may omit what the path already said, and one naming a
different target is refused. Every change the caller's grants reach arrives as
a frame; the feed carries the row-guard narrowing a SELECT would.
The database describing itself
curl -H "Authorization: Bearer $TOKEN" http://127.0.0.1:8000/v1/app/main
answers one document composed from the engine's own reports — INFO FOR DATABASE, a per-table description for each table (bounded at 256, with a
tables_described marker when it stopped), and the declared operations — all
through the caller's session, so a user sees exactly the shape their grants
reach and nothing else. GET /v1/openapi.json is the static route table, the
same for every node of this version.
This is what a generated client, an admin page or an agent starts from: ask the database what it holds, then ask it for the data.