Open-Source LLM Frontend Generation: Hands-On Test and Gap Analysis

    This article presents an end-to-end test of an open-source large language model's ability to turn a complete frontend requirements document into a runnable project. Using one structured document covering information architecture, page inventory, field definitions, validation rules, and interaction logic, the model generated a full project that was then evaluated on functionality, fidelity, code quality, visual polish, and end-to-end time, with a prior closed-source flagship output on the same document as the baseline. Results show the open-source model reaches usable quality on standard pages such as login, but systematically drops filter logic on list pages and distorts field relationships and validation on form pages. The gap lies in instruction following and constraint retention across long contexts rather than raw generation ability. The article closes with practical tactics for developers and the implications for the open-source ecosystem.

    1. Background: After the Hype, a Calm Engineering Validation

    Open-source large models are iterating quickly, and community discussion about domestic models matching international flagships keeps heating up. Social platforms are full of claims like “on par with top closed-source models” or “a new-generation UI generation tool,” where the emotional intensity far exceeds the technical substance. For developers, such conclusions are neither reproducible nor useful for technology selection. The question that actually matters is: when a real, complete frontend requirements document with boundary conditions is handed to a model, can it deliver a runnable, maintainable, production-ready engineering artifact?

    This article therefore runs an end-to-end test. A routine frontend requirements document containing information architecture, a page inventory, field definitions, validation rules, and interaction logic was prepared, no tech stack was imposed, and an open-source large model was asked to generate the complete project in one pass. The output was then verified across four dimensions: usability, fidelity, style quality, and generation efficiency. As a control baseline, the same document had previously been implemented by a closed-source flagship model, so the comparison is same-source.

    What this article examines is not the ranking of any single product, but the real capability boundary of open-source models on the “long-document requirements to runnable project” path, and what that boundary means for the open-source ecosystem and industry technical evolution.

    2. Test Environment and Method

    To keep the conclusions explainable, the test scope is defined up front:

    • Input format: a structured requirements document containing page hierarchy, component inventory, field tables, validation rules, filtering and pagination logic, and visual style constraints.
    • Output requirement: a complete, runnable frontend project rather than isolated code snippets; the artifact must be directly previewable.
    • Tech stack: not constrained, chosen autonomously by the model (the actual output this time was a component-based frontend framework solution).
    • Evaluation dimensions: functional fidelity, interaction completeness, code engineering standards, visual completeness, and end-to-end time.
    • Control method: the historical output of the same document on a closed-source flagship model serves as the baseline.

    A service-side bottleneck appeared at the very first access stage: during peak hours, the system repeatedly reported resource pressure and prompted queuing or a paid upgrade, and only after several retries did it reach a usable state. This is itself a common engineering issue for open-source models in real business scenarios — inference-side capacity and scheduling strategy often become the user experience bottleneck earlier than model scores do.

    3. Page-by-Page Test Results

    3.1 Login Page: Meets the Bar, Ready for Refinement

    The login page is one of the most constraint-dense pages in the requirements document, including a carousel, form validation, error messages, and remember-state behavior. In testing, the model fully implemented the carousel structure, all fields and buttons were present, and the interaction chain was closed with no obvious functional gaps. The output came with a directly accessible preview URL, which is critical for efficiency: what the developer receives is a running site, not fragmented code that must be reassembled locally over and over.

    Conclusion: this page reaches the “engineering usable” level, and going live only requires manual style tuning and analytics instrumentation.

    3.2 List Page: Correct Structure, Systematically Missing Filtering

    Problems surfaced on the product list page. The document explicitly specified the filter set, default values, linkage relationships, and reset behavior, but the generated result was missing the filters entirely. More notably, this was not a one-off on a single page: multiple list pages showed the same pattern. The page skeleton, grid layout, and pagination container were all there; only the “conditional filtering” layer was never implemented.

    This reveals a key pattern: models are good at reproducing visual structure and static hierarchy, but degrade markedly on “state-driven conditional logic.” Filtering is essentially a two-way binding between query parameters and list state, which is cross-component state management rather than local rendering — exactly where current open-source models are weak.

    3.3 Form Page: Runnable, but Field Relationships and Validation Rules Are Distorted

    The form page runs end to end, but the field set, conditional visibility, validation timing, and error copy deviate systematically from the document. Common manifestations include compressing the three-stage “required + format + uniqueness” validation into a single non-empty check, omitting cross-field validation that depends on multiple fields outright, and simplifying the post-submit second confirmation flow into a single submit step.

    Forms are the peak of requirement density, testing the model’s understanding of data models, constraint rules, and interaction timing at the same time. The test shows that as document complexity rises, the fidelity of open-source models degrades faster than that of the closed-source flagship.

    3.4 Visual Style: Engineering Usable Rather Than Product-Impressive

    Visually, the result is unremarkable: clearly better than a wireframe prototype, but still short of the consistency produced by a mature component library or an atomic style system. The overall feel is engineering-oriented and restrained, lacking memorable points. The positioning can be summarized as: engineering usable > product attractive.

    4. Where the Gap with the Closed-Source Flagship Lies

    With the same document, the gap concentrates on “depth of understanding” rather than “generation ability”:

    • Login page: the two are close in completeness, both having crossed the usability line.
    • List page: the closed-source baseline understood the filtering and field structure more completely.
    • Form page: the closed-source baseline had a clearer advantage in field relationships, validation logic, and interaction details.
    • Efficiency: the closed-source baseline took on the order of several minutes, while the open-source model took close to half an hour or more this time (partly related to queuing and resource limits under the free quota).

    The abstracted conclusion: the gap is not in “whether it can write it out,” but in “whether it can read completely, accurately, and thoroughly.” The former is a generation problem; the latter is a matter of instruction following and constraint retention in long contexts.

    5. Practical Advice for Developers

    1. Split requirement granularity: break a large document into page-level subtasks, delivering one page and its field table at a time, which significantly lowers the probability of constraint loss.
    2. Make constraints explicitly structured: describe fields, types, required flags, validation, and linkage with tables, avoiding long narrative paragraphs.
    3. Write logic as an acceptance checklist: have the model self-check item by item, for example:
    1. Acceptance checklist
    2. [ ] Number of filters matches the document
    3. [ ] Changing a filter triggers a new list request
    4. [ ] Reset button restores default values
    5. [ ] Cross-field validation triggers on submit
    1. Run the artifact before evaluating it: prefer output forms that directly provide a runnable preview, shortening the verification loop.
    2. Front-load the human-machine division of labor: leave visual standards to a mature style system and concentrate effort on reviewing logical correctness.

    6. What This Means for Open Source and Technical Evolution

    The significance of this test goes beyond a single evaluation. As open-source models approach flagship level, the main value comes in three areas:

    • Controllable cost and private deployment: enterprises can deploy on their own compute with data staying in-domain, which suits compliance-sensitive scenarios; combined with general cloud capabilities such as object storage, container platforms, log services, and monitoring and alerting, a stable inference and observability pipeline can be built.
    • Customizability: open weights allow continued training and distillation for vertical domains, producing differentiated capability rather than staying at general question answering.
    • Ecosystem feedback loop: opening up capability accelerates the accumulation of toolchains, evaluation sets, and engineering practices, which in turn pushes model iteration.

    At the same time, it is worth being clear-eyed: the shortcomings of open-source models concentrate on instruction following under complex constraints and long-document consistency, which means they are currently better suited to “structured tasks with clear acceptance criteria” than to “generate a complete product from a single sentence.” Continued investment by cloud vendors such as Baidu AI Cloud in model services, compute scheduling, and engineering delivery is also pushing this kind of capability from demonstration toward production.

    7. Conclusion

    The conclusion is not radical: open-source models have crossed the “usable” threshold and can stand on the same stage as closed-source flagships in standard scenarios like the login page; but in high-density logic scenarios such as list filtering and form validation, a visible gap in depth of understanding remains. The realistic strategy for developers is to compensate for the model’s understanding gaps with structured documents and checklist-based acceptance, and shorten the verification loop with runnable artifacts — treating the model as an efficient executor that needs a clear specification.