ELTIGA.

case file 01Sole developer

Express Ops

Operations platform that turns manifest photos into driver lists, double-booking checks and customer documents.

Role
Sole developer
Stack
7 components
Status
In daily use by the operations team

§ 01

The problem

Tour-transfer teams were rebuilding daily driver lists and customer documents by hand from photographed manifests, against a departure clock. A miscount or a double booking has to be caught before a vehicle leaves, not after.

§ 02

The build

I built a role-based web app that reads the photographed manifests, reconciles each one against the totals printed on the page, flags double bookings, and produces the finished driver lists and customer documents.

result

In daily use by the operations team. I estimate it saves them roughly 3–5 hours a day.

§ 03

What it does

  1. 01

    Manifest extractor: OCR per image, reconciled against the footer totals; failures and mismatches go to an editable review queue with undo.

  2. 02

    Driver's List: batches of per-shift screenshots become one styled XLSX with per-driver subtotals and a grand total.

  3. 03

    List Maker: imports group workbooks, classifies bookings, routes languages by agency and phone country, exports formatted DOCX lists.

  4. 04

    Double-booking detector ranks duplicate guests across or within agencies by severity.

  5. 05

    Customer Lists with role-aware import, live restaurant rosters, presence and audit workflows. Guides see only their own surface.

  6. 06

    Saves the operations team roughly 3–5 hours a day.

§ 04

Run Express Ops

A working replica of the real interface, on made-up sample data

§ 05

Architecture

Drawn from the project's own documentation

Express Ops architectureFour rows. First, the manifest pipeline: manifest photos are read by Mistral OCR, each result is reconciled against the footer totals printed on the image, failures and mismatches go to an editable review queue, and the output is exported as an XLSX driver list or DOCX lists. Second, the browser path: the browser talks to the public Convex URL through Cloudflare. Third, the server path: the Next.js server talks to Convex over the internal Docker network, which avoids the Cloudflare managed challenge. Fourth, the release path: a push or pull request runs dependency audit, lint, tests, typecheck and build; a push to main deploys over SSH to Docker Compose, and the sign-in endpoint is checked afterwards.Manifest pipelineManifest photosgrouped into a sessionMistral OCReach image is readFooter-total checkrows vs totals printed in the imageReview queuefailures and mismatches; edit inplace, undoExportsXLSX driver list, DOCX listsBrowser path · public URLsBrowserNEXT_PUBLIC_CONVEX_URLCloudflarepublic hostnameConvexself-hosted backendServer path · internal networkNext.js serverauth, queries, preloads, uploadsDocker networkbackend:3230 and backend:3231 noCloudflare challengeConvexsame backend, internal URLRelease · GitHub ActionsPush or PRevery push and every pull requestChecksaudit, lint, test, tsc, buildSSH deploypush to main only; same commitDocker ComposeConvex functions, stack rebuiltSign-in checkendpoint verified after release
Mechanism: every extracted manifest is checked against its own printed totals before it can become a document. Server-to-server traffic stays on the Docker network because the public hostname sits behind a Cloudflare challenge.

§ 06

Engineering decisions

  1. D-01

    Check every OCR result against the totals printed in the image footer, and send mismatches to an editable review queue instead of exporting them. Wrong counts surface before a vehicle leaves.

  2. D-02

    Keep a person in control of corrections: rows and footer totals are editable in place, and the last reprocess can be undone with Cmd/Ctrl+Z, even after a reload.

  3. D-03

    Treat the visible DOCX as authoritative. Embedded metadata is only a fast path when its fingerprint exactly matches the visible document, so manual edits always win.

  4. D-04

    Store immutable driver and plate snapshots on each daily list, so editing a preset later never rewrites historical origins.

  5. D-05

    Send server-to-server calls over the internal Docker network. Going through the public hostname triggered Cloudflare's managed challenge and broke Server Component rendering, so the app reads internal URLs first and falls back to public ones for local development.

  6. D-06

    Gate production on CI: main is the sole production branch, and the commit that passed audit, lint, tests, typecheck and build is the one deployed over SSH, followed by a sign-in check.

  7. D-07

    Invite-only, role-based access (admin, operator, guide) with no public sign-up; guides see only the Customer Lists surface.

§ 07

Secured and shipped

  • [pass]Every push and PR runs a dependency audit, lint, unit tests, typecheck and a production build.
  • [pass]A green push to main deploys the same commit to the production host over SSH, then verifies the sign-in endpoint.
  • [pass]Recent audit failures (ip-address, undici advisories) were patched via lockfile-only updates.
  • [pass]Server-to-server calls use internal Docker-network URLs so they never hit the Cloudflare managed challenge.
  • [pass]Role-gated navigation, MFA in account settings, and a non-root multi-stage Docker image.

stack

Next.js / TypeScript / Convex / Mistral OCR / Docker Compose / GitHub Actions / Vitest

open channel

Have a problem shaped like this one?

Tell me what your team is stuck on and what you need built.