Dev.to AI ๐Ÿค– Ai ๐Ÿ‘ 0 ๐Ÿ“– 6 min read

PostReady: Turn Any Product or Website Link into a 15s Launch Video Using Real Chromium & Kane CLI

PostReady: Turn Any Product or Website Link into a 15s Launch Video with Kane CLI When a storefront item goes live or a new software feature ships, there is still a wide manual gap between built and shown. Teams spend

PostReady: Turn Any Product or Website Link into a 15s Launch Video with Kane CLI

When a storefront item goes live or a new software feature ships, there is still a wide manual gap between built and shown. Teams spend hours dismissing cookie banners and modal popups, grabbing clean product imagery or recording browser walkthroughs, writing scripts, recording voiceovers, and cutting separate aspect ratios (9:16, 4:5, 1:1, 16:9). Meanwhile, static DOM scrapers fail as soon as pages rely on JavaScript hydration, dynamic variant tabs, popups, or gated interactions.

I built PostReady with Google Antigravity and Kane CLI (by TestMu AI) to close that gap automatically. Paste any product URL or website link, enter a plain-English Brief with ordered browser capture steps, pick a style and aspect ratio, and PostReady drives real headless Chromium via Kane CLI to produce a finished 15-second launch MP4, synchronized .srt captions, standalone animated HTML composition, timeline.json, and raw Kane CLI action logs (kane-actions.log + kane-actions.jsonl).

What We Built (Full Stack Architecture)

1. Frontend Studio (apps/web โ€” React + Vite)

  • Short Studio (/): Above-the-fold 4-step wizard (Product or Website -> Brief -> Style -> Launch) supporting two dedicated creator modes (Store Product and Website & App), ordered natural-language capture steps, 4 motion styles (Director AI, 3D Showcase, Story Reel, Classic Cards), 5 visual themes (Auto, Pop, Noir, Editorial, Neon), all 4 output ratios (9:16 ยท Reels / Shorts, 4:5 ยท Feed Post, 1:1 ยท Square, 16:9 ยท Widescreen), neural voiceover toggle, optional credential redaction, and right-to-record confirmation.
  • Render Library (/jobs): Filmstrip gallery with live status filters (All, Completed, Running, Failed, Aborted), ratio badges (16:9 WIDE, 1:1 SQUARE, 4:5 FEED, 9:16 VERTICAL), 00:15 duration stickers, and inline preview thumbnails.
  • Production Inspector (/jobs/:id): 7-stage mode-aware progress rail, embedded MP4 player, signed download buttons (MP4, .srt, HTML, timeline.json, kane-actions.log, kane-actions.jsonl), and a real-time Server-Sent Events (EventSource) console (KANE CLI ยท LIVE RUN).
  • QA Guardrails (/verified): Side-by-side audit console showing Live verification run, Kane blocked regression (BLOCKED), Kane verified green (SAFE TO SHIP), baseline vs. candidate deltas (SAME vs MISSING), and our 4-step verification loop.
  • Product Deck (/pitch): Interactive 9-slide keyboard-navigable showcase deck (01 โ€” INTRO through 09 โ€” THANK YOU).

