thestatic.tv

Production Streaming Platform with Crypto Payments

Solo build
Visit Site
Next.jsFirebaseGCP LivestreamCloud StoragePolygonUpstash RedisEthers.js

A complete SaaS platform handling payments, user management, content delivery, and analytics. Built solo to prove I can architect and ship production systems without a team.

160+
API Endpoints
Full REST API
5
Cron Jobs
Distributed automation
18
DB Collections
Firestore schema
6
Subscription Tiers
Relay to Genesis

A complete streaming platform with GCP Livestream infrastructure, Polygon-based crypto payments, real-time spark economy, and multi-tier creator monetization. Serves live video 24/7 with sub-second latency.

GCP Livestream Pipeline

RTMP ingest with tier-based transcoding (720p30 to 1080p60), HLS CDN delivery. Auto-VOD creation copies segments before channel stop to prevent data loss.

Dynamic Spark Economy

Viewer-scaled burn rates: 1 spark/min (0-25 viewers) up to 50 sparks/min (500+). Governor cron enforces every 60s with Redis distributed locks.

Triple Auth System

MetaMask wallet signatures (EIP-191), Decentraland auth chain protocol for in-world access, Firebase OAuth with custom token generation.

Polygon Payments

On-chain POL verification with 2-min confirmation windows. CoinGecko price feeds for USD conversion. Genesis tier: 1 ETH for lifetime access.

System Architecture

External Inputs

OBS / Encoder
RTMP Ingest
Web / Mobile
HTTPS + HLS
Decentraland SDK
Signed Fetch
MetaMask
EIP-191 Sig

Authentication Layer

Wallet Auth
EIP-191 signatures
DCL Auth
Auth chain protocol
Firebase Auth
Email + OAuth
thestatic.tvNext.js on Vercel

API Routes (160+)

Channels
CRUD + moderation
Streams
GCP provisioning
Billing
POL verification
VODs
Auto-archive
Chat
Real-time + bans
DCL SDK
32 frame slots
Users
Profiles + sparks
Admin
30+ god-mode

Core Systems

Spark Economy
1-50 sparks/min
The Governor
60s enforcement
VOD Vault
3-90 day retention
Viewer Tracking
Heartbeat system
Chill to Earn
Watch & earn sparks

Infrastructure

Firebase
Firestore + Auth
15 collections
GCP Livestream
RTMP to HLS
720p-1080p60
Cloud Storage
VOD + Media
Lifecycle rules
Polygon
POL payments
On-chain verify
Upstash Redis
Rate limiting
Distributed locks

Automated Cron Jobs

Governor
60s / spark burn
Cleanup
10m / idle kill
VOD Reaper
Daily / retention
Stipend
Monthly / grants
Snapshot
Monthly / costs

Under the Hood

  • Decentraland SDK integration with 32-slot frame system, scene session tracking, and in-world stream playback
  • Rate limiting via Upstash Redis with sliding window algorithm across serverless instances
  • VOD system with tier-based retention (3-90 days), 500-spark Vault protection, and GCS lifecycle management
  • Admin dashboard with 30+ endpoints: economy monitoring, billing recovery, user management, stream controls
  • Real-time viewer tracking via 60s heartbeat system with privacy-preserving IP hashing for anonymous users
  • Chat system with per-user rate limits (20 msg/min), channel-specific bans, and message sanitization

Platform Screenshots

TheStatic.tv homepage - A decentralized streaming platform
Broadcaster studio
Studio

Broadcaster studio

Admin dashboard
Admin

Admin dashboard

15.4h watch time
Analytics

15.4h watch time

GCP infrastructure
Infrastructure

GCP infrastructure

3D frame manager
Decentraland

3D frame manager

Scene effects
Decentraland

Scene effects

User dashboard
Dashboard

User dashboard

Platform docs
Docs

Platform docs

Mobile-First Design

Full viewing experience on any device
Watch

Full viewing experience on any device

Manage your channel on the go
Studio

Manage your channel on the go

Track metaverse engagement in real-time
Scene

Track metaverse engagement in real-time

Viewer insights at a glance
Metrics

Viewer insights at a glance