A Practical Guide to Full-Stack Generation with Open-Source LLMs
This article explains why benchmark scores alone are not enough to judge whether an open-source large language model is ready for production, and proposes evaluating models by verifiable deliverables instead. It breaks down the capabilities behind a single full-stack generation: long-context global consistency, agentic tool use, and constraint and state management. A reusable structured prompt for a low-Earth-orbit travel booking site is included, along with a self-test checklist for startup, concurrency, and persistence checks. The article also covers balancing strong visual design with engineering maintainability, common failure modes and fixes, and deployment suggestions on cloud environments such as Baidu AI Cloud.
1. From Benchmarks to Real Work: Why Deliverables Should Replace Scores
For the past two years, discussions about model capability have been dominated by benchmark scores. Benchmarks are undoubtedly valuable, but they measure answer accuracy under constrained conditions. Real engineering delivery has to satisfy functional completeness, state persistence, boundary control, visual consistency, and maintainability all at once. A recent class of open-source models has come close to or surpassed some closed-source options on a range of general and software engineering benchmarks. What deserves attention here is not the ranking but the shift in capability structure: models are moving from “generating code snippets” to “completing a runnable system.”
To decide whether a model can be used in production, it is worth replacing scores with a checklist of verifiable deliverables:
- Can it produce a frontend visual system and interaction skeleton in one pass?
- Does it include real, usable backend logic and data persistence?
- Does it enforce business constraints (such as inventory limits and concurrency locking) internally?
- Can it keep the design language from drifting across multiple rounds of revisions?
2. Capability Breakdown: What Happens in a Single Generation
1. Long Context and Global Consistency
A multi-file project requires the model to hold routing, styling, data models, and copy in mind at the same time. How well the context window is used determines whether design tokens (colors, font sizes, spacing) stay consistent across the site, avoiding a gap where the landing page looks polished but inner pages look rough.
2. Agentic Tool Use
Modern AI coding tools can usually read directories, write files, run commands, and inspect execution results, forming a “generate — execute — read errors — fix” loop. This loop is the main source of higher scores on terminal-style and engineering-style tasks.
3. Constraint Satisfaction and State Management
The real difficulty is not the page but the rules: seat inventory, duplicate booking prevention, time window validation. The model needs to translate business rules into data structure constraints and transactional writes, rather than only filling in interface placeholders.
3. Practice: Delivering a Full-Stack Site with a Structured Prompt
Using a theme like “low-Earth-orbit travel booking” as an example, the reusable prompt skeleton is as follows:
Role: Senior full-stack engineerGoal: Deliver a locally runnable brand website + booking systemVisuals: Full-screen animated background, monospace data panels, vertical timeline narrativeData: Flights, seats (6 per flight), passenger info, booking recordsRules: Seat limit locking, duplicate booking blocking, time window validationOutput: Directory structure + key files + startup command + self-test checklist
The generated result usually contains three kinds of artifacts: a visual layer (landing page camera motion, parameter cards, timeline), an interaction layer (cabin selection, form validation), and a service layer (data models, APIs, persistence). The fastest way to judge delivery quality is to run the self-test checklist, for example:
# Start the servicerun_local_server# Submit the same seat concurrently and verify only one succeedsrepeat_request --times 8 --same-seat# Check whether data still exists after a restartrestart_and_query_records
If the concurrency test shows overselling, the constraint was placed in the frontend rather than the storage layer. It needs to be changed to an atomic operation or backed by a unique index.
4. Balancing Aesthetics and Engineering Maintainability
For strongly aesthetic themes such as perfume, deep-sea research, and space travel, models often deliver high-completion typography and motion: layered serif fonts, liquid rotation, caustic light and shadow, and descending camera moves through gradients. From an engineering perspective, three more constraints should be added:
- Motion must be degradable and respect the system’s reduced-motion preference;
- Visual tokens must be managed centrally to avoid scattered color values that make redesign costs spiral;
- First-screen asset size must be controlled, with video and images served from object storage and a content delivery network, combined with lazy loading.
5. Common Failure Modes and Fixes
- Frontend only, no backend: explicitly require data models and an API list in the prompt;
- Rules written in the frontend: push validation down to the server and add database constraints;
- Style drift after multiple revisions: maintain a design token and component inventory as fixed context;
- Accessibility ignored: add acceptance items for semantic tags, contrast, and keyboard reachability;
- Missing observability: integrate logging, monitoring alerts, and tracing to make it easier to locate failed requests.
6. Implementation Suggestions
In cloud environments such as Baidu AI Cloud, generated artifacts can be deployed to a container platform, static assets placed in object storage and accelerated by a content delivery network, and data stored in a managed database, with logging and monitoring alerts closing the loop. Teams should treat “generation” as the starting point and treat review, testing, and observability as necessary conditions for delivery. As open-source model capabilities keep approaching closed-source options, the real competitive edge will belong to teams that can reliably fit model output into their engineering workflow.
