Web app AI reading Labs Aero

Miles Terminal

A web terminal for people who run miles operations: in one place it processes LATAM cards and statements, shows each agent's performance from the sales spreadsheet and builds a multi-airline flight search from a screenshot, read by AI. It grew out of my own desk and was used by agency ticketing agents with individual logins.

Tela inicial do Miles Terminal com os módulos Desempenho, CUV/Extracts e Buscador de voos
The home screen: each module opens alongside, without leaving the terminal.
What it does

Three modules, three jobs that used to be manual

01 · Performance

Per-agent metrics, no server

Reads the sales spreadsheet (a file or a live Google Sheets link, refreshed every 15 minutes) and shows each person's tickets, revenue, profit and margin. Everything is computed in the browser; the data never reaches the server.

02 · CUV/Extracts

LATAM cards and statements

Opens the booking, works out sale, cost, fees and commission from the price per thousand miles, and pulls data from the statement PDF to check the ticket.

03 · Search

Flight search from a screenshot

The agent pastes the itinerary screenshot the customer sent; AI reads origin, destination and dates, and the terminal builds the ready search on Smiles, LATAM, Azul and American.

Módulo Desempenho do Miles Terminal, tela de entrada da planilha
Performance: spreadsheet by file or live link, processed only in the browser.
Módulo CUV do Miles Terminal
CUV: booking, price per thousand miles, fees and commission on one screen.
Buscador de voos do Miles Terminal com envio de print
Search: drag or paste the itinerary screenshot.

Screenshots of the screens with no data, taken from the project's code. The terminal requires an authorized Google login, so there is no open demo.

How it was built

One terminal, two servers, no sales data stored

Front endShell with iframe modules · Tailwind · Chart.js · SheetJS in a Web Worker
ServersNode.js + Express · Python
AI and readingClaude (vision) for screenshots · OCR.space with Tesseract as fallback
AutomationPuppeteer · Playwright
AccessGoogle login with an allow-list · strict CSP
InfrastructureOwn VPS · Docker Swarm · Traefik · pm2
Recorded use84 logins by 33 people, April to June 2026

The code is private. The login count comes from the terminal's own access log.