🤖 Manhwa Recap Robot

Turn a one-line premise into a complete AI manhwa recap video: original story narration → AI Horde images → TTS voice → Ken Burns motion MP4.

Live: https://manhwasire--beb901e09e0a11f1921e1607ee4eb77e.web.val.run/

Files

FilePurpose
main.tsHTTP server. Serves index.html/app.js (via staticHTTPServer) and the POST /api/generate AI Horde image backend.
index.htmlThe app UI.
app.jsAll client logic — story writing, strict scripting engine, image/voice/video compilation.

The Strict Scripting Engine

Instead of recapping real manhwa pages, the tool writes an original story from a premise and enforces a hard line-level style:

  • Present tense, active voice
  • 8–12 words per line
  • One action per sentence
  • No filler or meta-commentary

Keys

All keyed services are optional (click 🔑 Keys in the app and save → stored in your browser's localStorage):

  • LLM Key — any OpenAI-compatible endpoint (sk-… from OpenAI/OpenRouter/Groq) for AI story writing.
  • AI Horde Key — server-side secret for images. Optional (anonymous works, with lower queue priority). Set the val's AI_HORDE_KEY env var.
  • Murf AI Key — paid TTS; leave blank to use the free TTS proxy (tts-proxy).
  • Source PIN — set on this val as the SOURCE_PIN env var. Required by the Developer → Download Full Source button (so random visitors can't grab the code). Current value: manhwa2026.