The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
// Authored acceptance briefs, not product presets. The studio reads arbitrary project data.
import { mkdir,writeFile,cp } from 'node:fs/promises';
import { fileURLToPath } from 'node:url';
import { join } from 'node:path';
const root=fileURLToPath(new URL('..',import.meta.url));
const fonts=[{family:'DM Sans',file:'fonts/DM Sans.ttf',licenseFile:'fonts/DM Sans-OFL.txt'},{family:'Fraunces',file:'fonts/Fraunces.ttf',licenseFile:'fonts/Fraunces-OFL.txt'}];
const txt=(id,text,x,y,width,height,size,extra={})=>({id,type:'text',text,x,y,width,height,size,minSize:size,font:'body',fill:'$ink',...extra});
const rect=(id,x,y,width,height,fill,extra={})=>({id,type:'rect',x,y,width,height,fill,...extra});
const line=(id,x,y,width,height,stroke,strokeWidth=1)=>({id,type:'line',x,y,width,height,stroke,strokeWidth});
const mark=(id,x,y,width,height,fill='$ink')=>({id,type:'symbol',symbol:'mark',x,y,width,height,fill});
const board=(id,name,width,height,layers,extra={})=>({id,name,width,height,background:'$paper',layers,...extra});
const sun={viewBox:[0,0,100,100],paths:[{d:'M 16 52 A 34 34 0 0 1 84 52 L 84 84 L 16 84 Z M 29 54 L 29 72 L 71 72 L 71 54 A 21 21 0 0 0 29 54 Z',fillRule:'evenodd'},{d:'M 46 0 L 54 0 L 54 11 L 46 11 Z M 5 21 L 11 15 L 21 25 L 15 31 Z M 79 25 L 89 15 L 95 21 L 85 31 Z'}]};
const wheat={viewBox:[0,0,100,100],paths:[{d:'M 47 20 L 53 20 L 53 95 L 47 95 Z M 50 5 C 28 18 31 39 50 46 C 69 39 72 18 50 5 Z M 12 32 C 10 55 26 67 48 65 C 47 44 35 30 12 32 Z M 88 32 C 90 55 74 67 52 65 C 53 44 65 30 88 32 Z M 15 61 C 16 84 30 95 48 89 C 49 71 37 58 15 61 Z M 85 61 C 84 84 70 95 52 89 C 51 71 63 58 85 61 Z'}]};
const morrow={spec:'forme/1',id:'morrow-bakery',title:'Morrow — neighborhood bakery',brief:'A fictional independent bakery is opening its first neighborhood shop. Build a generous, recognizable identity that works on bread bags, opening posters, the menu and the web. It should feel like a daily ritual, never like a luxury patisserie. All copy and illustrations in this fixture were authored for testing.',copy:{name:'Morrow',category:'A neighborhood bakery',tagline:'A little better, every morning.',headline:'Good bread.\nBetter mornings.',description:'Slow dough, early starts, and something warm for the walk home. Bread and pastries, made here every morning.',offer:'Opening weekend\n26–27 September',address:'14 Orchard Lane',contact:'[email protected]',hours:'Tuesday–Sunday · 7am–3pm',menu:'Country sourdough 7\nSeeded rye 8\nMorning bun 4\nBrown butter cookie 3',note:'Slow dough. Warm hands.\nYour daily loaf.'},fonts,assets:[],active:'morning-ritual',notes:'Voice: warm, direct and neighborly. Describe what we make without invented heritage or health claims.\nThe sunrise and doorway share one silhouette: a daily beginning and an open welcome.\nUse ink on paper for longer copy. Reserve the yellow field for moments of recognition. Keep a clear space around the mark equal to one quarter of its height.\nThe shop, address and contact are fictional fixture material. Replace them before a real launch.',website:{title:'{{name}} — {{category}}',cta:'Say hello',href:'mailto:[email protected]',sections:[{title:'A loaf worth slowing down for.',text:'Flour, water, salt, time. Our bread starts the day before you do. Pick up your daily loaf, stay for a pastry, and make yourself at home.'},{title:'Come by in the morning.',text:'{{address}}\n{{hours}}'}]},directions:[]};
morrow.directions.push({id:'morning-ritual',name:'Morning ritual',rationale:'A rising sun that also reads as an open door. Generous serif lettering, butter-yellow stock and green-black ink make an everyday bakery feel quietly unmistakable.',colors:{ink:'#24382F',paper:'#FAF7E8',accent:'#F4CA48',soft:'#DDE2D0'},fonts:{display:'Fraunces',body:'DM Sans'},symbols:{mark:sun},boards:[
board('wordmark','Primary identity',1600,650,[mark('sunrise',98,144,190,208),txt('name','{{name}}',342,125,1130,263,230,{font:'display',weight:600,minSize:100,tracking:-6}),txt('descriptor','{{category}}',355,408,930,56,28,{tracking:4}),line('rule',100,522,1400,0,'$ink',2),txt('promise','{{tagline}}',100,550,1200,45,25)],{role:'logo',background:'$accent'}),
board('bread-label','Bread bag label',600,800,[mark('stamp',216,72,168,178),txt('name','{{name}}',52,284,496,120,102,{font:'display',weight:600,minSize:48,align:'center',tracking:-3}),txt('category','DAILY BREAD',80,441,440,45,21,{tracking:5,align:'center'}),line('rule',60,514,480,0,'$ink',2),txt('note','{{note}}',60,554,480,103,28,{font:'display',align:'center',leading:1.3}),txt('address','{{address}}',60,713,480,35,18,{align:'center'})],{role:'packaging',printMm:[75,100],background:'$accent'}),
board('opening-poster','Opening poster',900,1200,[txt('category','{{category}}',65,57,760,42,19,{tracking:4}),txt('headline','{{headline}}',60,174,780,286,104,{font:'display',weight:500,minSize:68,leading:1.03,tracking:-3}),mark('sunrise',520,532,265,278),txt('opening','{{offer}}',70,598,380,112,36,{leading:1.35}),rect('footer',0,913,900,287,'$ink'),txt('name','{{name}}',58,950,550,130,103,{font:'display',fill:'$paper',weight:600,minSize:58,tracking:-3}),txt('address','{{address}}',65,1102,740,41,24,{fill:'$paper'})],{role:'poster',printMm:[297,396]}),
board('social-launch','Launch announcement',1080,1080,[mark('sun',698,72,252,270),txt('name','{{name}}',70,72,600,165,124,{font:'display',weight:600,minSize:72,tracking:-4}),txt('headline','{{headline}}',70,405,940,278,106,{font:'display',weight:500,minSize:65,leading:1.06,tracking:-2}),line('rule',76,812,928,0,'$ink',2),txt('offer','{{offer}}',76,864,600,118,36,{leading:1.3}),txt('address','{{address}}',730,921,270,55,21,{align:'right',minSize:16})],{role:'social',background:'$accent'}),
board('calling-card','Calling card',1050,600,[mark('sun',78,75,120,130),txt('name','{{name}}',270,55,710,160,132,{font:'display',weight:600,minSize:75,tracking:-4}),txt('tagline','{{tagline}}',78,285,870,84,36,{font:'display'}),txt('address','{{address}}',78,448,750,40,23),txt('contact','{{contact}}',78,493,800,35,21)],{role:'card',printMm:[85,48.57],background:'$soft'}),
board('daily-menu','Counter menu',900,1100,[txt('name','{{name}}',67,63,670,132,104,{font:'display',weight:600,minSize:55,tracking:-3}),mark('sun',714,75,103,110),line('rule',65,235,770,0,'$ink',2),txt('menu-title','From the oven.',65,290,770,100,62,{font:'display'}),txt('menu','{{menu}}',70,466,760,290,34,{leading:1.8}),line('lower-rule',65,879,770,0,'$ink',2),txt('hours','{{hours}}',67,936,765,49,24,{minSize:20})],{role:'menu',printMm:[180,220]})
]});
morrow.directions.push({id:'neighborhood-note',name:'Neighborhood note',rationale:'A handbill language: bold sans-serif, tomato red and a compact wheat stamp. Strong rules and little notes make every application feel like a personal invitation.',colors:{ink:'#B43422',paper:'#FFF6DD',accent:'#EABD91',soft:'#F4DCCC'},fonts:{display:'DM Sans',body:'DM Sans'},symbols:{mark:wheat},boards:[
board('wordmark','Primary identity',1600,650,[rect('frame',34,34,1532,582,'none',{stroke:'$ink',strokeWidth:4}),txt('name','{{name}}',90,98,1170,288,247,{weight:800,minSize:105,tracking:-15}),mark('wheat',1301,125,178,215),txt('promise','{{tagline}}',95,468,1350,71,35,{tracking:1})],{role:'logo'}),
board('bread-label','Bread bag label',600,800,[rect('border',28,28,544,744,'none',{stroke:'$ink',strokeWidth:3}),txt('name','{{name}}',55,86,490,146,112,{weight:800,minSize:55,align:'center',tracking:-6}),mark('wheat',173,314,254,274),txt('note','{{note}}',62,626,476,85,27,{align:'center'})],{role:'packaging',printMm:[75,100]}),
board('opening-poster','Opening poster',900,1200,[txt('opening','{{offer}}',70,50,740,136,36,{weight:600}),line('rule',60,231,780,0,'$ink',5),txt('headline','{{headline}}',60,292,780,293,105,{weight:800,minSize:64,leading:1.03,tracking:-6}),mark('wheat',600,713,223,239),txt('name','{{name}}',55,713,510,170,101,{weight:800,minSize:55,tracking:-6}),txt('address','{{address}}',63,1056,774,58,31)],{role:'poster',printMm:[297,396]}),
board('social-launch','Launch announcement',1080,1080,[txt('name','{{name}}',55,50,960,231,196,{weight:800,minSize:80,tracking:-10}),line('rule',65,337,950,0,'$ink',5),txt('headline','{{headline}}',65,441,900,225,81,{weight:700,minSize:55,leading:1.1,tracking:-3}),txt('offer','{{offer}}',65,824,700,129,40),mark('wheat',838,822,166,184)],{role:'social'}),
board('calling-card','Calling card',1050,600,[txt('name','{{name}}',64,52,775,209,166,{weight:800,minSize:75,tracking:-8}),mark('wheat',839, 70,133,155),line('rule',67,310,916,0,'$ink',3),txt('address','{{address}}',68,373,900,62,29),txt('contact','{{contact}}',68,464,900,52,27)],{role:'card',printMm:[85,48.57]}),
board('daily-menu','Counter menu',900,1100,[txt('name','{{name}}',58,58,780,196,159,{weight:800,minSize:70,tracking:-8}),line('rule',61,300,778,0,'$ink',4),txt('menu','{{menu}}',65,414,770,305,35,{leading:1.9}),txt('hours','{{hours}}',65,918,770,77,27,{minSize:20})],{role:'menu',printMm:[180,220]})
]});
morrow.directions[0].logos=[{id:'wordmark',board:'wordmark',layers:['sunrise','name']}];
morrow.directions[1].logos=[{id:'wordmark',board:'wordmark',layers:['name','wheat']}];
delete morrow.copy.menu;
for(const [i,[name,price]] of [['Country sourdough','$7'],['Seeded rye','$8'],['Morning bun','$4'],['Brown butter cookie','$3']].entries()){
morrow.copy['item-'+(i+1)]=name;morrow.copy['price-'+(i+1)]=price;
}
for(const d of morrow.directions){const b=d.boards.find(b=>b.id==='daily-menu'),old=b.layers.find(l=>l.id==='menu');b.layers=b.layers.filter(l=>l!==old);for(let i=0;i<4;i++)b.layers.push(txt('item-'+(i+1),'{{item-'+(i+1)+'}}',old.x,old.y+i*68,620,52,34,{minSize:22}),txt('price-'+(i+1),'{{price-'+(i+1)+'}}',740,old.y+i*68,95,52,34,{align:'right'}));}
await writeFile(join(root,'template/board/project.json'),JSON.stringify(morrow,null,2)+'\n');
await writeFile(join(root,'template/board/DESIGN.md'),'# Morrow identity\n\nAuthored acceptance fixture, not a customer commission. Two original directions, six applications each. Both use the same business facts; geometry and typography differ.\n\nUSER choices: none yet. Ask for the real brief and replace the visual system accordingly.\n\nReview: pending exported artwork, website, PDF and revision checks.\n');
console.log('Wrote Morrow: two authored directions, twelve editable layouts.');
const image=(id,x,y,width,height)=>({id,type:'image',asset:'approved-mark',x,y,width,height});
const grid=(width,height)=>Array.from({length:8},(_,i)=>line('grid-'+i,55+i*(width-110)/7,55,0,height-110,'$soft',1));
const vectorial={spec:'forme/1',id:'vectorial-consulting',title:'Vectorial — systems consultancy',brief:'A fictional technical consultancy supplies an approved green monogram. Preserve its exact geometry and color. Build a credible launch for engineering leaders: an identity lockup, service overview, talk announcement, proposal cover and contact card. Avoid fake product dashboards, invented clients and unverifiable performance claims.',copy:{name:'Vectorial',category:'Systems, made legible.',tagline:'Clarity is an engineering advantage.',headline:'Make complexity\nlegible.',description:'We help engineering teams untangle systems, map the decisions that matter, and turn a difficult migration into a workable plan.',offer:'Architecture review\nMigration planning\nTechnical facilitation',event:'Designing for the next change',date:'22 October · 17:00 UTC',contact:'[email protected]',proposal:'Systems review\nScope & approach',edition:'FIELD NOTES / 001'},fonts,assets:[{id:'approved-mark',name:'Approved monogram — authored input fixture',file:'assets/approved-mark.svg'}],active:'signal',notes:'Retain the supplied mark byte-for-byte. It is an original fixture made for this acceptance brief, not a client asset.\nVoice: clear, specific and practical. Explain the work instead of claiming guaranteed performance.\nUse a dark technical grid as structure, not as decoration behind body text. Green identifies key decisions; paper-colored type carries detail.\nContact details are fictional and must be replaced for a real launch.',website:{title:'{{name}} — {{category}}',cta:'Start a conversation',href:'mailto:[email protected]',sections:[],file:'site.html'},directions:[{id:'signal',name:'Signal over noise',rationale:'An existing mark becomes a complete system: deep blue-black, electric green, precise grid lines and large, direct typography. No fictional product screens or results.',colors:{ink:'#EAF2E7',paper:'#112126',accent:'#C0F088',soft:'#334B51'},fonts:{display:'DM Sans',body:'DM Sans'},symbols:{},logos:[{id:'lockup',board:'identity',layers:['approved-mark','name']}],boards:[
board('identity','Identity lockup',1600,600,[image('approved-mark',80,130,230,230),txt('name','{{name}}',376,124,1120,210,178,{weight:600,minSize:86,tracking:-8}),line('rule',80,430,1440,0,'$soft',2),txt('tagline','{{tagline}}',80,478,1410,54,28)],{role:'logo'}),
board('service-sheet','Services overview',1000,1300,[...grid(1000,300),image('approved-mark',70,68,90,90),txt('name','{{name}}',195,71,700,91,57,{weight:600}),txt('headline','{{headline}}',70,347,850,235,89,{weight:600,minSize:65,leading:1.05,tracking:-3}),txt('description','{{description}}', 70,660,805,166,30,{leading:1.45,minSize:25}),line('rule',70,884,860,0,'$accent',2),txt('services','{{offer}}',70,935,860,198,39,{leading:1.6}),txt('contact','{{contact}}',70,1195,850,52,23)],{role:'service',printMm:[200,260]}),
board('talk-announcement','Talk announcement',1080,1080,[rect('block',56,55,970,77,'$accent'),txt('edition','{{edition}}',78,78,915,42,24,{fill:'$paper',tracking:4}),txt('event','{{event}}',65,231,940,321,112,{weight:500,minSize:70,leading:1.05,tracking:-4}),line('divider',70,688,940,0,'$soft',2),txt('date','{{date}}',70,748,790,65,33),image('approved-mark',793,836,203,203),txt('name','{{name}}',70,932,655,95,69,{weight:600,minSize:45,tracking:-2})],{role:'social'}),
board('proposal-cover','Proposal cover',1200,1600,[...grid(1200,1600),rect('panel',56,350,1088,833,'$paper'),txt('category','ENGINEERING ADVISORY',70,91,1020,62,26,{tracking:4}),txt('proposal','{{proposal}}',70,431,1040,364,117,{weight:500,minSize:76,leading:1.1,tracking:-4}),txt('description','{{description}}', 70,909,972,207,33,{leading:1.45,minSize:27}),image('approved-mark', 70,1300,168,168),txt('name','{{name}}',281,1320,790,155,109,{weight:600,minSize:61,tracking:-5})],{role:'proposal',printMm:[210,280]}),
board('contact-card','Contact card',1050,600,[image('approved-mark', 60,66,145,145),txt('name','{{name}}',255,67,734,140,100,{weight:600,minSize: 60,tracking:-4}),line('rule',60,305,930,0,'$soft',2),txt('category','{{category}}',60,369,930,75,44,{minSize:30}),txt('contact','{{contact}}',60,502,900,45,25)],{role:'card',printMm:[85,48.57]}),
board('wide-banner','Event banner',1800,700,[image('approved-mark', 90,85,185,185),txt('name','{{name}}', 90,419,930,176,125,{weight:600,minSize: 80,tracking:-5}),txt('event','{{event}}',700,100,1000,260,88,{minSize: 60,weight:500,leading:1.1,tracking:-3}),line('rule',700,426,1000,0,'$accent',2),txt('date','{{date}}',700,485,1000,85,41)],{role:'hero'})
]}]};
const vectorialLogo='<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 100 100"><title>Vectorial approved monogram — original test input</title><path fill="#C0F088" d="M5 15H28L50 66L72 15H95L50 98Z M38 15H62L50 43Z"/></svg>';
const vectorialSite=`<!doctype html><html lang="en"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{site.title}}</title><style>{{fontCSS}}*{box-sizing:border-box}body{margin:0;background:{{color.paper}};color:{{color.ink}};font:18px/1.6 '{{font.body}}',sans-serif}header,main,footer{max-width:1280px;margin:auto;padding:35px 6%}header{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid {{color.soft}}}a{color:inherit}header strong{font-size:25px;letter-spacing:-1px}h1{font:500 clamp(54px,10vw,132px)/.95 '{{font.display}}';letter-spacing:-.055em;max-width:10ch;margin:75px 0 40px}p{max-width:64ch}.label{font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:{{color.accent}}}.intro{display:grid;grid-template-columns:1fr 1fr;gap:9%;border-bottom:1px solid {{color.soft}};padding-bottom:60px}.intro p{margin:0}.cta{display:inline-block;background:{{color.accent}};color:{{color.paper}};padding:14px 24px;text-decoration:none;font-weight:600;margin-top:22px}.art{padding:50px 0}.art>svg{width:100%;height:auto}.services{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin:20px 0 65px}.services article{border-top:2px solid {{color.accent}};padding-top:20px}.services h2{font-size:24px;line-height:1.2;font-weight:500}footer{border-top:1px solid {{color.soft}};font-size:13px}@media(max-width:700px){header{font-size:13px}.intro,.services{grid-template-columns:1fr;gap:25px}h1{margin-top:42px}main{padding-top:10px}}</style><header><strong>{{copy.name}}</strong><a href="{{site.href}}">{{site.cta}} ↗</a></header><main><h1>{{copy.headline}}</h1><div class="intro"><div><p class="label">{{copy.category}}</p><a class="cta" href="{{site.href}}">{{site.cta}}</a></div><p>{{copy.description}}</p></div><div class="art">{{hero}}</div><div class="services"><article><p class="label">01 / Understand</p><h2>Architecture review</h2><p>Make the existing system and its constraints visible before deciding what to change.</p></article><article><p class="label">02 / Plan</p><h2>Migration planning</h2><p>Choose a sequence of changes that the team can explain, test and carry forward.</p></article><article><p class="label">03 / Align</p><h2>Technical facilitation</h2><p>Turn competing ideas into decisions with an explicit rationale.</p></article></div></main><footer>{{copy.name}} · {{copy.contact}}</footer></html>`;
const vase={viewBox:[0,0,100,120],paths:[{d:'M34 5 C37 21 32 31 19 49 C3 70 8 100 23 114 L77 114 C92 99 98 70 81 49 C67 30 63 20 66 5 Z',fill:'$accent'},{d:'M33 5 C40 12 60 12 67 5 C66 1 34 1 33 5 Z',fill:'$ink'}]};
const ceramicMark={viewBox:[0,0,100,100],paths:[{d:'M10 43 C25 23 41 28 50 48 C60 68 75 72 90 51 L90 66 C75 89 58 83 48 62 C38 42 24 39 10 59 Z M10 16 C24 1 40 5 50 25 C60 45 78 45 90 27 L90 40 C76 60 58 58 47 38 C37 18 24 17 10 31 Z'}]};
const stillwater={spec:'forme/1',id:'stillwater-ceramics',title:'Stillwater — community ceramics',brief:'Create an identity and workshop launch for a fictional community ceramics studio. Make the work feel tactile and considered while keeping it welcoming to beginners. Deliver studio identity, an open-day poster, a product tag, a workshop announcement, a calling card, and a responsive site. Product drawings and business facts are authored acceptance fixtures.',copy:{name:'Stillwater',category:'A community ceramics studio',headline:'Make room\nfor making.',tagline:'Clay. Company. Time.',description:'A place to work with your hands, learn from each other, and make objects that belong in everyday life. Come as you are. Begin with a piece of clay.',offer:'Open studio\nSunday · 11am–4pm',address:'8 Willow Court',contact:'[email protected]',product:'The everyday vessel',detail:'Hand-built stoneware\n12 × 9 cm',course:'Weekend\nhand-building',date:'Saturday · 10am–1pm',price:'$65 · materials included'},fonts,assets:[],active:'human-pace',notes:'Voice: calm, concrete and inviting. Never imply that the studio or its objects have therapeutic effects.\nThe mark is a pair of hand-drawn currents; the vessel is a separate original illustration. Keep generous space around the typography.\nUse the warm clay accent to identify the work, and blue for text and the studio signature.\nThe studio and prices are fictional fixture material.',website:{title:'{{name}} — {{category}}',cta:'Ask about a workshop',href:'mailto:[email protected]',sections:[],file:'site.html'},directions:[{id:'human-pace',name:'A human pace',rationale:'Cobalt currents and a warm clay illustration, set against quiet natural stock. A generous serif speaks with the scale of a gallery, while plain, legible details keep the studio approachable.',colors:{ink:'#264860',paper:'#F5F0E6',accent:'#B96943',soft:'#DCE3DC'},fonts:{display:'Fraunces',body:'DM Sans'},symbols:{mark:ceramicMark,vessel:vase},logos:[{id:'signature',board:'identity',layers:['name','current']}],boards:[
board('identity','Studio signature',1700,640,[txt('name','{{name}}',70,80,1260,232,181,{font:'display',weight:400,minSize:92,tracking:-5}),mark('current',1390,119,216,216),line('rule',70,410,1550,0,'$ink',1),txt('category','{{category}}',75,474,1490,68,33,{tracking:2})],{role:'logo'}),
board('open-studio','Open studio poster',900,1260,[txt('name','{{name}}', 60,55,750,128, 90,{font:'display',minSize: 50,tracking:-2}),txt('headline','{{headline}}',60,292,720,222,82,{font:'display',minSize: 60,leading:1.08}),{...mark('vessel',522,548,285,342),symbol:'vessel'},txt('offer','{{offer}}',65,666,420,119,31,{leading:1.45}),line('rule',65,1017,770,0,'$ink',1),txt('address','{{address}}',65,1081,730,53,26),txt('category','{{category}}',65,1161,765,39,19)],{role:'poster',printMm:[200,280]}),
board('vessel-tag','Product tag',520,840,[txt('name','{{name}}',40,44,440,89,55,{font:'display',minSize:35,align:'center'}),{...mark('vessel',158,202,204,245),symbol:'vessel'},txt('product','{{product}}',45,529,430,107,40,{font:'display',minSize:30,align:'center',leading:1.12}),txt('detail','{{detail}}',45,696,430,82,21,{align:'center',leading:1.5})],{role:'packaging',printMm:[65,105]}),
board('workshop','Workshop announcement',1080,1080,[txt('name','{{name}}',65,56,800,133,94,{font:'display',minSize:60,tracking:-2}),mark('current',873, 70,135,135),txt('course','{{course}}',65,310,950,269,101,{font:'display',minSize:70,leading:1.08,tracking:-2}),line('rule',70,736,940,0,'$ink',1),txt('date','{{date}}',70,807,940,81,40),txt('price','{{price}}',70,935,940, 50,26)],{role:'social',background:'$soft'}),
board('calling-card','Studio card',1050,650,[txt('name','{{name}}',60,55,930,168,115,{font:'display',minSize:70,tracking:-3}),mark('current', 60,297,152,152),txt('tagline','{{tagline}}',274,315,710,79,37,{font:'display'}),txt('contact','{{contact}}', 60,542,915, 50,27)],{role:'card',printMm:[85,52.62]}),
board('workshop-banner','Workshop banner',1800,800,[{...mark('vessel',1110,74,550,660),symbol:'vessel'},txt('category','{{category}}', 90, 60,950,64,27,{tracking:2}),txt('headline','{{headline}}',90,260,990,251,101,{font:'display',minSize:70,leading:1.06,tracking:-3}),txt('tagline','{{tagline}}',90,663,900,64,31)],{role:'hero',background:'$soft'})
]}]};
for(const d of stillwater.directions)for(const b of d.boards)for(const layer of b.layers)if(layer.symbol==='vessel')delete layer.fill;
const stillwaterSite=`<!doctype html><html lang="en"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{site.title}}</title><style>{{fontCSS}}*{box-sizing:border-box}body{margin:0;background:{{color.paper}};color:{{color.ink}};font:18px/1.65 '{{font.body}}',sans-serif}header,main,footer{max-width:1320px;margin:auto;padding:30px 7%}header{display:flex;justify-content:space-between;gap:25px;align-items:center}header strong{font:400 36px '{{font.display}}'}a{color:inherit}.intro{text-align:center;max-width:820px;margin:65px auto 55px}h1{font:400 clamp(58px,8vw,110px)/1.05 '{{font.display}}';letter-spacing:-.045em;margin:20px 0 35px}.intro p{max-width:57ch;margin:25px auto}.small{text-transform:uppercase;letter-spacing:.18em;font-size:11px}.art>svg{display:block;width:100%;height:auto}.details{display:grid;grid-template-columns:1fr 1fr;gap:12%;padding:65px 0}.details h2{font:400 44px/1.15 '{{font.display}}';margin-top:0}.cta{display:inline-block;border:1px solid {{color.ink}};padding:13px 22px;text-decoration:none}footer{border-top:1px solid {{color.ink}};font-size:13px;display:flex;justify-content:space-between;gap:20px}@media(max-width:700px){header strong{font-size:26px}header a{font-size:13px}.intro{margin:35px auto}.details{grid-template-columns:1fr;gap:35px}.details h2{font-size:36px}footer{display:block}}</style><header><strong>{{copy.name}}</strong><a href="{{site.href}}">{{site.cta}} ↗</a></header><main><section class="intro"><p class="small">{{copy.category}}</p><h1>{{copy.headline}}</h1><p>{{copy.description}}</p></section><div class="art">{{hero}}</div><section class="details"><div><h2>Begin with your hands.</h2><p>No experience needed. Bring your curiosity, and we will work through the first shapes together.</p><a class="cta" href="{{site.href}}">{{site.cta}}</a></div><div><p class="small">{{copy.course}}</p><p>{{copy.date}}<br>{{copy.price}}</p><p>{{copy.address}}</p></div></section></main><footer><span>{{copy.name}} / {{copy.tagline}}</span><span>{{copy.contact}}</span></footer></html>`;
for(const [name,project,site]of [['vectorial',vectorial,vectorialSite],['stillwater',stillwater,stillwaterSite]]){
const dir=join(root,'examples',name);await mkdir(join(dir,'assets'),{recursive:true});await writeFile(join(dir,'project.json'),JSON.stringify(project,null,2)+'\n');await writeFile(join(dir,'site.html'),site+'\n');
if(name==='vectorial')await writeFile(join(dir,'assets/approved-mark.svg'),vectorialLogo+'\n');
await writeFile(join(dir,'BRIEF.md'),'# '+project.title+'\n\n'+project.brief+'\n\nAuthored acceptance fixture. This is not a real customer commission.\n');
}
console.log('Wrote Vectorial and Stillwater: distinct original briefs, layouts, source materials and custom websites.');