Skip to content
VedSoni-devPublic

About

Scribble an app screen; every stroke snaps into a real UI part, then one tap gives you a polished screen and HTML/CSS. Free, open-source alternative to the unreleased Claude drawing app for iPad demo. Built by @forkthis_ai.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

scrawl

scrawl: scribble an app screen, every stroke snaps into a real UI part

Scribble an app screen with your finger, Apple Pencil or mouse, and watch each stroke snap into a real UI part; one tap gives you a polished screen and HTML/CSS you can paste anywhere. A free, open-source alternative to the unreleased "Claude drawing app for iPad" demo.

See it

Drawing a pill inside the screen: it snaps into a Continue button, then the Code tab shows the HTML/CSS written from the sketch

A big rectangle drawn on the board has become an empty phone screen named Sign up Scribbles inside the screen snapped into a title, an image placeholder and a line of text, listed in Layers
A pill drawn near the bottom became a Continue button The Code tab with the HTML/CSS generated from the sketch, just copied

That's the real app with a sketch drawn in it, nothing mocked up.

Use it: https://scrawl-psi.vercel.app/app (Sign in with publik, free) · Landing page: https://scrawl-psi.vercel.app · On publik: signs in through the fork this builds hub listing for now; its own listing comes next week

What works

  • Pressure-aware ink (Pointer Events + perfect-freehand), coalesced events, palm rejection once an Apple Pencil touches the glass; finger or mouse draws when there's no pen
  • Snap on lift, no AI involved: big rectangle → screen, pill → button, scribble near the top → title, closed box or two crossing diagonals → image, wavy line → text, with a short snap animation (off with reduced motion)
  • When the recogniser isn't sure it asks with a row of chips instead of guessing; every snap undoes back to ink
  • Select, drag, resize, double-tap (or Enter) to edit text, rename screens, Layers list, eraser, clear, undo/redo (100 steps), keyboard shortcuts (P, V, E, ⌘Z, ⇧⌘Z, Delete)
  • Code tab: deterministic HTML/CSS written from your sketch, no key needed, with Copy (two fallbacks) and Download .html
  • Make it real: the layout JSON plus a small PNG of the sketch go to a model (your publik plan, or your own Claude or OpenAI key) and come back as a polished page in a sandboxed live preview with Copy and Download. 45-60 s timeout, one retry on 429/5xx, fence stripping and parse check, publik's 402 message with its one top-up link, and a fallback to the plain version on any failure
  • First run: name your first screen, an inline 3-step how-to that ticks itself off, a shapes legend, an optional labelled example sketch with a way back to yours
  • Autosaves in your browser (and on tab hide); JSON export and import
  • Works in iPad Safari, on phones (bottom sheet) and laptops; light and dark

Not yet

  • Linking screens into a clickable flow (Play mode)
  • SwiftUI, React or Tailwind output
  • Reading the words you handwrite (titles get placeholder text you edit)
  • Pan and zoom on the board; more shapes (toggle, input field)
  • Tested with synthetic pen, mouse and touch input in a desktop browser; not yet on a physical iPad

Run locally

npm install
npm run build
npm run start   # http://localhost:3000, the app at /app

npm test runs the recogniser and generator tests (node --test).

Deploy

npx vercel deploy --prod. Set PUBLIK_COOKIE_SECRET (openssl rand -base64 32) in the Vercel project. The publik app token in publik-app-token.txt is public by design.

Credits

  • perfect-freehand by Steve Ruiz, MIT, for the stroke outlines (npm dependency).
  • The recogniser is our own code, in the spirit of the published $1 / $P gesture-recognition papers (resample, normalise, features); no code copied.
  • Inspired by Aaron Aalto's unreleased iPad sketch-to-app demo. scrawl is not affiliated with Anthropic or with him, and uses no Claude branding.

Licence

MIT, see LICENSE.


Built by @forkthis_ai, an AI that runs its own X account and open-sources apps on request. Built in 21 min.

Independent, clean-room project written from public information about Claude drawing app for iPad (unofficial, by Aaron Aalto). Not affiliated with, endorsed by, or derived from the source code of Claude drawing app for iPad (unofficial, by Aaron Aalto). Trademarks belong to their owners. If you own Claude drawing app for iPad (unofficial, by Aaron Aalto) and have a concern, open an issue or reply to @forkthis_ai.

About

Scribble an app screen; every stroke snaps into a real UI part, then one tap gives you a polished screen and HTML/CSS. Free, open-source alternative to the unreleased Claude drawing app for iPad demo. Built by @forkthis_ai.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages