mockup-to-juce-layout
Skill0 starsChanged 23 days agoMITView on GitHub
Use when an approved HTML mockup must become a native JUCE editor: extract positions, icons and tooltips from the DOM with Playwright, generate Layout.h and Icons.h, port, check by snapshot.
In this repository69 other files it gives its agents.
- ableton-liveSkill
- ableton-push-expertSkill
- ardourSkill
- arduino-electronics-solderingSkill
- audacitySkill
- audio-driver-stacksSkill
- audio-interface-digital-ioSkill
- av-receiver-specialistSkill
- bazzite-kde-linuxSkill
- bitwig-studioSkill
- color-palette-expertSkill
- couch-pc-cec-gaming-modeSkill
- cubaseSkill
- daw-hubSkill
- denon-prime-sc5000-x1800Skill
- design-software-guideSkill
- dj-gig-guideSkill
- dj-specialistSkill
- drawing-tabletsSkill
- dsp-references-and-licencesSkill
- electronic-music-producerSkill
- fl-studioSkill
- fx-plugin-designSkill
- gha-supply-chain-hardeningSkill
- github-for-beginnersSkill
- github-repo-lockdownSkill
- grapheneosSkill
- graphic-design-expertSkill
- hard-dance-productionSkill
- hardstyle-sound-design-notesSkill
- hardware-protocol-captureSkill
- home-network-specialistSkill
- js-to-cpp-dsp-portSkill
- juce-audio-thread-handoffSkill
- juce-expertSkill
- juce-headless-test-snapshotSkill
- knulli-handhelds-m8Skill
- korg-logue-sdk-expertSkill
- linux-audio-productionSkill
- linux-expertSkill
- linux-security-hardeningSkill
- linux-terminal-expertSkill
- logic-proSkill
- loudness-and-lowend-deliverySkill
- man-page-expertSkill
- max-for-live-expertSkill
- mockup-is-the-pluginSkill
- nextcloud-specialistSkill
- photo-editing-color-gradingSkill
- pihole-raspberry-piSkill
- plugin-dsp-qualitySkill
- plugin-fleet-auditSkill
- plugin-performance-profilingSkill
- plugin-security-fuzzingSkill
- plugin-ship-checklistSkill
- pro-toolsSkill
- reaperSkill
- rog-ally-x-bazziteSkill
- sound-engineer-acousticsSkill
- sound-forgeSkill
- The first 60 shown.
The file
Files
From mockup to native JUCE window
Extends mockup-is-the-plugin (the mockup IS the product). Labels: MEASURED (done for a 24 operation audio editor, 53 icons), UNVERIFIED.
Recipe
- Open the mockup in Playwright at a fixed viewport. Read the stage rectangle, then for every
button, knob and canvas:getBoundingClientRect()minus the stage origin, text,data-*tooltip, SVGouterHTML, computed colour. Save as JSON. Keep the extraction scripts intools/so the port can be regenerated. - Generate two headers with a small Python script:
Layout.h(named rectangles in design pixels, op table with tooltip, shortcut and colour) andIcons.h(SVG strings). Wrap each icon's inner elements in<g fill="none" stroke="#hex" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round">using the colour the browser computed; JUCE's SVG parser does not resolvecurrentColor. Check that running the generator again reproduces the headers byte for byte. - Build the editor at the design size (for example 1382 x 876) and scale it:
content->setTransform(AffineTransform::scale(getWidth() / designW)), aComponentBoundsConstrainerwith a fixed aspect ratio, and a scale menu. Draw panels, wood or frame, header and logo inpaint()from the DOM measurements. - Fonts:
juce_add_binary_datawith ABSOLUTE paths (${CMAKE_CURRENT_SOURCE_DIR}/assets/...); relative paths failed under Ninja with "missing and no known rule". MEASURED. UseFontOptions(typeface).withHeight(h)in JUCE 8. - Take the tooltip text from the mockup data, not from memory. It also tells you what a button really does (a "grab" button turned out to keep the last seconds heard, not to drag a file).
- Render the real window offscreen and compare with a screenshot of the mockup, page by page (see
juce-headless-test-snapshot).
Gotchas found
- Non-ASCII text in a
const char*is read as Latin 1 and shows as garbage. Build the String withjuce::CharPointer_UTF8("\xe2\x96\xbe"). MEASURED. - Child components often call a refresh callback while the constructor is still creating widgets: a null pointer crash. Guard with a
readyflag set at the end of the constructor. MEASURED. - A button that repeats the arrow glyph the style already draws shows "...": pick the plain style. MEASURED.
- Things the plugin cannot do yet stay visible but greyed out (alpha 0.3, disabled, tooltip "Not in this build yet") and are listed in the README and ROADMAP. Never delete them from the layout, and never pretend they work.
- Web-only controls (browser audio start, "demo loop") are dropped on purpose and written down.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

