LLM-Driven Frontend Replication: From Product Requirements to a Working Application

    Recreating a conversational web application offers a practical way to evaluate an LLM’s end-to-end engineering capabilities. This article outlines a framework for comparing model–harness combinations across product documentation, frontend replication, and product improvements, and explains what UI fidelity, API integration, and autonomous testing reveal about their readiness for real development work.

    1. Why Web Application Replication Tests LLM Engineering Capabilities

    As large language models improve, asking them to write a function or generate a code snippet is becoming less useful for distinguishing their capabilities. More revealing tests involve extended workflows with multiple constraints. Recreating a complete web application provides exactly that kind of challenge:

    1. A long task pipeline: The model must understand the target product’s functionality, produce product documentation, translate it into frontend code, and then make improvements based on its own product knowledge. The workflow spans analysis, design, implementation, and testing.
    2. Multiple constraints: The UI must closely match the original layout, interactions, and visual details. Features must connect to backend APIs, while the documentation must be clearly structured and include diagrams.
    3. Verifiable acceptance criteria: Visual fidelity can be checked element by element, and functionality can be tested in a running application. This reduces reliance on subjective judgments.

    A benchmark built around recreating a conversational web application can therefore provide a useful assessment of a model’s broader engineering capabilities.

    2. Evaluation Framework: Six Combinations, Three Deliverables

    This evaluation compared six model–execution harness combinations using the same prompts and workflow.

    A harness is the engineering environment surrounding the model. It provides capabilities such as tool invocation, file access, code execution, and browser interaction. The same model can perform very differently with different harnesses, so the evaluation treats the model and harness as a combined system.

    Each combination was required to produce three deliverables:

    • Product requirements documentation and a feature hierarchy diagram: To assess information extraction, abstraction, and structured communication.
    • A replica of the target web application: To assess UI fidelity, API integration, and code organization.
    • An improved version: To assess product judgment and the ability to apply established industry practices.

    A Two-Round Prompting Workflow

    The first round assigned the model the role of a senior product manager, described the target product, pointed it to the relevant API documentation, and specified the three deliverables. It also included an instruction to “clear previous memory and skills, and start directly,” intended to reduce interference from prior context.

    The second round supplied the actual API key and asked the model to replace placeholder logic with working API calls.

    This design allowed implementation ability and autonomous validation after integration to be observed separately. Once credentials were provided, the combinations took noticeably different approaches:

    • Some performed only minimal validation, stopping after a single successful request and leaving hidden issues unresolved.
    • Others proactively tested multiple scenarios, including long inputs, error responses, interrupted streams and reconnection, and switching between conversations. They then identified and fixed bugs without additional prompting.

    These differences reveal how thoroughly each system understands what it means to finish an engineering task—a capability that matters greatly in production development.

    3. What the Key Stages Revealed

    3.1 Product Documentation: Structure Shapes the Implementation

    The stronger combinations first organized the target application into a clear feature tree, for example:

    1. Conversational Application
    2. ├── Conversation Management
    3. │ ├── New Conversation / History List / Rename / Delete
    4. ├── Conversation Features
    5. │ ├── Streaming Responses / Deep Thinking Mode / File Upload
    6. ├── Supporting Features
    7. │ ├── Share Link / Copy Response / Regenerate
    8. └── System Settings
    9. └── Theme Switching / Keyboard Shortcuts / Clear History

    This hierarchy serves two purposes: it is part of the product documentation, and it provides a basis for dividing the code into modules.

    In the evaluation, combinations that produced higher-quality documentation also tended to create more coherent code directory structures. The two were closely associated.

    3.2 UI Replication: Details Separate Strong Results from Basic Ones

    The replication stage made attention to detail particularly visible.

    Strong implementations reproduced not only the overall desktop layout but also details such as mobile input positioning and sizing, closely matching the original application. Some combinations also documented acceptance-testing caveats, such as noting that the share-link feature needed to be checked in a different browser environment. This showed awareness of real usage conditions.

    Weaker implementations commonly exhibited the following problems:

    • Recreating only the initial screen while omitting secondary interactions, such as dialogs, drag-and-drop behavior, or loading conversation history.
    • Relying on hard-coded pixel values in CSS without responsive handling.
    • Implementing awkward typewriter-style streaming effects, or omitting streaming behavior entirely.

    3.3 Product Improvements: Applying Experience Beyond Replication

    The improvement stage exposed differences in product knowledge.

    Stronger combinations drew on common practices in conversational applications to add features such as prompt template management, conversation search, code highlighting, conversation export, and retries after failures. They also explained the trade-offs behind those choices.

    This stage tests whether a model can effectively apply the product-development knowledge represented in its training data, rather than simply reproduce an existing interface.

    4. Practical Recommendations for Developers

    The evaluation suggests several reusable practices:

    1. Make task decomposition explicit. Do not assume the model will infer everything that “replicate this application” entails. Separate documentation, implementation, and improvements into clearly numbered requirements to improve completeness.
    2. Provide credentials later. Let the model build the application structure with mock data first, then supply real credentials for integration. This helps isolate problems and reduces unnecessary exposure of secrets.
    3. Require self-testing. Explicitly ask the model to validate multiple scenarios and fix issues before finishing. This can reduce the tendency to stop after the first successful execution.
    4. Evaluate the model–harness combination. Model capabilities and harness tooling jointly determine the outcome. Choose based on end-to-end results rather than assessing the model in isolation.

    5. Conclusion

    Recreating a web application may look like a simple coding challenge, but it can serve as a low-cost, informative evaluation of LLM engineering capabilities.

    The task covers five dimensions at once: product understanding, structured communication, frontend implementation, API integration, and autonomous validation. Its outputs can also be measured and independently checked.

    For teams choosing an LLM, a useful next step is to apply this framework to a moderately complex task from their own business. Comparing complete, working results can provide a more reliable basis for selection than benchmark rankings alone.