Ardoca: rebuilding a live product

I rebuilt a document platform already used by immigration firms. I designed the interface and built the frontend, backend and production infrastructure.

immigration and relocation firms use it
20
rebuild start to production, July to August 2026
2 months
full recovery sets, kept in a separate EU bucket
2 a day
When
May 2026 to now
Users
20 immigration and relocation firms
My part
Product design, frontend, backend, infrastructure, data protection
Stack
React 19, TypeScript, Vite, Tailwind, TipTap, PDF.js · Go, Chi, MySQL, sqlc, pdfcpu · Cloudflare R2, Hetzner, Dokploy, GitHub Actions · Mistral (EU)

Ardoca is a platform for immigration and relocation firms. A firm builds a document workflow once and assigns it to a client. The client fills in forms, uploads files and signs PDFs in a portal with the firm's branding. Staff review what arrives, ask for a better copy when a scan is unreadable, and prepare the application.

I joined in May 2026, when the product was called ezyClients. I started the rebuild in July and moved it into production at the end of August. Existing client records and emailed invitation links had to survive the move.

Rebuilding the client workflow

I replaced the Nuxt client with React, keeping every route and query parameter so existing activation and invitation links continued to work. Each firm gets a branded portal on its own subdomain without a separate deployment.

The workflow builder needed to show both the document and its structure. I replaced a scrolling column of cards with three panes: steps on the left, content in the middle, settings on the right. Content is edited at the width the client will read it. The same editor handles a firm's template and an individual client's copy.

On the old platform, a lawyer's correction to a filled PDF disappeared on reload. I gave each client one data profile: forms update it and PDFs read from it. The Go backend fills and signs the firm's original PDF, so the next generated document includes the correction.

One content model for forms and PDFs

I evaluated keeping SurveyJS forms and the old PDF field format to avoid a data migration. That would have kept two form systems and two review pipelines running for months, with an ongoing SurveyJS licence. I chose one content model and migrated the existing data.

I wrote one-time converters: SurveyJS forms to the new form schema, PDF field layouts to placements, old keywords to named fields, TipTap 2 documents to TipTap 3, and files on the server's disk to Cloudflare R2. The old platform's data has been moved over with them. The original data stays in legacy columns as a backup, and anything a converter cannot map is flagged. Files now go from the browser straight to an EU bucket through a presigned URL with a SHA-256 checksum, and the backend confirms them afterwards.

AI on identity documents

The AI features read the most sensitive files a firm holds: passports, bank statements, tax papers. So the first question was where those files go, and the answer is written down as an architecture record.

  • One processor, Mistral, through its EU endpoint only. The backend refuses any other endpoint outside local development, and model ids are pinned, because "latest" aliases can change the model without notice.
  • A switch per firm, off by default. The code reads it on every call, so turning it off stops the very next document from leaving.
  • Every AI value is a suggestion that a person confirms. Nothing is approved, rejected or submitted automatically.
  • File names are never sent, and nothing extracted is logged. Zero data retention at Mistral has been active since 7 October 2026.

Firms that use their own AI tools can connect them to Ardoca through a gateway API and an MCP server. Their tool reads the firm's submitted documents with a key the firm can rotate or revoke, and Ardoca itself sends nothing to an AI provider on that path.

Recovering client data

On 23 June 2026, on the old platform, a hard delete followed by re-attaching a blank template emptied the cases of two clients. It reached me on 29 June. The MySQL binary log ran in row format with 30 days of retention, so the deleted rows were still in it. The server's disk was nearly full, so I decoded the relevant window in memory and wrote a small Python parser that turned the logged deletes back into inserts. I ran them once inside a transaction and rolled it back to check for collisions, then for real. On 1 July the first client's workflow, its 8 steps and 27 documents were back, and the second client's case was restored the same way.

On the new platform, two full recovery sets run every day: a database dump, every stored document and a manifest with a checksum per file. They go to a separate EU bucket that deletes in the live buckets cannot reach, and a monitor alerts when a set is late or incomplete.

How it ships

A push to dev builds the images once and deploys them to a test stand with synthetic data. Production gets the same images: main is fast-forwarded to the exact commit that passed on the stand, and a browser smoke test runs against the built image before promotion. CI runs lint, type checks, Go vulnerability checks and a dependency audit. The Go tests and the Playwright suite run on my machine before a release.

I build it with coding agents, in the loop described in How I ship with coding agents. The decisions above are written down as architecture records in the repository, so the next engineer, or the next agent session, can see why.

Questions about this project: [email protected]