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).
- Demo Video (YouTube): https://youtu.be/wCxfWUsdLIE
- GitHub Repository: https://github.com/toufiqfarhan0/kane-cli-hack
What We Built (Full Stack Architecture)
1. Frontend Studio (apps/web โ React + Vite)
-
Short Studio (
/): Above-the-fold 4-step wizard (ProductorWebsite->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:15duration 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 showingLive verification run,Kane blocked regression(BLOCKED),Kane verified green(SAFE TO SHIP), baseline vs. candidate deltas (SAMEvsMISSING), and our 4-step verification loop. -
Product Deck (
/pitch): Interactive 9-slide keyboard-navigable showcase deck (01 โ INTROthrough09 โ THANK YOU).
2. API, Orchestration & Media Engine (apps/server, apps/runner, packages/*)
-
Fastify API (
apps/serveron:4031): Handles job creation with idempotency keys (POST /v1/jobs), secret redaction (sanitizeInputForDb),/healthslot diagnostics,/v1/verifiedproof payloads, live SSE event streaming (GET /v1/jobs/:id/events), and Supabase Storage signed URL redirects. -
Temporal Durable Workflow (
packages/orchestrator): ExecutesKaneDemoWorkflowacross 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 across16:9,9:16,1:1, and4: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)
-
Health & Slot Leases (
toolingHealth+acquireChromeSlot): Verifies authentication (kane-cli whoami, auto-runningkane-cli loginwhen 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). -
NDJSON Stream Bridge (
spawnKane): Spawnskane-cli(--localunlessKANE_WS_ENDPOINTis provided), parses stdout line-by-line NDJSON telemetry (parseNdjson), heartbeats Temporal activities, and streams livekane_cmd,kane_step, andndjsonrecords straight into/jobs/:id. -
Fail-Fast Access Preflight (
kanePreflight): Runskane-cli run --agentbefore rendering to detecthas_captcha,has_bot_challenge,has_mfa,has_paywall,has_login_wall, and Kane5xx/6xxresult codes (610captcha,620paywall,640access_denied,650error_page,660login_required,550controller_auth,560credits_exhausted), aborting cleanly instead of generating broken clips. -
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,rewriteFailedBeatinspects Kane's failure diagnostics (failure.yaml), rewrites recovery instructions, and logs visiblehealevents 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) -> checksProduct -> Brief -> Style -> Launch, storinglaunch_headingandwizard_urlwithout 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) -> verifiesGET /health(health_ok). -
render_library_test.md(gallery) -> verifies/jobsgallery renders (gallery_heading).
Layer 3: Diff-to-TestMD Closed-Loop Regression Gate (@postready/qa-gate)
- Maps working-tree diffs through
.postready-qa/route-impact.jsononto impacted specs (editingShortStudio.tsxtriggerslanding,wizard, andvalidation; 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_statusand extracts observables acrossfinal_state,context.variables, andcontext.memory. - Missing observables evaluate explicitly as
MISSING, never silentlySAME. - When wired via
.postready/hooks.json, regressions emit a structuredfollowup_messageJSON 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:9hybrid CDP + HyperFrames,7.12 MB), Raycast (3D Showcase/Noir/1:1hybrid CDP + HyperFrames,3.56 MB), Trigger.dev (Classic Cards/Pop/9:16hybrid 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 (0failed,0skipped,~498-835 ms, zero Chrome or credits required). -
Planted Fault Catch (
npm run verify:plant->npm run verify): SwitchingContinueinShortStudio.tsxtotype="submit"withoutonClick={next}kept empty validation passing while stalling wizard navigation. Kane CLI caught the failure atBrief to Style, reportedunexpectedCount: 2(launch_heading->MISSING,wizard_url->MISSING), and stampedverdict: "blocked". -
Full Chromium Verification Recovery (
npm run verify:restore->npm run verify -- --all): 5 / 5 flows passed,unexpectedCount: 0,verdict: "passed"(SAFE TO SHIPacrosswizard,validation,landing,api_health, andgallery, matchingdocs/qa-proof/verified-run.json).
3. Production Builds & Narrated Demo Verification
-
Frontend Build (
npm run build):@postready/webVite production bundle succeeded (1,835modules,303.97 kBJS,35.68 kBCSS in6.37s). -
TypeScript Checks (
npx tsc --noEmit): All 4tsconfig.jsonworkspace projects (apps/web,packages/core,packages/orchestrator,packages/pipeline) passed with0errors. -
Narrated Demo Video (https://youtu.be/wCxfWUsdLIE): Assembled in HyperFrames (
0.9.70) over the live recording (hyperframes check --json:ok: true,0lint errors,layout: true,audio: true), rendering5,818 / 5,818frames (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
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.