尚未检测到更新。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.