Compact mode and the device grid
For AI agents: this page is Markdown at https://squiggle.sh/docs/studio/window.md. Every docs page is listed at https://squiggle.sh/llms.txt, and all of them are one file at https://squiggle.sh/llms-full.txt.
Shrink Studio to only the device, floating over your other windows with the tools you choose. Or expand it to show every booted simulator and open browser tab at once.
Compact mode
Press ⌘ ⇧ M, or Compact mode in the title bar. The window shrinks to the device with one bar above it, and the device keeps streaming. Press it again to get the full window back, where it was and at its size.
| In compact mode | What it holds |
|---|---|
| The title row | The device menu, the connection, Customize bar, Keep on top (floats the window over other windows), and exit. |
| The tools row | Any of the device panel’s menus, whole or as single buttons such as Home, Lock, Screenshot or Record screen. Customize bar picks and orders them. |
| Graphs | Up to four small graphs of the last minute, such as FPS, CPU or memory. |
Choose what the bar holds
Customize bar lists every device panel menu. Open a menu’s heading and tick Whole menu to put the menu in the bar, or tick single items to put them in as buttons. The bar has room for what its heading counts, such as BAR — 7 OF 12 SLOTS: a button takes one slot, a whole menu two and a stepper such as Text size three. Items that no longer fit are greyed out until you take something out. A menu with no single items to pick, such as Go to screen for a browser tab, is one switch instead of a heading.
Reorder bar lets you drag the buttons into place. Press Done (the tick) to keep the new order, or Cancel (the cross) to keep the old one.
The Graphs menu, which you can put in the bar like the others, sets the graphs: Show graphs shows or hides them, and ticking a metric adds its graph, up to four.
Reload the app or open a link
Reload JS is in the device menu, at the start of the title row. It reloads the app’s JavaScript from its development server, as pressing R in that server’s terminal does. If the app has lost its connection, for example after a crash, Studio uses the development server it last saw for that device; if it has seen none, it says so and reloads nothing.
The Go to screen menu also holds Open link from clipboard: copy a deep link such as myapp://orders/1042 and choose it, and the simulator opens the link. Each link that opens goes to the menu’s RECENT LINKS, the last eight, so you can open it again with one click. Text that isn’t a link (no scheme, or spaces) is refused. Links are for simulators only: a browser tab has no deep links.
Go to a screen
Go to screen takes the app to any of its screens. It is in the bar by default. Open it: it lists every screen the app declares or Studio has seen, grouped the way the app nests them (SCREENS, TAB BAR, and one group per nested navigator), with a tick on the screen the app is on. Choose one and Studio walks there the way the Screen map’s Go there does, tapping along the path it knows. Screens whose path needs values, such as an order’s id, aren’t listed.
If the app shows a sign-in screen instead, Studio runs your saved sign-in flow (a scripted flow named login or sign-in) and then goes on to the screen you chose. With no such flow, it asks you to sign in and goes on by itself once the app leaves the sign-in screen. While it waits, the top of the menu says so; choose Stop going to to give up. If Studio can’t reach the screen, a notification says which step failed.
A graph’s value takes a warning colour when it crosses a limit: frame rate under 50, CPU over 90%, event-loop lag over 100 ms, memory up more than 20% in ten seconds, or the JS heap up more than 30%. Hover a graph to see it as the Performance screen charts it, with the limit it crossed.
The device grid
Press ⌘ G to expand the device panel into a grid of every booted simulator and every tab open in Squiggle’s window. Each one is live and you can use it, and each has its own connection to its app. Compact mode shows one device, so entering it from the grid shows the device you were on.