One Rust Core for iOS, Android and the Backend (UniFFI)
How we share cryptographic validation, the offline SQLite cache and the sync protocol between the mobile apps and the Rust API.
PAGE // ENGINEERING BLOG
Case studies on Rust, Mobile FFI, Local LLM, n8n and the Security API.
How we share cryptographic validation, the offline SQLite cache and the sync protocol between the mobile apps and the Rust API.
A default axum service is fast and almost entirely undefended. The five layers we add before anything faces real traffic, and why each one earns its place.
One synchronous call in an async handler does not slow down one request. It stalls every other request scheduled on that worker thread. How to find it and where to put the work instead.
A service mesh is a lot of moving parts to encrypt traffic between four services. What mTLS looks like when you wire rustls in directly, and when the mesh is genuinely worth it.
Offline-first is a protocol problem, not a storage problem. The schema, the outbound queue and the conflict rules we settled on, and the ones we got wrong first.
A complete architecture that sends no data to a third party: a Rust masking proxy, local inference, and n8n workflows connecting it to the systems you already run.
Filtering for "ignore previous instructions" is security theatre. What actually contains prompt injection is the same thing that contains SQL injection: never letting data reach a position where it is read as an instruction.
Both serve a local model behind an HTTP API. They are built for different loads, and picking the wrong one shows up as either wasted GPU or an evening of YAML.
Redacting a prompt makes the answer useless. The proxy we run swaps personal data for stable placeholders, then puts it back in the response — and the detection runs in microseconds.
Most RAG systems are disappointing because retrieval is bad, not because the model is small. What we changed, and how to decide between pgvector and a dedicated vector database.
A security API becomes a bottleneck the moment token verification is slow, because everything waits on it. The design decisions that kept validation under two milliseconds.
A bearer token proves possession. A signature proves the request was not altered on the way. What we put in the signing string, and the two mistakes that make it decorative.
ENGINEERING DIGEST
No obligatory weekly newsletter: one email, only when we publish something.
COOKIES // MEASUREMENT
We count page views through Google Tag Manager. Say yes and it may store a cookie in your browser; say no and it still counts the visit, without storing anything and without an identifier. Nothing here is used for advertising.
Cookie Policy — you can change this at any time from the footer of any page.