Developer Compares JSON-Locked vs Design-System AI Web Tool Generation Side by Side

A developer building web tools with AI assistance conducted a controlled experiment to compare two design-locking approaches: one using a strict JSON schema and a fixed template, and another using a design-system toolkit where the AI writes its own page template. Both sides generated the same BMI calculator in a single pass using separate Claude Opus sessions, with no cross-contamination or post-generation edits. The JSON approach required the AI to write only 34 lines of schema-conformant data, while the design-system approach produced a 313-line template plus a five-language dictionary. The developer clarified that a 'thin-looking' JSON output reflects insufficient build-out of the renderer, not a flaw in the locking method itself. The comparison was built retrospectively, as the developer had originally chosen the design-system path without running this side-by-side test.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in