2. API, Orchestration & Media Engine (apps/server, apps/runner, packages/*)

  • Fastify API (apps/server on :4031): Handles job creation with idempotency keys (POST /v1/jobs), secret redaction (sanitizeInputForDb), /health slot diagnostics, /v1/verified proof payloads, live SSE event streaming (GET /v1/jobs/:id/events), and Supabase Storage signed URL redirects.
  • Temporal Durable Workflow (packages/orchestrator): Executes KaneDemoWorkflow across three task queues (control, kane-chrome, media) backed by PostgreSQL (jobs, chrome_slots, job_events).
  • Gemini Vision + HyperFrames + FFmpeg (packages/pipeline): Lifts clean studio cutouts from live product photos, plans storyboard beats and narration via Gemini Vision, synthesizes neural speech over auto-ducked procedural stereo audio, and renders multi-aspect HyperFrames + GSAP compositions.
  • Hybrid Website & App Mode (5367784): Instead of forcing a choice between static screenshots and raw screen capture, Website & App mode records a live Chrome DevTools walkthrough (runWithRecordedChrome + buildWalkthroughClip) while Kane operates the site and fuses that footage directly inside an animated HyperFrames launch trailer across 16:9, 9:16, 1:1, and 4:5.

Exactly How PostReady Uses Kane CLI (3 Layers)

Rather than writing fragile CSS-selector Playwright scripts or adding a superficial smoke test at the end, Kane CLI (@testmuai/kane-cli 0.10.9, --agent) runs across three integrated layers:

Layer 1: Product Capture Runtime (Lane 3 โ€” Real Browser Hands)

  1. Health & Slot Leases (toolingHealth + acquireChromeSlot): Verifies authentication (kane-cli whoami, auto-running kane-cli login when needed), inspects credits (kane-cli balance), sets standard window dimensions (kane-cli config set-window 1440x900), and locks exclusive Chromium slots in PostgreSQL (chrome_slots).
  2. NDJSON Stream Bridge (spawnKane): Spawns kane-cli (--local unless KANE_WS_ENDPOINT is provided), parses stdout line-by-line NDJSON telemetry (parseNdjson), heartbeats Temporal activities, and streams live kane_cmd, kane_step, and ndjson records straight into /jobs/:id.
  3. Fail-Fast Access Preflight (kanePreflight): Runs kane-cli run --agent before rendering to detect has_captcha, has_bot_challenge, has_mfa, has_paywall, has_login_wall, and Kane 5xx/6xx result codes (610 captcha, 620 paywall, 640 access_denied, 650 error_page, 660 login_required, 550 controller_auth, 560 credits_exhausted), aborting cleanly instead of generating broken clips.
  4. Natural-Language Execution & Self-Healing (kaneInspectProduct, kaneCaptureWebsite, kaneTestmdRun, rewriteFailedBeat): Runs plain-English instructions (zero hardcoded CSS selectors in the product path). When a beat hits an obstacle, rewriteFailedBeat inspects Kane's failure diagnostics (failure.yaml), rewrites recovery instructions, and logs visible heal events to PostgreSQL.

Layer 2: Committed TestMD Browser Suite (qa-specs/)

Five Markdown browser flows plus modular helpers (shared/open_app.md, shared/close_banners.md) verify PostReady's own frontend and API without side effects:

  • creator_wizard_test.md (wizard) -> checks Product -> Brief -> Style -> Launch, storing launch_heading and wizard_url without clicking final job submission.
  • url_validation_test.md (validation) -> checks empty-URL guardrail (url_required_message).
  • landing_page_test.md (landing) -> verifies Studio branding and defaults (default_product).
  • health_check_test.md (api_health) -> verifies GET /health (health_ok).
  • render_library_test.md (gallery) -> verifies /jobs gallery renders (gallery_heading).

Layer 3: Diff-to-TestMD Closed-Loop Regression Gate (@postready/qa-gate)

  • Maps working-tree diffs through .postready-qa/route-impact.json onto impacted specs (editing ShortStudio.tsx triggers landing, wizard, and validation; backend-only edits skip redundant UI runs).
  • Executes kane-cli --local testmd run <spec> --agent --headless --timeout 300 --max-steps 24.
  • Parses test_md_summary.overall_status and extracts observables across final_state, context.variables, and context.memory.
  • Missing observables evaluate explicitly as MISSING, never silently SAME.
  • When wired via .postready/hooks.json, regressions emit a structured followup_message JSON payload (loop_limit: 3) blocking turn completion until the UI passes again.

Measured Results & Verified Proofs

1. Live End-to-End Renders Across 10 Unique Storefronts & Web Apps

Verified live outputs produced by KaneDemoWorkflow with Chromium, Gemini Vision, HyperFrames, neural voiceover, FFmpeg, and Supabase Storage:

  • Store Product (9:16 / 4:5 / 16:9): OLIPOP Vintage Cola (1080x1920, 30fps, 15.0s, 14.32 MB), Death Wish Dark Roast Coffee (1080x1920, 30fps, 15.0s, 13.65 MB), Graza Sizzle Olive Oil (3D Showcase / Pop / 9:16, 1080x1920, 17.4 MB), Allbirds Tree Runners (Story Reel / Editorial / 4:5, 1080x1350, 1.8 MB), Bellroy Slim Sleeve (Classic Cards / Neon / 16:9, 1920x1080, 2.08 MB).
  • Website & App (16:9 / 1:1 / 9:16): Cal.com (1920x1080, 15.0s, 4.94 MB), Resend (1920x1080, 15.0s, 4.29 MB), PostHog (Director AI / 16:9 hybrid CDP + HyperFrames, 7.12 MB), Raycast (3D Showcase / Noir / 1:1 hybrid CDP + HyperFrames, 3.56 MB), Trigger.dev (Classic Cards / Pop / 9:16 hybrid CDP + HyperFrames, 3.95 MB).

2. Automated QA Gate & Fault-Injection Measurements

  • Offline QA Gate Unit Suite (npm run test:qa-gate): 16 / 16 passed (0 failed, 0 skipped, ~498-835 ms, zero Chrome or credits required).
  • Planted Fault Catch (npm run verify:plant -> npm run verify): Switching Continue in ShortStudio.tsx to type="submit" without onClick={next} kept empty validation passing while stalling wizard navigation. Kane CLI caught the failure at Brief to Style, reported unexpectedCount: 2 (launch_heading -> MISSING, wizard_url -> MISSING), and stamped verdict: "blocked".
  • Full Chromium Verification Recovery (npm run verify:restore -> npm run verify -- --all): 5 / 5 flows passed, unexpectedCount: 0, verdict: "passed" (SAFE TO SHIP across wizard, validation, landing, api_health, and gallery, matching docs/qa-proof/verified-run.json).

3. Production Builds & Narrated Demo Verification

  • Frontend Build (npm run build): @postready/web Vite production bundle succeeded (1,835 modules, 303.97 kB JS, 35.68 kB CSS in 6.37s).
  • TypeScript Checks (npx tsc --noEmit): All 4 tsconfig.json workspace projects (apps/web, packages/core, packages/orchestrator, packages/pipeline) passed with 0 errors.
  • Narrated Demo Video (https://youtu.be/wCxfWUsdLIE): Assembled in HyperFrames (0.9.70) over the live recording (hyperframes check --json: ok: true, 0 lint errors, layout: true, audio: true), rendering 5,818 / 5,818 frames (1858x1020, 30fps, 193.93s, 21.4 MB) synced with 14 AssemblyAI TTS (assemblyai-tts-1, aai-bryson, 48 kHz) voiceover beats.

Run Locally

git clone https://github.com/toufiqfarhan0/kane-cli-hack
cd kane-cli-hack
cp env.example .env
npm install
npm run migrate

# Terminal 1
temporal server start-dev --port 7233

# Terminals 2-4
npm run dev:server
npm run dev:runner
npm run dev:web

# Run Chromium QA Gate
npm run test:qa-gate
npm run verify -- --all
๐Ÿ“ฐ Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ€” full credit and traffic to the original publisher.