Internal platform · Full-stack

Tempo

The all-in-one platform a deals brand's team runs on: scheduling posts, researching products, reporting on ads and monitoring deals.

Built
Solo, end to end
Used by
9-person team, daily
Products tracked
300,000+
Updates
Daily

Why I built it

Tempo started because our scheduler kept failing. We posted through Buffer, and it would break or skip posts for long stretches. When that happened, the team had to post by hand every two to three minutes to keep up.

Posting was also split across platforms. I wanted one centralized system, with no loose threads. So I built it: first the posting queue, then everything around it, from finding products to running ads behind them and catching changes after they went out.

What’s inside

Posting calendar showing three days of color-coded category slots

Queue, calendar & categories

Write a post once, attach an image, GIF or video, and drop it in the queue. Tempo gives it the next open slot on a weekly calendar, where every slot belongs to a category.

  • Drag to reorder; category posts stay pinned to their slots
  • Color-coded categories reserve slots for each type of post
  • Weekly posting windows in each account’s timezone
  • Retry, restore and a full activity history
Two deal cards in the Discover feed, with prices, ratings and savings badges

Product discovery

A feed of products worth posting, rebuilt every morning, with filters for category, coupons, ratings and sales rank.

  • Saved views the team can share with a code
  • Products captured from the browser extension join the same feed
  • Only a complete daily run replaces yesterday’s feed
Seven-day ads performance overview with spend, impressions, link clicks and engagement metrics blurred

Ads performance & funding

Campaign, ad group and promoted-post reporting, collected from the X Ads API every day. A funding workspace moves batches of campaigns to a new funding source in one reviewed step.

  • Drill down from account to a single promoted post
  • Collected in saved steps, so large reports always finish
  • Funding changes go through a review screen first
  • Originals pause only after replacements are verified
Three watchlist rows with red EPC lost, Coupon removed and Out of stock badges

Product monitor

A shared watchlist that checks tracked products every day and flags coupon, stock and campaign changes.

  • Changes are confirmed before anyone gets alerted
  • Report uploads can be previewed, corrected or undone
  • Alerts post to Discord, once per channel

How it works

The teambrowser · phone · extension
Tempo web appNext.js · React · server-side auth on every route

Data

SupabaseLive state: posts, teams, jobs
ClickHouseHistory: products, ads, changes

Background jobs

Oracle serverMorning product pipeline
Campaign checker
Product monitor
CloudflareAds reporting
Funding jobs
Callbacks + media
Outside services
  • X
  • X Ads
  • Keepa
  • EasyParser
  • Amazon
  • Discord
  • Metabase

Simplified view of how Tempo's pieces connect.

Hard problems

Never paying twice for the same data
The problem

The morning product pipeline pays for every lookup. If the server stopped mid-run, a simple restart would buy the same data again.

What I did

Every batch is checkpointed before and after it’s sent. A restart reuses what was already paid for, and anything uncertain stops for review instead of resubmitting. A half-finished run never replaces the last good feed.

Changing ad funding with no undo button
The problem

Moving a campaign to a new funding source takes several X Ads API calls with no transaction. A dropped connection could leave things half done.

What I did

Each job snapshots the campaign, saves every step as it happens, and verifies the replacement before pausing the original. Interrupted jobs resume from the last saved step.

Reports too big to finish in one run
The problem

Large X Ads reports hit API limits before a single run could complete them.

What I did

Collection runs in small saved steps on Cloudflare and wakes itself up when limits reset, so reports finish without creating duplicates.

A schedule that never double-books
The problem

Reordering a busy queue could collide with taken slots or move posts that were meant to stay put.

What I did

Shared slot rules plus a database constraint mean two posts can’t land in the same slot, and category posts never move.

Alerts the team can trust
The problem

A product briefly missing from a report caused false alarms, and retries could post the same alert twice.

What I did

Suspected changes are confirmed before anyone is alerted, and each Discord channel tracks its own delivery, so nothing posts twice.

Decisions I made

Two databases, on purpose

Supabase holds live app state like posts, teams and jobs. ClickHouse holds the large history: products, ads and every observed change.

Tradeoff · Data gets mirrored between them, and a mirror can lag behind.

Work that can’t get lost

Callbacks, ads reporting and funding jobs run as Workers and queues that keep going even when the web app restarts.

Tradeoff · More moving parts to deploy and watch.

A dedicated server for long jobs

The product pipeline and checkers run in Docker on an Oracle server, on timers, with locks so two runs never overlap.

Tradeoff · I run the server myself, and a full outage needs monitoring from outside it.

Scope

Screens
17
API endpoints
56
Database tables
60+
Outside services
9

Stack

App

  • Next.js
  • React
  • TypeScript
  • Tailwind

Data

  • Supabase
  • Postgres
  • ClickHouse
  • SQLite

Infrastructure

  • Cloudflare Workers
  • Durable Objects
  • Queues
  • R2
  • Docker
  • Oracle Cloud
  • Render

Integrations

  • X API
  • X Ads API
  • Keepa
  • EasyParser
  • Discord
  • Metabase