0
AVERNUS PROJECT

Creteva

Creator Economy Marketplace & Live Commerce Platform.

Consolidated streaming, commerce, and community with sub-second Gemini AI content safety moderation.

Client / ScopeCreator Media Venture
Timeline5 Months Build
RolePrincipal Architect & Full-Stack Systems Lead
CategoryAVERNUS PROJECT
[ HERO IMAGE: Creteva Interface ]

Replace with high-res UI dashboard screenshot, mockup, or banner (Recommended 1920x1080)

Production Architecture · Full-Stack Hub

Creator Ecosystem Engineered for High Concurrency

Creteva was engineered as an all-in-one ecosystem unifying low-latency live streaming, creator digital/physical storefronts, direct messaging, and automated content safety checks powered by Google Gemini AI.

Architected Fastify 5 REST API gateway handling concurrent socket and webhook traffic
Integrated Mux low-latency HLS video playback paired with duplex Socket.io chat
Embedded Gemini AI multimodal moderation gateway classifying user media in sub-seconds
03 · Executive Overview

Project at a Glance

A high-performance dark-mode creator ecosystem bridging artists and fans through real-time streaming, exclusive content feeds, duplex chat channels, and dynamic storefronts backed by Stripe Connect.

Domain & Focus

Creator Economy & Real-Time Live Commerce

Stakeholders

Media Startups & Independent Creators

Engagement

Q1 - Q3

Primary Win

Unified streaming, storefront, and chat under a single authenticated wallet and identity system.

04 · Operational Bottleneck

The Problem

Creators are forced to juggle separate platforms for live broadcasting, direct messaging, paywalled feeds, and digital merch. This creates fragmented fan experiences, massive transaction fees, and zero unified content moderation.

Friction Point #1

Fragmented tools: Patreon for subscriptions, Twitch for streaming, Shopify for merch, Discord for chat.

Friction Point #2

High platform fees across 4 different subscription and checkout providers.

Friction Point #3

Lack of real-time automated safety moderation for user-generated text and media uploads.

Friction Point #4

High latency in live stream chat and presence synchronization.

05 · Strategic Targets

Goals

Technical Goals

  • Low-latency HLS streaming via Mux with synchronized duplex chat rooms.
  • Sub-second image and text NSFW safety classification via Google Gemini AI SDK.
  • Secure creator payouts and direct-to-creator fan subscriptions via Stripe Connect.
  • High-efficiency Fastify 5 microservices gateway with schema-validated routes.

Business Goals

  • Unify all creator revenue streams (tips, subscriptions, products) into one wallet.
  • Eliminate platform switching friction for fans and creators.
  • Protect platform reputation with automated AI-driven trust and safety gates.
06 · Ownership & Execution

My Role

Position

Principal Systems Architect

Core Responsibilities

  • Designed the Fastify 5 API gateway architecture and MongoDB/Mongoose data schema.
  • Engineered the live streaming lobby and viewer room with hls.js and Socket.io.
  • Integrated Stripe Connect onboarding and custom checkout elements.
  • Implemented Google Gemini multimodal AI moderation pipelines for image and text uploads.

Primary Focus Areas

Low-Latency Video Streaming (LL-HLS)Duplex WebSocket ArchitectureFintech Payouts & Stripe ConnectMultimodal AI Content Moderation
07 · The Architecture Approach

Solution

A unified dark-mode web application engineered with Next.js 16 and Fastify 5. The platform merges live broadcast rooms, direct messaging, digital goods marketplace, and automated Gemini moderation into a single cohesive platform.

PILLAR 01

Low-Latency Live Streaming

HLS broadcast player with real-time viewer presence and socket-powered tipping animations.

PILLAR 02

Stripe Connect Financial Engine

Automated split-payments, creator wallets, cashout schedules, and Elements checkout.

PILLAR 03

AI Moderation Guardrails

Multimodal Gemini AI scanning all uploaded images and chat comments before public broadcast.

08 · Systems Engineering

Architecture & Data Flow

High-performance architecture integrating Mux video ingest, Fastify 5 API gateway, Socket.io duplex cluster, and Gemini AI safety gateways.

01

Broadcast Ingestion

Mux Video / RTMP

Creator streams via RTMP to Mux broadcast servers; live HLS stream generated.

02

API Gateway & Auth

Fastify 5 / Node.js 20+

Fastify 5 routes validate session tokens and enforce JSON schema input compliance.

03

Duplex Chat & Viewer Presence

Socket.io / Redis

Socket.io synchronizes viewer comments, live tips, and typing status with sub-50ms latency.

04

Gemini AI Moderation Gate

Google Gemini AI SDK

Base64 image uploads and chat messages pass through Gemini AI safety filters before persistence.

05

Stripe Connect Billing

Stripe Connect & Webhooks

Direct fan subscriptions and digital product purchases routed through Stripe Connect accounts.

09 · Capabilities

Core Features

Low-Latency Livestreaming Lobby

Mux & hls.js

Dynamic viewer rooms with HLS playback, live tip leaderboards, and instant chat reactions.

Gemini Multimodal Content Moderation

Sub-second AI gating

Automatic NSFW and toxic content filtering on all uploaded media and chat messages.

Digital & Physical Marketplace

Stripe Elements checkout

Full e-commerce storefront for creator courses, digital presets, and merchandise.

Creator Financial Center & Wallet

Automated payouts

