scri.ch is a minimal web app that lets you draw, share, and fork existing drawings.
- Draw on the blank page.
- Click Save.
- Copy the URL and share it.
- Keep drawing, or click New to start again.
You can choose colors, a canvas size, or a margin when starting a drawing. For example:
https://scri.ch/?background=ddd&foreground=666
background=ddd: background color in hex, without#.foreground=666: pen color in hex, without#.size=400: a square canvas, 400 pixels wide and high.size=400x300: a canvas with a specific width and height.size=400xorsize=x300: set just the width or height.margin=20: space around the canvas. Ignored when a size is set.
Short and six-digit colors both work. See all options for more details.
Add .png to a drawing URL to get a cropped image with a white background and a 20px border.
If you chose a background color, it uses that color instead. If you set a canvas size, the image
keeps that size without cropping or adding a border.
You can also use:
-cropped.pngfor a tight crop without a border.-raw.pngfor the original canvas, including any transparency.-2x.png,-3x.png, or-4x.pngfor a larger image.
For example: scri.ch/baf-2x.png.
Install Bun 1.4 or newer, download this project, and run:
bun install --frozen-lockfile
bun run devOpen http://localhost:3000 and draw!
Drawings are saved in /tmp/scrich-development. To choose another folder:
DATA_DIR=/path/to/drawings bun run devUpgrading from 1.2? See UPGRADE.md.
To run your own scri.ch, build the app and start it with your domain and data folder:
bun run build
NODE_ENV=production \
DATA_DIR=/srv/scrich-data \
PUBLIC_ORIGIN=https://draw.example.org \
bun run startReplace the domain and data folder with your own. DATA_DIR must be an absolute path the server
can write to. The server listens on 127.0.0.1:3000; use HOST or PORT to change it.
Use a reverse proxy for HTTPS. Forward drawing pages and PNG requests to Bun, respect its cache
headers, and allow uploads of at least 11 MiB. Include dist/ when deploying, or build on the server.
Zoom exports allow up to 160 megapixels. Set MAX_EXPORT_PIXELS to change that limit.
Use a service manager to keep scri.ch running. To back up drawings, stop it and copy DATA_DIR.
Set GALLERY_PASSWORD or STATS_PASSWORD to protect that page; empty or unset means public.
The browser login checks only the password; the username can be left blank.
To hide or restore a drawing, use your server's data folder:
DATA_DIR=/srv/scrich-data bun run drawing:hide <id>
DATA_DIR=/srv/scrich-data bun run drawing:unhide <id>Hiding keeps the drawing so you can restore it later. Cached images may stay visible for five minutes.
bun run dev picks up your changes. Reload the browser to see them.
To run the checks:
bunx playwright install chromium # Only needed once
bun run checkSee CHANGELOG.md for changes.
A simple idea by Pierre Bertet and Raphaël Bastide.
- Aude Debout: 404 drawing, testing
- Quick and Dirty: testing, evangelism
- Jimpunk: scri.ch artist