From App to Web: Architecture and Pitfalls of an Open-Source AI Comic Drama Generation Platform

    This article shares engineering lessons from an open-source AI comic drama platform that moved from a mobile app to a Web version in 20 days. It explains why a Web client matters for creation-heavy workflows, outlines the five-stage pipeline from a one-sentence story to an exported video, and details practical strategies for character consistency, beginner-friendly shot templates, pacing design, and structured generation. The goal is to provide developers building similar AIGC applications with a reusable engineering reference.

    Over the past two years, AI-generated content (AIGC) has matured significantly in image and text applications. However, “AI comic drama”—generating short drama content with characters, storyboards, and video from a single sentence—remains an engineering-heavy direction. Recently, an open-source AI comic drama project completed its mobile version and then launched a Web version in 20 days. The project has received hundreds of stars and extensive feedback from the community. This article is not intended as promotion. Instead, it uses this practice as a sample to break down the platform’s technical architecture, its solution to a core challenge—character consistency—and its product design approach for non-expert users. The hope is to provide a reference engineering guide for developers who want to build similar applications.

    1. Why Build a Web Version: Rethinking the Product Form

    A common misconception is that a mobile app is enough and that a Web version is just a “nice-to-have.” But actual user feedback shows that the Web version delivers value in at least three areas:

    1. Creation efficiency. Comic drama creation involves extensive text editing, storyboard adjustments, and asset previews. Working on a large screen is far more efficient than on a phone, especially for storyboard arrangement, which requires comparing multiple panels.
    2. Collaboration and sharing. The Web is naturally suited to sharing links, embedding into workflows, and enabling teams to review scripts and storyboards together.
    3. Lower usage barrier. Some users do not want to install a new mobile app just to try a feature. A Web version can be “open and use,” which is critical for user acquisition and experience conversion.

    Therefore, the core positioning of the Web version should be: lower the barrier to trying the product + support heavy creation. The mobile app handles lightweight experiences and distribution, while the Web version handles the complete creation loop.

    2. Overall Architecture Design: The Path from One Sentence to a Finished Video

    The typical pipeline of an AI comic drama platform can be abstracted into five stages:

    1. User story input → Story parsing and script generation → Character setup → Storyboard arrangement → Shot generation and export

    The technical points for each stage are as follows:

    1. Story Parsing and Script Generation

    The user enters one sentence, such as “a warm short story about sending New Year wishes.” The backend needs to call a large language model to expand the story and output a structured script JSON containing scene descriptions, a character list, dialogue, and narration. It is recommended to enforce structured model output, such as with JSON Schema constraints, to avoid downstream parsing problems caused by free-form text.

    2. Character Setup

    Each character needs a stable “character profile”: appearance description text, reference images, and style tags such as 2D, 3D, or realistic. The character profile is the “anchor” for all subsequent shot generation and directly determines consistency.

    3. Storyboard Arrangement

    This step splits the script into multiple shots. Each shot needs to define:

    • Shot size: wide shot, medium shot, close-up, extreme close-up, etc.;
    • Camera movement: basic movements such as push-in, pull-out, pan, and truck;
    • Scene information: location, lighting atmosphere, and characters appearing in the shot.

    4. Shot Generation

    Based on the shot description, character profile, and scene description, the system generates images and then converts images into video (image-to-video). Finally, it stitches the shots in storyboard order, adds voiceover, and composites the output.

    3. The Hardest Problem: Character Consistency

    Character consistency is the number one challenge in AI comic drama. If the same character “looks different” in shot 1 and shot 8, the audience is immediately pulled out of the story. In practice, the following strategies can be combined:

    1. Seed Locking

    Using a local inference framework as an example, after enabling a fixed seed, the seed of the first reference image is recorded. All subsequent images of that character reuse the same seed, maintaining strong continuity in style and outline. This is the lowest-cost and fastest-acting method.

    2. Character Reference Image Injection

    Use the character setup image as a reference input, such as through reference-image-based image generation, together with detailed appearance description text, so that every generated image is “grounded in the reference image.” In practice, the text description should be specific enough to cover reproducible features such as hairstyle, clothing, and accessories. Avoid vague phrases like “a handsome boy.”

    3. Description Templating

    Maintain a standardized prompt template for each character. All shots reference the same template and only append shot-level difference descriptions such as expression, action, and shot size. The fewer the differences, the higher the consistency.

    4. Multiple Candidates and Human Selection

    Do not expect a single generation to be perfect and usable. It is recommended to generate multiple candidates for each shot and allow creators to select and replace them, returning quality control to humans.

    4. Designing for Non-Experts: Shot Templates and Pacing

    Most users do not understand camera movement or shot size. Exposing professional parameters directly will only discourage them. An effective practice is to build in standardized shot templates, such as 9 common storyboard templates, and let AI automatically match them based on the plot: use a wide shot at the opening to establish the environment, medium close-ups for dialogue, close-ups for emotional climaxes, and camera movement to enhance tension in action scenes.

    For shot pacing, follow these guidelines:

    1. Hook viewers in the first 3 seconds: use a wide shot with strong visual elements to establish the world quickly;
    2. Alternate rhythm in the middle: vary shot sizes and camera movements to avoid monotony caused by consecutive shots of the same size;
    3. Keep individual shots from running too long: in short-video scenarios, keep each shot within a few seconds and edit to the rhythm of the narration;
    4. Leave a hook at the end: finish with a close-up or suspenseful shot to encourage sharing.

    5. Pitfalls and Lessons

    Finally, here are several general lessons:

    • Structured output first: define all intermediate artifacts—scripts, storyboards, and character profiles—clearly in JSON so that every step in the pipeline can be validated and retried;
    • Consistency is systems engineering: seed locking, reference images, and prompt templates must be used together; any single method alone is insufficient;
    • AI automation and human control must coexist: provide a “one-sentence fully automatic” mode for non-expert users, while retaining a custom workflow from character creation to storyboard arrangement to export for advanced users;
    • Templates enable cold start: built-in theme templates, such as holiday greeting themes, significantly lower the first-use barrier and let users see their first output within 10 seconds;
    • Open source and community feedback should run in parallel: open source early and iterate quickly; issues raised by the community are often the best requirement list.

    AI comic drama is just one microcosm of AIGC applications. Its core engineering challenges—structured generation, generation consistency, and stable control of generation quality—also apply to scenarios such as advertising shorts and educational animation. I hope this practical summary provides a useful reference for your next AIGC project.