# Frames (https://www.dessn.com/docs/working-in-dessn/frames)

A frame is a page of your app running from your code. Add frames, select them, see their code and go back to an earlier version.

A frame is one page of your app, built from your code and running with [sample data](https://www.dessn.com/docs/your-code/sample-data). It
isn't a picture: press [Play](https://www.dessn.com/docs/working-in-dessn/play) and you can click through it, as in your app. When you or the
[design agent](https://www.dessn.com/docs/working-in-dessn/design-agent) change a frame, you change its own copy of your code, and your
repository stays as it is.

## Add a frame
- **From your app.** Right-click an empty spot on a file and choose **Add frame…**, then type the page's address, such
  as `/settings`. **Add all routes** adds every page of your app.
- **Ask for one.** Ask the design agent for a page, a state or a variation; it adds new frames to the file.
- **Copy one.** Select a frame and press ⌘D. The copy has its own code, so you can change it and keep the original.

## Select a frame
Click a frame to select it. The frame bar at the bottom of the screen has:

![A selected frame, with the frame bar at the bottom: Play, Select, Extract and Claude Code; the right panel shows the frame's Design tab, its size and its versions](https://www.dessn.com/docs-assets/working-in-dessn/frame-selected.png)

- **Play** (Enter): use the frame as your app.
- **Select** (E): point at parts of the page to talk about them in a thread.
- **Extract**: **Extract current state** or **Record flow**, to save what you're seeing as new frames.
- Your coding agent, such as **Claude Code**: [take the frame into your code](https://www.dessn.com/docs/your-code/take-it-to-code).

The right panel has two tabs: **Design**, with the frame's size, opacity and versions, and **Code**, with the frame's
code and what changed. **Share this prototype** at the bottom gives the frame a link of its own: see
[Sharing](https://www.dessn.com/docs/working-in-dessn/sharing#share-one-frame).

Right-click a frame for **Ask Dessn** (⌘Enter), your coding agent, **Copy**, **Copy as PNG**, **Copy link** and **More** (lock, bring to front, send to back).

## Versions
Every change to a frame is saved as a version. Under **Versions** in the frame's Design tab, the newest is marked
**Now**; press **Restore** on an earlier one to go back to it, or **See all versions** for the full list (⇧⌘Y).

If your Library has newer code than a frame was made from, the panel says how many changes behind it is, and **Pull**
brings them in. Pulling uses credits.
