draw things doodl.waow.tech
Files
README.md

doodl #

draw something, save it as an image blob on your PDS, share it, and use drawings as the app's own iconography. the drawing app is client-side; Cloudflare Workers handle live rooms, share pages, the explore corpus, and optional private-preview synchronization. an explore page shows everyone's drawings, read from their PDSes and cached briefly, so it can lag a little.

Lives at https://doodl.waow.tech (static site on your PDS via wisp, custom domain on Cloudflare).

Collections:

  • tech.waow.doodl.drawing — every doodle is an image blob record
  • tech.waow.doodl.iconset — singleton self, mapping UI slots to drawing strongRefs
  • tech.waow.doodl.preferences — singleton self; public defaults (explore, bot feature)
  • tech.waow.doodl.space — a private doodle: a permissioned space you own. add people by handle and draw on it together, live; it saves itself (as ordinary drawing records inside the space) whenever things go quiet. needs a PDS that supports atproto spaces; elsewhere the feature stays dormant.
  • tech.waow.doodl.permissions — the permission set doodl asks for at sign-in (include:), which a spaces PDS expands into the canvas grants

how it works #

  • draw — minimal freehand canvas (pen, color, stroke size, undo, clear), exports PNG. stroke controls live in a bottom sheet so the mobile toolbar stays one row tall.
  • save — com.atproto.repo.uploadBlob → a tech.waow.doodl.drawing record referencing the blob
  • icons — settings writes a tech.waow.doodl.iconset/self record whose assignments point at drawing records; the app renders those slots with the chosen drawings. any slot in the registry can be drawn over, including nav, toolbar, settings, theme, and stroke controls.
  • icon sets — settings can preview someone else's whole iconset across the app. trying one on is local-only until you save it as your own.
  • auth — in-browser AT Protocol OAuth with drawing, icon, preference, live-room and Spaces permissions. OAuth uses DPoP; space reads carry short-lived space credentials with HTTP signatures. Private-room credentials renew without interrupting the drawing session.
  • explore — the share worker lists every creator with lightrail's listReposByCollection (relays that enumerate a collection have no browser CORS), resolves each PDS through slingshot, walks their drawings with listRecords, applies moderation, and serves the browser one cached list.
  • share — /l/<did>/<rkey> preview pages are served by the share Worker so crawlers get per-drawing Open Graph image tags
  • bot — optional, opt-in, and deliberately small: the @doodl.waow.tech feature bot for consenting users.

agents #

doodl is a command line for agents. It draws from strokes or SVG path data, previews locally, saves a normal drawing with its strokes (so the app can open and remix it), and reads any drawing back as editable strokes.

bun link                    # puts `doodl` on PATH
doodl render frog.json      # frog.png, nothing saved
doodl put frog.json --hide  # saved, kept out of explore
doodl list zzstoatzz.io
doodl get at://…/tech.waow.doodl.drawing/<rkey>

doodl help describes the drawing format. Saving needs DOODL_IDENTIFIER and DOODL_APP_PASSWORD (an app password) in the environment.

Agents without a shell can draw through the hosted MCP server at https://doodl-mcp.fastmcp.app/mcp, sending their own app password as a header. Drawing with the doodl MCP covers connecting a client and how drawing through tool calls works.

dev #

Agent instructions live in AGENTS.md.

bun install
bun run dev   # localhost uses the atproto loopback OAuth client
bun run check # typecheck, lint, client and Workers tests
bun run build

deploy #

The Wisp site and custom-domain claim belong to waow.tech, which also publishes the lexicons. The app stays at https://doodl.waow.tech.

one-time: custom domain #

wispctl login waow.tech
wispctl domain claim waow.tech --domain doodl.waow.tech   # prints DNS records
# set those records on the waow.tech Cloudflare zone, then:
wispctl domain add-site waow.tech --domain doodl.waow.tech --site doodl

each release #

bun run deploy:live # live-room Worker
bun run deploy:sync # optional private-preview Worker
bun run deploy      # metadata, build, wispctl deploy --spa
bunx wrangler deploy --config worker/wrangler.jsonc   # share/preview worker
# optional: bunx wrangler deploy --config bot/wrangler.jsonc

docs #

docs holds the Spaces access model and its checks, research, and dated design and rollout history.