尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗Build your own cutaway dollhouse, and a blue ballpoint pen draws it.
By Andrea Antal. The name is draw + haus, a pun on dollhouse.
Every house takes 7 seconds to draw.
drawhaus is one HTML file with no build step. Serve the folder and open it in a browser:
python3 -m http.server 8010 --bind 127.0.0.1
Then open http://127.0.0.1:8010.
index.html: the drawing engine (<script id="house">) and the page.glyphs.js: the pen paths of Plotline, the font the pen writes with.api/drawhaus.mjs: the Describe function (off, see below).render.js: saves pictures of houses in renders/. Run node render.js. It needs Google Chrome.CLAUDE.md: the build notes and the lessons learned.pnpm install
node --test
The tests for Describe use a stand-in for Claude, so they make no API calls.
Describe lets a player type a home in their own words. Claude picks the rooms, roof, windows and extras from drawhaus's own parts, and the pen draws the house. Claude only chooses parts, so the drawing is always drawhaus's own.
The function is in api/drawhaus.mjs, written as a Vercel Function. The field on the Options receipt is turned off.
Caution: the function has no per-player rate limit. The spend limit on its workspace is the only cap. Set the limit before you add the key.
To turn Describe on:
index.html, set const DESCRIBE = true.api/drawhaus.mjs in the project's api/ folder.ANTHROPIC_API_KEY, with type Secret.The field shows only when GET /api/drawhaus answers 204, which means a key is set. Each prompt calls Claude Haiku 5.5.
LICENSE.glyphs.js, is under the SIL Open Font License 1.1. See OFL.txt.