Mazza Builds
← All projects

9 to 5 · Internal app at Freshpaint

Event Hub

Shows what every company event did for sales, one quarter at a time.

Hourlyrefresh, so the numbers are always current

  1. What it does

    Every hour it pulls the whole event program, from conferences to dinners, and shows what each one did for the sales pipeline. Each event gets a card with a photo of its city and a pin on a 3D globe.

  2. Why it's cool

    The numbers the events team is judged on were scattered across five kinds of records and had to be rebuilt by hand every quarter. Now they sit on one page, already deduplicated.

  3. The impact

    The quarterly scramble of exports and spreadsheets is gone. Pick a quarter and every event is there, each number traceable to the deals behind it.

Under the hood

Context

Freshpaint's events team tracks every conference, House Call, and field event in HubSpot, but the numbers they're judged on don't live on the event record. They're scattered across events, deals, pipelines, stages, and companies, and have to be re-derived every time someone asks. Every quarterly review turned into a manual export-and-reconcile exercise.

Build

A Next.js 15 app on a single Fly.io machine. An hourly sync pulls a full HubSpot snapshot into SQLite inside one all-or-nothing transaction, then four pipeline KPIs (open, influenced, influenced revenue, created) are computed in SQL at read time, so a definition change is a one-line edit with no resync. Stage semantics come from synced pipeline metadata rather than hardcoded IDs, so a HubSpot rename can't silently break a number. Events missing a location get one inferred by a cheap-first LLM pass, each card is auto-illustrated with a license-clean city photo chosen by a vision model, and every event plots onto a WebGL globe. Google sign-in is enforced server-side and restricted to @freshpaint.io.

Result

Live and used by the team on one always-on Fly.io machine. The quarterly 'what did events do for pipeline' reconciliation is now a page: pick a quarter and every event is there with its KPIs already deduped and attributed, each number drilling down to its source deals in HubSpot.

Stack

Next.js, TypeScript, SQLite, HubSpot

Next projectAI Web Tracker Scanner