Puebla Chicago New York Los Angeles Contracts in USD or MXN · NDA before details contact@thealchemistcode.org
Case study · Own product

PDF Master: on-device OCR and web PDF tools that scale to zero

A scanning app for iOS and Android ("Scan to PDF" in the stores) where documents never leave the phone, and pdfmaster.guru, a site in 6 languages that merges, splits, compresses and converts PDFs on Cloud Run, with Stripe payments.

Role
Own product: app, web and operations
Platforms
iOS, Android and web
Languages
13 in the app, 6 on the web
Since
2025 (app) · 2026 (web)
0.31 s Cold start Down from 7.4 s with CPU boost Project load test
½ Cost per instance 1 vCPU performs like 2 for these tools Project load test
1 día File lifetime Deleted automatically from storage Cloud Storage rule
0 Documents uploaded The app runs OCR on the phone On-device ML Kit
PDF Master
01 — The challenge

Private documents, and servers that cost money even when idle

People scan IDs, contracts and invoices. They don't want those documents traveling to a server just to read the text.

And a PDF tools website has peaks and dead hours: a server running all day costs money even when nobody uses it, and converting a large PDF can't take forever.

02 — What we decided

Technical decisions, and why

01

On-device OCR

The app recognizes text with ML Kit on the phone itself. Scanned documents are never uploaded to a server and no account is needed.

02

Cloud Run that scales to zero

The web API, in FastAPI, runs on Cloud Run with zero minimum instances: no traffic, no compute cost. Firebase Hosting serves the site from its CDN.

03

Measure before paying more

Load tests showed 1 vCPU performs like 2 for these single-threaded tools: half the cost. Turning on CPU boost cut the cold start from 7.4 to 0.31 seconds.

04

Files that delete themselves

Web files go to Cloud Storage with a rule that deletes them after a day, and results are delivered through signed links that expire in an hour.

03 — In production

How it runs day to day

Real automated checks
Our monitor checks the site and the API, merges two real PDFs and opens a Stripe test checkout to confirm payments work, without charging anything.
Tests on every change
GitHub Actions runs backend and frontend tests on every change, and each approved version deploys itself to Firebase and Cloud Run.
SEO built in
Every deploy regenerates canonical tags, hreflang, the sitemap and structured data in all 6 site languages.
Up to date with the stores
The app uses Play Billing 8, as Google requires, and a photo permission Google Play had rejected was removed.
04 — Stack

What it’s built with

  • Flutter
  • ML Kit (OCR)
  • FastAPI · Python
  • React · Vite
  • LibreOffice
  • Ghostscript
  • Tesseract
  • Cloud Run
  • Firebase Hosting
  • Cloud Storage
  • Stripe
  • GitHub Actions
Related service AI development

What does success look like for your product?

The first call and the proposal are free. The person who will lead your project replies in person.