Skip to main content

Projects/SaaS platform

ViralSync

An early-stage social media operations platform bringing brand channels, media, post planning and provider workflows into one workspace.

ViralSync monthly publishing calendar populated with synthetic Healthy Life demo posts.
Synthetic Healthy Life showcase calendar populated with sample posts.

What I did

  • Built the organization and brand workflows, media library, and channel connection foundation.
  • Structured the product around shared domain logic, a Next.js app, and a Hono API on Cloudflare Workers.
  • Implemented server-side invitation and provider-approval gates for a planned private beta; production rollout remains a separate release.

Challenge

Publishing to several social networks means repeating the same work in four different tools: uploading the same video, rewriting the same caption, and collecting numbers from four dashboards. ViralSync puts the channels of a brand behind one workflow.

Solution

ViralSync is being built around a shared workspace for brand channels, a media library and a reviewable publishing workflow. The current build has its organization and brand foundation, media library and channel connection foundations. Publishing, analytics presentation and the assistant interface are still being completed. Production controls and provider approvals remain under release review; this portfolio page is a project case study, not an offer of general availability.

Architecture & System Design

The platform is designed as a type-safe monorepo separating web frontends, API backends, and domain contracts:

  • Web Application: Next.js App Router with React Server Components, server actions, and optimistic calendar planning views.
  • Edge API: Lightweight Hono framework deployed to Cloudflare Workers for fast multi-region request routing and low edge latency.
  • Data Persistence: Neon Serverless PostgreSQL with connection pooling, migrations managed via Drizzle ORM, and schema validation with Zod.
  • Provider Adapters: Every external social network (Instagram, TikTok, YouTube, LinkedIn) is encapsulated behind a strict provider interface with its own configuration manifest.
System Architecture & Data Flow

ViralSync Monorepo Pipeline

TypeScript · Next.js · Hono · Neon
TIER 01Next.js App Router

Web Application

  • React Server Components & Actions
  • Optimistic Calendar Views
  • Type-safe User Interface
TIER 02Hono · Cloudflare Workers

Edge API Tier

  • Geographically distributed API execution close to users
  • Decoupled Publishing Routes
  • Provider Capability Manifest
DATA LAYERNeon Postgres (Frankfurt, EU)

Database Layer

  • Drizzle ORM & Schema Migrations
  • WebSocket Connection Pooling
  • Runtime Zod Schema Validation
INTEGRATIONExternal Social Adapters

Provider Ports

  • Instagram, TikTok, YouTube, LinkedIn
  • Encrypted Token Lifecycle
  • Simulated Providers for CI Tests
Architecture Overview: Decoupled Next.js web frontend and Hono edge API share core domain and database layers (Neon Postgres); external social networks are isolated behind unified provider ports.

Engineering Decisions & Quality Gates

  1. Shared Domain Logic: Domain entities, validation rules, and business logic are isolated in independent workspace packages. The web application and edge API share identical invariants without code duplication.
  2. Automated Testing with Mock Providers: In integration test suites, a simulated mock provider validates the entire publishing and scheduling flow without consuming external API rate limits or requiring third-party credentials.
  3. Status & Delivery Boundaries:
    • Implemented & Verified: Multi-brand organization hierarchy, media library storage, and mock-adapter scheduling pipelines.
    • Planned Beta: Live social platform OAuth approvals, multi-network publishing queue, and AI assistance interface.