Roxom TV Backend Architecture

Cloudflare Workers + Fastify (rtv-api)

Welcome to the engine room. The rtv-api is a high-performance, edge-deployed middleware layer built on Cloudflare Workers and Fastify. Its primary function is to act as an intelligent proxy and data aggregator. By centralizing our ingestion pipelines, it shields our sensitive API keys, bypasses strict vendor rate limits, and unifies fragmented external data sources (WebSockets, REST, on-chain metrics) into a clean, predictable format for our frontend widgets.

Rather than building complex calculation logic into the frontend React components, the backend handles the heavy lifting—formatting payloads, caching responses globally via Cloudflare KV, and streaming live updates through optimized Server-Sent Events (SSE). This guarantees that our broadcast graphics remain extremely fast and lightweight.

Click any node below to recursively trace its end-to-end journey, from initial data ingestion down to the exact UI component that renders it.

1. Data Ingestion

EODHD

Yahoo Finance

CoinGlass

CoinGecko

Polymarket

2. Core Processing

MarketIngestor

Fastify Modules

3. Storage & Caching

Cloudflare KV

Supabase DB

4. Delivery

SSE Streams

REST API

5. Frontend Widgets

BTC Price

Ticker

ETF Board

Treasuries

Twitter Feed

Polymarket

HealthCheck

Live OpenAPI reference — rendered from the running API. Expand any operation to see the schema, try it out against the deployment, and copy curl snippets.

Node Title

What it does

Description goes here.

The "Why?" (Architecture)

Architecture reasoning goes here.

Real Payload Snippet

{}