Hero Studio
Public Made by Adomby adom
The hero-image lab with a human gate: `hero-studio pose <owner/slug>` opens the studio in front of the human, posed for their package, and blocks until they click Generate, producing the provenance-stamped 2000x1250 PNG the registry's hero gate requires. The image carries the title and artwork; the exported image also bakes the type pill (top right) and full wiki slug (bottom right); the page shows the hero bare, and only the homepage marquee overlays its own dynamic info. Every hero wears its P
Windows: loadPuppeteer passes C:\ paths to import(), and chromePath only knows the Linux layout
Windows: loadPuppeteer passes C:\ paths to import(), so doctor and Generate report puppeteer-core missing; chromePath only knows the Linux layout
Windows 11, hero-studio 0.21.5, Node 26.5.0, puppeteer-core 25.12.0 installed in ~/.cache/hero-studio.
1. puppeteer-core is installed but never loads
renderer-paths.puppeteerPath()returnsC:\Users\<user>\.cache\hero-studio\node_modules\puppeteer-core\lib\puppeteer\puppeteer-core.js, and the server's quick status says the local renderer is OK.doctor.mjsloadPuppeteer()then doesawait import(c)on that path. On Windows that throwsERR_UNSUPPORTED_ESM_URL_SCHEME("On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'"). The emptycatch {}swallows it.- Result: doctor prints
FAIL puppeteer-core: puppeteer-core not foundwith an npm fix that changes nothing, andrender-hero.mjs(which uses the same loader) would fail at Generate. The server's gate and the doctor disagree about the same files. - Fix:
await import(pathToFileURL(c).href)for anything that is not already a URL. Workaround: setPUPPETEER_COREto thefile:///C:/...URL of the entry file; doctor then reports "resolves (25.12.0)" andrender-hero.mjsrenders.
2. Chrome is not found at its standard Windows install
chromePath()checksCHROME, then only~/.cache/puppeteer/chrome/*/chrome-linux64/chrome.- With Chrome installed at
C:\Program Files\Google\Chrome\Application\chrome.exe, doctor said "Chrome not found" and suggestednpx @puppeteer/browsers install. - Fix: also look for
chrome-win64\chrome.exeandchrome-mac*under the puppeteer cache, plus the system installs (%ProgramFiles%,%ProgramFiles(x86)%,%LOCALAPPDATA%\Google\Chrome\Application,/Applications/Google Chrome.app/...). Workaround: setCHROME.