Evaluating Large Language Models on Full Front-End Project Generation: Benchmarks and Practical Findings
This article evaluates how well large language models can generate complete, runnable front-end projects from a requirements document rather than isolated code snippets. It outlines a reproducible benchmark method based on fixed requirements and acceptance criteria, covering functional completeness, depth of understanding, engineering usability, generation speed, and visual polish. Real test results show that login pages are close to production-ready, while list and form pages reveal gaps in filters, field sets, and interaction logic. The article analyzes why complex requirements are often partially dropped and recommends structuring requirements as data, using a two-step checklist-then-code workflow, and adding automated quality checks. It also discusses the practical value of open-source models for private deployment, fine-tuning, and cost control.
1. Background: From Code Snippets to Complete Projects
Over the past year, the focus of code-generation evaluation for large language models has shifted. Early assessments asked whether a model could complete a single function. The more relevant question now is whether it can take a requirements document and produce a well-structured, runnable front-end project.
This shift has a concrete impact on development workflows. If a model only produces scattered fragments, it remains an auto-completion assistant. Once it can output a full project with routing, pages, state management, and baseline styling, it becomes a candidate for the delivery stage.
Social media often repeats claims that a given model rivals some leading international model, but such comparisons usually lack reproducible evaluation conditions. A meaningful judgment requires fixed requirements, a fixed document, and fixed acceptance criteria, tested side by side. The method used here is straightforward: take a front-end requirements document from a real project, have different models implement it in full, and then verify the output page by page.
2. Evaluation Method: Turning Subjective Impressions into a Checklist
A credible evaluation starts with a clear acceptance standard. At minimum, it should cover five categories:
- Functional completeness: whether each feature listed in the document is implemented, and how many are missing.
- Depth of understanding: whether field relationships, validation rules, and linkage logic are correctly reproduced.
- Engineering usability: whether the project starts directly, whether the directory structure is clear, and whether only fragments are provided.
- Generation efficiency: time from submission to a runnable result, plus queuing and rate-limiting behavior.
- Visual completeness: whether styling is consistent, or whether the result stays at a “prototype” level.
The quality of the requirements document sets the ceiling for the entire evaluation. A document that only says “build a list page” cannot reveal how well a model understands requirements. Differences only surface when filter conditions, default values, empty states, and error states are specified clearly.
3. Test Observations: Login Pages Are Nearly Usable, Complex Pages Slow Down
In this test, with no tech stack specified, the model defaulted to a component-based front-end framework. Total generation time was about half an hour, and the output was an accessible URL rather than isolated code blocks—a clear plus for engineering usability.
Page-by-page results showed a clear layering:
- Login page: carousels, form validation, and basic layout were implemented as documented, at a level that is nearly ready to ship with minor edits.
- List pages: the page skeleton was correct, but filter options explicitly described in the document were missing across the board. This was not a one-off omission; it appeared on multiple list pages, indicating a capability gap rather than random variance.
- Form pages: they ran, but the field set, validation timing, and linkage details deviated from the document, showing limited ability to reproduce complex form structures.
- Visual style: better than most wireframe prototypes, but still behind directly reusing a mature component template. The overall orientation is “engineering-usable rather than product-polished.”
In the side-by-side comparison, another model showed higher comprehension accuracy on list and form pages, reproduced filters and field structures more completely, and generated results faster (in minutes). Speed differences may be affected by free quotas and concurrent queuing, so they should not be treated as a direct measure of model capability. The gap in depth of understanding, however, was stable and reproducible.
4. Capability Boundaries: Why Complex Interactions Get Dropped
Abstracting from the observations, three patterns emerge:
- Requirement density determines reproduction rate. The more parallel constraints a document contains (filtering, sorting, pagination, linkage, validation), the more likely a model keeps the main path and drops the branches.
- Structured expression beats narrative prose. Describing fields, types, required flags, and validation rules in a table is less likely to be ignored than long paragraphs.
- Mid-document information decays in long contexts. Constraints placed in the middle of a document are less likely to be fully executed than those at the beginning or end.
The corresponding engineering response is to turn requirements into data. For example:
{"page": "product-list","filters": [{"field": "category", "type": "enum", "required": false},{"field": "priceRange", "type": "range", "default": [0, 500]}],"table": {"pageable": true, "emptyState": "custom"}}
Pair this with an explicit acceptance prompt:
First output an implementation checklist, compare it item by item against the JSON above and mark each as "implemented" or "not implemented",then generate the code; for any unimplemented item, explain why.
This two-step interaction—align on the checklist first, then produce code—significantly reduces the chance of features being silently dropped.
5. Implications for Open-Source Models and Technical Evolution
Zooming out: when domestic open-source models approach the international state of the art on general generation tasks, their value is not just a leaderboard position, but three things. First, private deployment lets sensitive projects generate code inside an internal network, keeping data on-premises. Second, fine-tuning lets enterprises adapt models to their own codebases and conventions, producing stylistically consistent output. Third, a controllable cost structure makes high-frequency scenarios—batch page generation, unit-test completion—economically viable.
A rational view of the gap matters just as much. The current gap is mainly in “deep understanding of long requirements,” not in “single-point code correctness.” This means the engineering side can close most of it through requirement structuring, task decomposition, and multi-round verification. In practice, the recommended workflow is: have the model output an implementation checklist and directory structure first, confirm it manually, then generate code, and finally use automated checks (type checking, static scanning, and log service and monitoring/alerting integration) as a safety net. Keep generated artifacts hosted on object storage or a container platform to make rollback and canary releases easier.
6. Conclusion
The evaluation can be summarized in one sentence: these models can already handle the “zero to runnable” scaffolding and free developers from boilerplate code, but full reproduction of complex business rules still needs human review. For teams, the real payoff does not come from chasing a single leaderboard comparison, but from writing requirements clearly, standardizing acceptance, and embedding the generation workflow into the existing engineering system—which is also the supporting value that cloud services such as Baidu AI Cloud provide to teams through general product categories like container platforms, log services, and monitoring and alerting, beyond model capability itself.
