# What Draw is

Draw is one Next.js page, and the app loads in the browser. Routing uses the query string. Every route has `/` as its canonical URL.

## Screens are query strings

Home is `/`. A folder is `/?folder=` plus a folder id. A project is `/?project=` plus a project id. A board is `/?board=` plus a board id. Add `&focus=` with a focus area id to open that focus area. Trash is `/?view=trash`. Saved starter layouts are `/?view=layouts`.

## The library stays on the device

The first visit creates a folder named My work, a project named Getting started, and a board named Welcome. Later visits leave that library as it is.

Folders hold projects. Projects hold boards. Home shows pinned items and up to eight recent boards.

**Search** is in the main menu and on the **Search** button. The shortcut is Ctrl+K, or Command+K on a Mac. Search looks at folder names, project names, board names, and words in notes and other text.

## A board is an endless canvas

Zoom runs from 0.05 to 8. The background is blank, dots, or grid. The default in **Settings** is dots.

When the small map is on, the map sits at the bottom left. The control is labelled **Small map**.

## Tools sit on the bottom toolbar

The labels are **Select**, **Hand**, **Pen**, and **Eraser**, then the shape menu, then **Arrow**, **Line**, **Text**, and **Sticky note**. On a wide window the toolbar also shows **Focus area**, **Screen pieces**, **System design pieces**, and **Picture**.

The **Insert** button is always there. The **Insert** menu holds **Picture**, **File**, **Focus area**, **Table**, **Link**, the screen pieces, the system pieces, and **Starter layouts**.

## Pieces are drawings

Screen pieces are **Button**, **Input**, **Menu**, **Switch**, **Checkbox**, **Phone frame**, and **Computer frame**. System design pieces are **Server**, **Database**, **Queue**, **Cloud**, and **User**.

These pieces are drawings. A switch does not toggle a real setting. The switch only toggles its own On or Off mark.

## Single-key shortcuts

**Select**, **Hand**, **Pen**, **Eraser**, **Rectangle**, **Ellipse**, **Arrow**, **Line**, **Text**, **Sticky note**, **Focus area**, **Table**, and **Link** have single-key shortcuts. Press `?` to open **Keyboard shortcuts**. The menus show the shortcut for the current platform.

## A phone opens the board in view mode

A phone is a coarse pointer and a viewport no wider than 640 pixels. A board opens in view mode there. The toolbar then shows **View mode** and a button labelled **Edit**.

## IndexedDB holds the library

There is no account. Library rows, shapes, pictures, files, starter layouts, and settings live in IndexedDB for this site. Clearing site data deletes them.

**Back up everything** downloads one `.draw` file. **Import** can read that file back.

## A later visit can open offline

After the first visit, a production build on HTTPS or localhost can open offline. The service worker is registered only in production. Development unregisters the service worker.
