LLM-Generated Frontend Projects: Evaluating End-to-End Generation and Making It Shippable

    Evaluating a model on single-file code completion pass rates says very little about whether it can deliver a working frontend project. This article proposes a reproducible evaluation method for end-to-end frontend generation: a structured requirement document as input, a fixed toolchain as the environment, and five weighted scoring dimensions. It then reports page-by-page observations that show where capability degrades — login pages close the loop easily, list pages break on filtering and cross-field linkage, and form pages expose weaknesses in validation fidelity — and explains the structural causes: long-tail instruction following, implicit constraints, long-range consistency across files, and the absence of ground-truth feedback. It also discusses what open-weight models change beyond benchmark scores, and how to turn generation into delivery through machine-readable specs, contract-first staged generation, automated acceptance checks, and a clear human-AI division of labor.

    1. From Code Completion to Project Delivery: The Capability Divide

    For the past two years, judging whether a model “can code” has usually meant looking at single-file completion pass rates. But what developers actually want in real work is not a function — it is a project that runs, can be accessed, and can be iterated on further. A clear capability divide sits between those two expectations:

    • Code completion tests local syntactic correctness and recall of common patterns.
    • Project delivery tests requirement understanding, structural planning, cross-file consistency, and self-restraint over long contexts.

    Once a class of models can take a product requirements document and return a complete frontend project with routing, pages, state management, and an accessible URL, the center of gravity for evaluation has to move from “is the syntax right” to “how deep is the understanding.” This is also the root reason community feedback has polarized recently, as more end-to-end generation tools have entered hands-on testing: on structurally simple tasks such as a login page, results converge; on complex pages with many fields, many interdependencies, and multi-state validation, the gap widens fast.

    2. Designing an Evaluation You Can Trust

    Comparisons that ignore methodology quickly degrade into “who feels stronger.” A more reliable approach breaks evaluation into three controllable layers.

    2.1 Input: Use a Structured Document, Not a One-Line Prompt

    A one-line prompt (“build me an admin dashboard”) barely surfaces capability differences, because it states no verifiable constraints. A structured requirement description is far more effective, and should contain at least:

    • The page inventory and routing relationships;
    • Data structures, field types, and required rules for each page;
    • Interaction triggers and linkage logic;
    • Requirements for empty, loading, and error states;
    • Basic visual and layout constraints (grid, spacing, hierarchy).

    2.2 Environment: Fix the Variables

    Before evaluating, align framework versions, component library versions, runtime, and package manager, and rule out differences in automatic install behavior. Otherwise, differences in elapsed time and output structure may come from the environment rather than from model capability.

    2.3 Scoring: Five Weighted Dimensions

    Dimension What to observe Typical failure signal
    Functional completeness Whether each requirement item is actually implemented Missing filter controls, carousel not implemented
    Instruction following Whether details follow the document strictly Interactions simplified on its own, fields substituted
    Fidelity Whether field relationships and validation rules are accurate Validation missing or rules written incorrectly
    Engineering quality Directory structure, component decomposition, maintainability Monolithic single file, duplicated logic
    Deliverable form Whether it can be accessed directly and developed further Only code snippets produced

    3. Page-by-Page Observations: Where Capability Degrades

    Using a full frontend requirement spanning login, list, and form pages, the tests revealed one consistent pattern: the simpler the page, the closer the results; the more complex the page, the larger the comprehension gap.

    3.1 Login Page: Easy Loop, Highest Completion Rate

    Login requirements typically include a form, validation, a carousel or image-and-text display, and error messages. These page patterns are highly mature and appear with high frequency in training data, so common implementations reach “feature-complete and ready to adapt for production.” If a login page shows obvious omissions in testing, that usually points to an ambiguous requirement description rather than a model capability limit.

    3.2 List Page: The First Visible Break — Filtering and Linkage

    A list page looks simple but is actually a divide for comprehension. Typical failure modes:

    • Only the filter UI is implemented; query logic and parameter passing are not;
    • Changing a filter condition does not trigger a list refresh, so linkage is missing;
    • “Implicit requirements” such as pagination, sorting, empty state, and loading state are dropped wholesale;
    • Mutual exclusion or dependency relationships between fields (for example, date range versus status dropdown) are ignored.

    The common thread here: the page structure is correct, but the functional semantics never close the loop. The model copies the part that “looks like it” and drops the part that says “what it must do.”

    3.3 Form Page: The Hardest Test for Field Relationships and Validation

    Form pages place the highest demand on fidelity. Common deviations include:

    • Field order or grouping that does not match the document;
    • Validation weakened to required, with regex, length ranges, uniqueness, and cross-field checks missing;
    • Post-submit behavior (success message, failure re-population, secondary confirmation) not implemented;
    • Differences between edit mode and create mode merged into one path, producing broken pre-fill behavior.

    These deviations are not cheap to fix in real development, because the correspondence between fields and rules has to be re-derived.

    3.4 Visual Quality: Engineering-Usable Beats Product-Stunning

    The visual level of most end-to-end output sits somewhere between “above a rough prototype” and “below a mature template”: layouts are reasonable and spacing is tidy, but the design language is engineering-oriented and lacks brand tone and fine polish. Applying a mature component library’s default theme often produces a more consistent look. The takeaway: clear payoff when the goal is rapid validation; design involvement is still required when the goal is an external deliverable.

    3.5 Elapsed Time and Stability: Engineering Variables You Cannot Ignore

    One end-to-end generation run typically takes far longer than snippet completion, with tens of minutes being normal; free tiers or peak hours add queuing and rate limiting on top. Evaluations should record all of:

    • Time to first runnable result;
    • Number of retries after failure;
    • Share of time spent waiting in queue.

    These metrics directly determine whether the approach can enter CI or daily development flow.

    4. Root Causes: Why Depth of Understanding Is Harder to Close Than Speed

    Abstracting the observations above, four structural causes stand out.

    1. Long-tail decay in instruction following. Recall is high for simple instructions and drops as complex constraint combinations accumulate, especially beyond roughly ten rules. Models tend to produce results that are structurally complete rather than rule-complete.
    2. A gap in inferring implicit constraints. Much of the information in a requirements document is implicit: pagination needs a total count, deletion needs secondary confirmation, date filtering should support shortcut ranges. Human developers fill these in from experience; models can only guess from priors in the training data.
    3. Long-range consistency problems. When generating multiple files, type definitions, field naming, and interface contracts drift between pages, so later pages contradict earlier agreements.
    4. No external ground-truth check. Generation has no compiler feedback, no test feedback, and no human feedback loop, so errors are not surfaced automatically and are only discovered after running.

    The corresponding improvements are equally clear: make implicit constraints explicit, externalize long-range consistency as checkable contracts, and automate human acceptance.

    5. Reading Cross-Model Comparisons: Layered Conclusions, Not a Single Ranking

    When comparing end-to-end generation against closed-source flagship models, give conclusions per task layer:

    • Single-layer simple tasks (login, static display): differences usually stay within an acceptable range, so selection is mainly driven by cost and availability;
    • Cross-page consistency tasks (list plus form plus detail linkage): comprehension gaps begin to show, expressed as fidelity in filter logic, field relationships, and validation rules;
    • High-constraint complex tasks (permission matrices, complex state machines, multi-client consistency): human involvement is generally required, and model differences show up more in “how easy it is to modify” than in raw output.

    One caveat is essential: elapsed-time comparisons are affected by quota policy, concurrent queuing, context length, and network conditions, and cannot be equated directly with model efficiency. Comparability comes from controlling variables, not from a single subjective impression.

    6. Why Open-Weights Models Matter: More Than a Close Score

    When discussing this kind of progress, the point worth attention is not any single score but the structural change open-weights models bring.

    6.1 Private Deployment and Data Compliance

    In scenarios such as finance, healthcare, and government, code and requirement documents are themselves sensitive assets. Open weights allow inference services to be deployed inside owned environments so data never leaves the boundary, which resolves compliance constraints many closed APIs cannot cover.

    6.2 Fine-Tuning and Domain Adaptation

    Internal component standards, coding conventions, and historical defect patterns can all be injected through continued pre-training or instruction fine-tuning. This ability to “write private knowledge into the model” is hard to achieve with pure API calls.

    6.3 Reproducible and Auditable Evaluation

    Open weights mean anyone can reproduce results on the same hardware with the same prompts. That matters a great deal for establishing an internal capability baseline — only an evaluation that can be reproduced can serve as a basis for decisions.

    6.4 Controllable Cost Structure

    Self-hosting shifts cost from “pay per call” to “amortize compute.” For high-frequency, batch, or offline code generation, the long-term cost curve is often flatter.

    6.5 What It Means for the Industry

    When high-end capability has several obtainable sources of supply, innovation shifts from “a capability contest among a few vendors” to “an engineering contest across a wide range of scenarios.” Opportunities in long-tail industries, small and mid-sized teams, and vertical domains come precisely from this tiered supply of capability.

    At the same time, it is only fair to say: open does not mean universally leading. On tasks such as long-context instruction following and complex semantic fidelity, closed-source flagship models still often hold an advantage. The rational strategy is mixed use: self-host what can be kept private, route the hardest tasks to stronger services, and keep calibrating with a unified evaluation standard.

    7. Engineering It: From “Can It Generate” to “Can It Deliver”

    7.1 Describe Requirements with a Structured Specification

    Upgrading a natural-language document into a machine-readable spec is the single most effective step for improving first-pass success. A sketch:

    1. page: product_list
    2. route: /products
    3. filters:
    4. - name: keyword
    5. type: text
    6. op: contains
    7. trigger: debounce(300ms)
    8. - name: status
    9. type: enum
    10. values: [draft, active, offline]
    11. trigger: immediate
    12. - name: createdAt
    13. type: range_date
    14. shortcuts: [last_7d, last_30d]
    15. combine_with: [status] # explicit linkage declaration
    16. list:
    17. pagination: server_side
    18. default_page_size: 20
    19. states: [loading, empty, error]
    20. form:
    21. fields:
    22. - name: title
    23. required: true
    24. max_length: 64
    25. - name: price
    26. type: decimal
    27. min: 0
    28. step: 0.01
    29. cross_rules:
    30. - if: status == active
    31. then: require(publishAt)

    The key is making implicit conventions such as cross_rules, combine_with, and states explicit, so the model no longer has to guess.

    7.2 Generate in Stages Instead of All at Once

    A “contract first” strategy is recommended: generate type definitions and interface contracts first, then the page skeletons, and finally the interactions and validation. Each stage produces something verifiable, which sharply reduces the cost of locating errors.

    1. // Stage one output: the contract is frozen first, and all later pages must depend on it
    2. interface ProductFilter {
    3. keyword?: string
    4. status?: 'draft' | 'active' | 'offline'
    5. createdAt?: [string, string]
    6. }
    7. interface ListResponse<T> {
    8. items: T[]
    9. total: number
    10. page: number
    11. pageSize: number
    12. }

    7.3 Turn Human Acceptance into Automated Verification

    Replacing eyeball checks with scripts is the most easily overlooked source of value:

    1. def verify(spec, source_files):
    2. errors = []
    3. # 1) Requirement coverage check
    4. for f in spec.filters:
    5. if not contains(source_files, f.name):
    6. errors.append(f"missing filter: {f.name}")
    7. # 2) Linkage logic check
    8. for f in spec.filters:
    9. for dep in f.get("combine_with", []):
    10. if not has_linkage(source_files, f.name, dep):
    11. errors.append(f"missing linkage: {f.name} -> {dep}")
    12. # 3) UI state completeness check
    13. for state in spec.list.states:
    14. if not contains(source_files, state):
    15. errors.append(f"missing ui state: {state}")
    16. # 4) Cross-field validation check
    17. for rule in spec.form.get("cross_rules", []):
    18. if not has_rule(source_files, rule):
    19. errors.append(f"missing cross rule: {rule}")
    20. return errors

    Combined with static analysis, type checking, and basic render tests, this forms an acceptance pipeline that can run continuously.

    7.4 Deployment and Runtime

    Generated artifacts generally need hosting and observability. A common setup: static assets are hosted on object storage behind a content delivery network, dynamic services are containerized and deployed to a container platform, and traffic is exposed through load balancing. Log services and monitoring with alerting are then wired in to cover error rates, response latency, and resource utilization. On Baidu AI Cloud, these capabilities correspond to general product categories such as object storage, container platforms, log services, and monitoring and alerting, which teams can combine according to their existing stack.

    7.5 Suggested Division of Labor

    Stage Suggested owner Reason
    Structuring requirements Human Only humans know the implicit constraints
    Skeletons and boilerplate Model Highly patterned, largest payoff
    Complex validation and linkage Human-AI collaboration Models tend to omit; humans must review
    Visual style and brand tone Human Requires product judgment
    Acceptance and regression Automation Repeatable and quantifiable

    8. Conclusion and Action Checklist

    The value of end-to-end generation tools is real: they compress the time from zero to a runnable prototype by an order of magnitude and sharply lower the cost of validating an approach. Their current shortcomings are equally real — depth of understanding for complex requirements, long-range consistency across files, and automatic completion of implicit constraints still need humans as a backstop.

    Four recommendations for teams:

    1. Change the input before switching models. The payoff from a structured requirements document is usually greater than the payoff from a stronger model.
    2. Build an internal evaluation set. Accumulate 20–30 reproducible cases from your own real requirements to form a capability baseline and avoid being misled by a single impression.
    3. Choose a mix. Consider self-hosted open weights for sensitive and high-frequency scenarios, and call stronger services on demand for the hardest tasks.
    4. Automate acceptance. Put functional coverage, linkage relationships, and state completeness into CI so that “generation” enters a controllable engineering loop.

    In one sentence: the significance of this kind of progress is not whether a given model has matched a given benchmark, but that it makes an AI development path that is reproducible, private, and engineerable viable in practice for the first time.