# Simple Draw for Raycast

URL: https://www.raycast.com/duduzeta/simple-draw

> Annotate clipboard images and screenshots on your Mac with freehand drawing, boxes, ovals, arrows and text labels.

- Install: raycast://extensions/duduzeta/simple-draw
- Author: [duduzeta](https://www.raycast.com/duduzeta)
- Installs: 174
- Platforms: macOS
- Categories: Design Tools
- Updated: 2026-11-17
- Source: https://github.com/raycast/extensions/tree/9eec094e87a21d26b55df98dc74e7c7ba5a718ce/extensions/simple-draw/

## Commands

- **Simple Draw**: Open clipboard image in a drawing canvas

## README

### Simple Draw

Annotate images already on your clipboard with freehand drawing, boxes, ovals, arrows, and text labels — fully on your Mac, with no external app or web service.

#### Features

- **Clipboard-first** — paste a screenshot or copied image, run the command, and start annotating immediately
- **Draw & text** — smooth freehand strokes plus draggable, resizable text badges
- **Boxes, ovals & arrows** — drag to draw rectangles and ovals (solid, dashed, or dotted) and arrows, each with adjustable line thickness
- **Export** — copy the result back to the clipboard or save as PNG from the viewer
- **Undo & clear** — step back through strokes or reset to the original image

#### Why Simple Draw

- **Works offline** — annotation runs locally; nothing is uploaded to a third-party website
- **No extra apps** — does not require a paid screenshot or annotation tool to be installed
- **Annotates what you copied** — works on an existing clipboard image, not a new screen capture
- **Self-contained viewer** — Raycast opens a native window (Swift + WebKit) with an HTML5 canvas; no browser tab or account
- **Swift bridge** — `ray build` and `ray develop` compile the macOS helper automatically

#### Usage

1. Copy an image to your clipboard (screenshot, **Copy Image**, or a copied image file path).
2. Run **Simple Draw** from Raycast.
3. Draw, add boxes, ovals, arrows, or text, then use **Copy to Clipboard** or **Save as PNG** in the toolbar.

Keyboard shortcuts in the viewer: **⌘Z** undo, **⌘S** save, **D** draw tool, **B** box tool, **O** oval tool, **A** arrow tool, **T** text tool. Hold **Shift** while dragging to make boxes square, ovals circular, and snap arrows to 45° angles.

#### How it works

1. The command reads image bytes from the clipboard (file path when available, otherwise PNG/TIFF via Swift).
2. TypeScript generates a single HTML page with your image embedded and an HTML5 canvas UI.
3. A Swift helper opens that page in a native **WKWebView** window and handles copy/save back to the pasteboard or disk.

#### Requirements

- **macOS** only (macOS 12+)
- Xcode or Xcode Command Line Tools (for the Swift package build on first run)

#### Development

```bash
npm install
npm run dev
```