Real-time revenue analytics charts with Recharts, balance tracking, and instant Stripe cashouts.

10 · Tradeoffs & Rationale

Engineering Decisions

Fastify 5 over Express

Chosen Path:Fastify 5 with AJV Validation
Alternative Considered:Express.js

Why: Fastify delivers 3x higher throughput and native schema validation out of the box, essential for real-time webhooks.

Gemini AI SDK for Moderation vs Third-Party Vision APIs

Chosen Path:Google Gemini 1.5 Flash Multimodal
Alternative Considered:Legacy AWS Rekognition

Why: Gemini allowed joint text-and-image contextual understanding (e.g. meme text on images) at a fraction of the cost.

11 · Obstacles & Solutions

Challenges

Challenge #1

Socket Scalability during Live Events: Sudden spikes in chat messages degraded server memory.

Engineering Solution

Implemented Redis Pub/Sub socket adapters and client-side message batching.

System Impact

Sustained thousands of concurrent viewers with zero socket disconnects.

Challenge #2

Payment Webhook Race Conditions: Users accessing digital downloads before Stripe webhook confirmed payment.

Engineering Solution

Engineered idempotent webhook listeners with optimistic unlocking and rollback safety.

System Impact

100% reliable purchase fulfillment with zero duplicate charges.

12 · Roadmap & Milestones

Implementation Timeline

Phase 1: Backend Gateway & AuthWeeks 1 - 5

Fastify Scaffolding & Mongoose Models

  • JSON schema validated REST routes
  • JWT authentication & creator profiles
  • MongoDB database indexing
Phase 2: Streaming & Real-Time SocketsWeeks 6 - 11

Mux Integration & Socket Chat

  • Low-latency HLS stream player
  • Socket.io duplex messaging and presence
  • Broadcaster manual and stream key generator
Phase 3: Commerce & Stripe ConnectWeeks 12 - 16

Marketplace & Wallet Hub

  • Stripe Connect onboarding flow
  • Digital/physical product storefront
  • Creator analytics dashboards with Recharts
Phase 4: AI Moderation & PolishWeeks 17 - 20

Gemini AI Gate & Production Hardening

  • Real-time base64 image/text moderation pipeline
  • Dark-mode UI polish and mobile responsiveness
  • End-to-end load testing and launch
13 · Measurable Performance

Results & Metrics

<1.2s
Stream Latency

Low-latency broadcast delivery to global viewers.

450ms
AI Moderation Speed

Average multimodal safety classification latency per upload.

99.9%
Payment Reliability

Webhook idempotency rate across Stripe transactions.

All-in-One
Platform Consolidation

Replaced 4 disparate SaaS tools for creators into a single subscription.

14 · Visual Gallery

Screenshots

[ SCREENSHOT #1: Live Streaming Player & Real-Time Fan Chat ]

Drop high-resolution interface screenshot here (Recommended 1920x1080)

Live Streaming Player & Real-Time Fan Chat

Low-latency broadcast view with interactive chat and live tipping animations.

[ SCREENSHOT #2: Creator Marketplace & Product Detail View ]

Drop high-resolution interface screenshot here (Recommended 1920x1080)

Creator Marketplace & Product Detail View

Direct e-commerce storefront with integrated Stripe Elements purchase modal.

[ SCREENSHOT #3: Revenue Analytics & Payout Wallet Dashboard ]

Drop high-resolution interface screenshot here (Recommended 1920x1080)

Revenue Analytics & Payout Wallet Dashboard

Visual income tracking and Stripe Connect transfer manager.

15 · Walkthrough

Demo Video

[ DEMO VIDEO PLACEHOLDER ]

Creteva Live Commerce Walkthrough: 3-minute demonstration showing stream initialization, real-time chat, Gemini AI moderation in action, and Stripe checkout.

Add iframe or video src in lib/case-studies-data.ts

Demonstration Highlights:

Creator broadcasting setup with RTMP and Mux
Instant fan tip reaction in the live chat feed
Seamless digital product checkout via Stripe Elements
16 · Retrospective

Lessons Learned

1

Multimodal AI moderation must be executed asynchronously on media upload to avoid blocking creator publish workflows.

2

Stripe Connect custom account onboarding requires thorough error boundary handling for international verification.

3

Duplex WebSocket rooms should decouple viewer counts from message broadcasting to minimize network traffic.

17 · Technologies

Tech Stack

Frontend

Next.js 16React 19Tailwind CSS v4hls.jsRecharts

Backend & Gateway

Fastify 5Node.js 20+Socket.ioStripe Connect API

AI & Media

Google Gemini AI SDKMux Video APISharp Image Processing

Database & Cache

MongoDB AtlasMongoose ODMRedis
18 · Organizational Value

Business Impact

Creteva gave creators ownership over their audience, eliminating platform fragmentation and recapturing revenue previously lost to intermediary fees.

Consolidated streaming, merchandising, and subscriptions under one brand.
Protected creators and brand partners with automated real-time safety guardrails.
Empowered creators with instant daily payouts rather than monthly batch delays.

Building Creteva showed that creators don't want five apps—they want one lightning-fast workspace where their stream, their store, and their community live together.

L
Lead Full-Stack Architect
Avernus Engineering
Scale Your Architecture

Have a complex system to build?

Let's engineer your vision. Whether you need multi-agent AI orchestration, full-stack streaming hubs, or hardened enterprise analytics, Avernus delivers scalable architecture from zero to one.