Isang SaaS na pinapagana ng AI na nagpapalit ng isang video upload sa daan-daang branded na ad variation — isinaayos sa isang Next.js Web App, isang Admin Dashboard, isang NestJS API, isang Remotion render service, at isang BullMQ generation worker. Nagbibigay-daan sa automated combination generation, GPU-accelerated rendering, multi-style subtitles, real-time WebSocket progress, at Stripe-powered subscription billing.

Binuo ang buong NestJS backend mula sa simula — Mongoose schemas, modular CRUD APIs, DTO validation, at ang mapping layer na nagta-translate ng frontend flat arrays sa backend embedded documents.
Binuo ang combination calculator engine na naglilista ng lahat ng valid na Hook x Body x CTA x Subtitle permutations at inilalagay ang bawat isa bilang isang independenteng BullMQ job.
Binuo ang mga Remotion composition (VideoComposition, HookOverlay, BodyOverlay, CtaOverlay) na may 6 na uri ng animation at sinama ang mga ito sa server startup para sa mabilis na pagpapatupad ng trabaho.
Ipinatupad ang BullMQ generation processor: S3 download, Remotion renderMedia(), FFmpeg encoding optimization, thumbnail generation, S3 upload, at DB update, na may error handling at retries.
Binuo ang 6 na istilo ng subtitle rendering sa SubtitleRenderer.tsx na sumasakop sa Hormozi, Abdal, MrBeast, GaryVee, TikTok Viral, at Clean Corporate sa lahat ng 4 na aspect ratio.
Isinama ang WebSocket gateway para sa real-time generation progress na may SSE fallback, na nagbibigay-daan sa live job status updates sa frontend nang walang polling.
Ipinatupad ang buong Stripe subscription lifecycle — checkout sessions, billing portal, webhook handler na may raw body at signature verification, credit allocation sa subscription, at monthly credit reset cron.
Binuo ang sistema ng pagbabahagi at pag-download — nanoid-based shareable tokens, public S3 signed URL access nang walang auth, link revocation, at Content-Disposition download headers.
Binuo ang admin module na may MongoDB aggregation pipelines para sa dashboard analytics, time-series chart data, user management, at subscription administration.
Pinamahalaan ang buong frontend-backend integration sa buong user app at admin panel — pinalitan ang lahat ng mock store ng live API calls, ikinabit ang WebSocket progress, at binalidate ang kumpletong user journey end-to-end.
Nagpapalit ng isang video upload sa daan-daang branded na ad variation sa pamamagitan ng automated combination generation, GPU-accelerated rendering, at multi-style subtitle support — sadyang ginawa para sa mga performance marketer.
Pag-usapan natin kung paano namin maipapatupad ang iyong bisyon na may parehong antas ng kasanayan at dedikasyon.






MicrocosmWorks built the combination calculator engine that computes the Cartesian product of all Hook x Body x CTA x Subtitle permutations. Each input element (hooks, body segments, CTAs) is defined by the user, and the engine enumerates every valid combination, then enqueues each as an independent BullMQ job. This approach means a video with 5 hooks, 3 bodies, 4 CTAs, and 6 subtitle styles generates 360 unique ad variations automatically.
MicrocosmWorks implemented 6 subtitle rendering styles in Adstacker: Hormozi, MrBeast, GaryVee, Abdal, TikTok Viral, and Clean Corporate. Each style has distinct font, color, animation, and positioning characteristics matching the popular creator formats that performance marketers recognize. The SubtitleRenderer handles all 4 aspect ratios (9:16, 16:9, 1:1, 4:5) and 6 animation types (fade, slide-up, slide-down, scale, typewriter, bounce) within Remotion compositions.
MicrocosmWorks built the rendering pipeline using Remotion compositions bundled at server startup for fast job execution, combined with FFmpeg for encoding optimization. BullMQ manages the async job queue with configurable concurrency control, so multiple variations render in parallel across available GPU resources. Each job handles the full pipeline: S3 download, Remotion renderMedia, FFmpeg encoding, thumbnail generation, S3 upload, and database update, with error handling and automatic retries.
MicrocosmWorks integrated a WebSocket gateway that pushes real-time generation progress for every queued variation to the frontend, with SSE (Server-Sent Events) fallback for environments where WebSocket connections are unavailable. Users see live status updates for each variation including queued, processing, rendering percentage, and completed states. This eliminates the need for polling and provides immediate feedback on the generation pipeline status.
MicrocosmWorks implemented Stripe subscription billing with webhook-driven credit allocation. When a user subscribes or renews, the webhook handler allocates generation credits based on their plan tier. Each video variation generation consumes one credit, and a monthly cron job resets credit balances. The admin dashboard provides MongoDB aggregation analytics showing credit usage patterns, subscription revenue, and per-user consumption to inform pricing decisions.