Chinese LLM Coding Test: Vibe Coding a Popular Frontend Project

    This article documents a hands-on Vibe Coding test of Chinese LLMs by rebuilding a popular interactive frontend project. It explains the evaluation dimensions, walks through four iteration rounds covering scaffold generation, detail fixes, bug localization, and performance optimization, and summarizes the models' strengths and limits. It also offers practical recommendations for structured prompting, small-step iteration, version snapshots, pasting raw errors, and human review of critical paths.

    1. Background and Test Motivation

    Major vendors have recently released new-generation LLMs, and coding capability remains one of the core dimensions for judging a model’s practical value. I have previously compared the coding capabilities of several non-Chinese models. My overall impression is that the gap between models is narrowing, but in realistic scenarios such as complex frontend interactions and multi-round iterative fixes, performance still varies.

    Some readers asked to see how Chinese models perform on similar tasks. Recently, I came across a widely shared frontend interaction project in an online community. It has strong visual effects and a certain level of interaction complexity, making it a good touchstone. I therefore ran a complete Vibe Coding test with Chinese LLMs. This article records the process, pitfalls, and conclusions.

    2. What Is Vibe Coding

    Vibe Coding is a development paradigm that has emerged over the past year. Developers no longer write code line by line; instead, they describe intent in natural language, let an LLM generate code, and take responsibility for review, debugging, and iteration. Its core characteristics include:

    1. Intent-driven: Developers express “what they want” rather than “how to implement it.”
    2. Rapid iteration: If one round of generation is unsatisfactory, they immediately add descriptions and correct it.
    3. Low barrier and high efficiency: Even without deep familiarity with certain frameworks, developers can use models to quickly produce runnable prototypes.

    It is important to emphasize that Vibe Coding does not mean hands-off development. The quality of model-generated code depends heavily on prompt precision, context completeness, and the developer’s judgment of the result. This is also a key point this test aims to verify: when task complexity rises to the level of a real project, can the model hold up?

    3. Test Task Design

    3.1 Target Project Breakdown

    The popular project I selected is essentially a richly interactive frontend animation application. It involves the following technical elements:

    • Layout and animation: coordinated animations across multiple layers, easing curve control, and scroll-linked effects;
    • State management: multiple interaction states updated in sync, with many boundary conditions;
    • Performance requirements: hardware acceleration and throttling optimization to maintain 60fps smoothness;
    • Responsive adaptation: desktop and mobile interactions handled separately.

    3.2 Evaluation Dimensions

    To avoid subjective judgments based on whether something “looks usable,” I set four objective evaluation dimensions:

    Dimension Description
    First-pass completeness Proportion of runnable code after a single prompt
    Iteration convergence speed Number of correction rounds needed to go from “runnable” to “meeting the target effect”
    Issue localization Whether the model can accurately fix problems after receiving error feedback
    Code maintainability Whether the structure is clear, naming is reasonable, and secondary modification is easy

    4. Test Process Record

    4.1 First Round: Requirement Description and Scaffold Generation

    For the first prompt, I intentionally kept it conversational. I only described the page’s visual effect and basic interaction expectations, without technical details. The model’s response strategy was commendable: it first inferred an implementation plan (Canvas rendering + DOM overlay), split the module structure, and then generated complete runnable single-file code in one pass.

    The first-round output already covered about 70% of the target effect: the main animation worked and the layout was basically aligned, but the easing parameters for detailed animations were clearly off, and mobile touch events were not handled.

    4.2 Second Round: Detail Fixes

    The second prompt listed the first-round issues one by one:

    1. 1. Change the main element's entrance animation to scale first, then translate, using an elastic easing curve.
    2. 2. Add damping to the mouse-move parallax effect to avoid rigid following.
    3. 3. Add mobile touch event support.
    4. 4. Use requestAnimationFrame for the animation loop; do not use setInterval.

    The model’s performance in this round was the highlight of the test: it not only implemented each change, but also proactively extracted the animation parameters into a configuration object for easier later adjustment. This kind of engineering awareness beyond the instruction can significantly reduce subsequent communication overhead.

    4.3 Third Round: Bug Localization Test

    I deliberately introduced a typical error: I changed a variable name in a callback incorrectly, creating a runtime undefined reference, and then pasted the console error verbatim to the model.

    The model accurately located the root cause of the error and also pointed out that the function lacked null protection, suggesting defensive checks. This shows it was not simply doing string-matching repair but had a real understanding of code semantics.

    4.4 Fourth Round: Performance Optimization

    The final round asked to change the animation from per-frame redraw to dirty detection + partial redraw. This was the only part of the test that failed and then had to be corrected: the model’s first optimization introduced a state synchronization bug, causing the animation to flicker. After I fed back the symptom and it regenerated, the second round produced the correct implementation. This also shows that for architecture-level changes, developers still need to maintain review capability.

    5. Overall Evaluation

    Based on performance across the four dimensions, the conclusions are as follows:

    1. High first-pass completeness: The one-pass success rate for complex frontend tasks clearly exceeded expectations, and the scaffold code structure was reasonable.
    2. Good multi-round iteration experience: The model understood correction instructions accurately and could proactively improve code organization.
    3. Reliable issue localization: Fixes based on error information were basically correct on the first attempt, with defensive coding awareness.
    4. Architecture-level changes require caution: When rendering architecture adjustments are involved, regression issues may occur, and manual verification cannot be skipped.

    Overall, Chinese LLMs in Vibe Coding scenarios have reached a level that is fully usable in daily work, and are especially efficient for prototyping, animation implementation, and rapid validation tasks.

    6. Practical Recommendations

    Based on this test, here are several suggestions for developers preparing to try Vibe Coding:

    • Structure your prompts: Split requirements into visual, interaction, and performance parts and describe them separately; this works better than one long paragraph.
    • Iterate in small steps: Raise only 3–5 changes per round to avoid the model losing track of some items.
    • Keep version snapshots: Save a runnable version after each round to prevent later iterations from introducing regressions.
    • Paste errors directly: Raw console errors are the most effective context; there is no need to translate them into natural language yourself.
    • Manually review critical paths: Performance-sensitive and architecture-level code must be understood before being merged.

    7. Conclusion

    Vibe Coding is changing the pace of frontend development: from writing code to reviewing code. This replication practice shows that with well-designed prompts and a reasonable iteration strategy, LLMs can produce high-quality frontend interaction prototypes in a very short time. Of course, the engineering boundaries of models still exist, and developer judgment remains the final quality gate. I will continue to use more complex full-stack projects to test the models’ deeper development capabilities.