FrameOS
Guide

Editing scenes

Build scenes visually with the node-based editor - events, apps, data sources, state, nested scenes and layouts.

A scene is what a frame shows: a graph of connected nodes that runs on the device. Scenes are built in a visual editor, then deployed onto the frame, where it runs.

Self-hosted backend, FrameOS Cloud and standalone frames

The same editor ships in the self-hosted backend, in FrameOS Cloud, and on a standalone frame's own admin page. Everything here works in all three, except compiled scenes, which need the self-hosted backend.

Create a scene

Click + Add new scene, give it a name, and open the editor.

Creating a new scene

The four node colors

  • 🟥 Red - events. Entry points that trigger execution. The most important one is render, which fires at a set interval (every 60 seconds, every hour, whatever you choose). Others react to buttons, touch and keyboards, schedules, or custom events.
  • 🟦 Blue - render apps. Draw things: images, text, calendars, gradients, split layouts.
  • 🟩 Green - data apps. Fetch and transform data: download an image, query Home Assistant, parse an iCal feed, generate an image with OpenAI, take a screenshot of a web page.
  • 🟨 Yellow - state fields. User-editable values (text, numbers, options) that can be changed live from the control page without redeploying.

Drag from the render event's connector to add a blue Render image app:

Adding a render app

Then drag its image field out and pick a green data app to feed it - use FrameOS Gallery if unsure. Press deploy:

Adding a data app

Caching

Every data app has cache controls. A scene might re-render every minute while its data app only fetches a new image every 15 minutes - the cached value is reused in between. And if a re-render produces the same image as before, an e-ink display won't refresh at all: no unnecessary flashing.

Cache controls

State fields

Add a yellow state field under the scene's "State" tab, then drag it onto the canvas and wire it into any app input. Deploy once, and from then on you can change the value live - from the frame's control page, the backend, or the HTTP API.

Adding a state field

Editing state live

Fields are typed, and the type decides what the control page shows: text, long text, numbers, booleans, a color picker, a date picker, a select box, raw JSON, a font picker, an image, a scene picker - or a path, which is a file and folder browser over the frame's own assets. "Which photo folder should this play?" becomes a picker instead of a typed-in string. A select's options are one per line, either a plain value or value | Label when what the frame stores and what people read should differ. Write a literal pipe as \|.

A scene with both a latitude and a longitude field (latitude or lat, and longitude, lon, lng or long) gets a Use my location button wherever its state is edited: the scene's drawer, previews, schedule entries and split screen panels. It fills in both from your browser. A page opened over plain HTTP, like a frame's own admin page on your LAN, gets no location from any browser, and the button says so.

Every scene also has one field you don't add yourself: Refresh interval (seconds), listed last wherever the scene's fields show up - the control page, the backend, the cloud, schedules and previews. It starts at the interval from the scene's settings - 300 seconds for a new scene - and it is the only interval there is: a frame has no refresh interval of its own and renders on its scenes'. Change it like any other field and the next sleep follows; a 0 or nothing, set from outside (a schedule entry, the control form), means the scene's own interval. To decide where it sits, what it's called, or to hide it (access: private), add your own numeric field and switch on Use as refresh interval. In code it is state.refreshInterval. The Next sleep duration app is still a one-time override: it sets how long to sleep after this render, and the render after that is back on the interval.

Two more switches give a field a job of its own. Use as background on a color field makes it the scene's background - what shows around a picture that doesn't fill the screen, like the bars beside a portrait photo - so people pick it on the frame's page; the SD card image and photo album scenes have one. Use as full screen on a boolean field lets people ask the layout for the whole screen from the scene's settings.

Icon, category and other scene settings

A scene's settings say how it shows up in lists and what it's good for:

  • Icon - a small picture of the scene, drawn wherever a list shows it without its picture: the frame's scene switcher, the desktops' menus and windows, the scene tiles, the library and the scene store. It's one SVG path in a 24×24 box, filled with the color of the text around it, so it works on e-paper and in every theme. Upload SVG turns an .svg of filled shapes into that path (strokes and text don't convert), or paste a path in: a solid icon from Material Design Icons fits as it is. Every sample scene has one.
  • Category - one of the store's: Photos, Art & galleries, Video, Clocks & time, Calendars & agendas, Weather, Transit, Home & dashboards, Games, Fun & animations, Notes & tools, AI & generative, Demos & examples or System. The scene keeps the name as text ("category": "Photos"). The desktops and the scene switcher group their lists of scenes by it, System first, and the store files a published scene under it. System is for the frame's own apps - the Scene store, Code editor, Files, Terminal, Fonts, PDF viewer, Calculator, Books and Browser - and only a scene that names it is filed there. A layout is filed by its kind instead: Multi app layouts for a desktop, Device layouts for one made for a particular frame, Single app layouts for the rest.
  • Window size - the size the scene opens at in a window of a desktop: square for a music player, tall for a to-do list, 800×480 when it's not set. It changes nothing outside a desktop.
  • Full screen - the scene wants no layout around it (full screen).
  • Round screens - whether the scene reads well in a circle (round screens).
  • Opens files - the kinds of file the scene reads, by extension: pdf, epub, txt md json. The Files scene sends a file that isn't a picture to the scene that names its kind earliest in its list (the frame's order breaks a tie), with the file in the scene's file field, and says Can't open .mp3 files when none does. The PDF viewer, Books, Writing and Code editor samples name theirs: Writing's md txt comes before the Code editor's, so prose opens there.

Scenes inside scenes

A split (or any scene node) draws other scenes into cells, and each of them renders on its own schedule: a clock that ticks every second next to a photo that changes every hour re-runs only the clock, and the photo's cell puts back what it drew last time. The split's own interval is the fastest it renders, so set it to the quick cell's pace; each cell's options say when that cell renders. A render asked for from outside - a button, the API, the schedule - redraws every cell.

In a JSX app, <Scene id="weather" /> does the same inside a UI: another scene of the frame drawn into a box, on its own schedule, with the tag's props as its state, and taps on it reach it in its own coordinates. Up to eight fit in one UI, and the scene draws straight into its part of the canvas - a dashboard of scene tiles redraws only the tile that's due.

A scene that a split shows stays a tile of its own in the frame's scene lists - the frames home, the split picker, the schedule - tagged with what shows it (In Split screen, or In 2 scenes with the names in its tooltip).

Layouts

A layout is a scene that wraps your other scenes: a taskbar with the clock and the battery, a newspaper masthead, a Polaroid border.

The Windows 98 layout: a gray taskbar with Start, the scene's button, Control Panel and a clock, around a scene

The Front page layout: a newspaper masthead with the date and the scene's name above the scene

It's one JSX app with a <yield /> where the scene goes:

app.tsx
export function get(app: FrameOSApp) {
  const now = new Date()
  frameos.setNextSleep(60 - now.getSeconds()) // nothing to redraw until the minute changes
  return (
    <div className="flex flex-col bg-slate-900 text-white">
      <yield />
      <div className="flex justify-between px-4 py-2 text-xl">
        <span onClick={() => frameos.dispatch('sceneSwitcher')}>{app.frame.sceneName}</span>
        <span>{now.toTimeString().slice(0, 5)}</span>
      </div>
    </div>
  )
}

The scene draws straight into the hole and keeps its own schedule, and the chrome around it redraws only when it's due, so a 20 fps animation inside a clock bar pays for the bar only when the clock changes. Taps go to whatever is under them. A layout's app can read app.frame.sceneName, app.frame.batteryPercent and app.frame.wifiRssi, and open the frame's own screens with frameos.dispatch('sceneSwitcher'), frameos.dispatch('sceneSettings') and frameos.dispatch('sceneSettings', { page: 'frame' }).

  • Starters: the desktops, the device layouts and the full screen layouts - Top bar, Bottom bar, Side rail, Polaroid, Front page, Terminal, Gallery wall, Teletext and E-reader - are one click away under New layout in the frame's Layouts group, the two kinds listed apart, as they are in every layout select. Teletext gives each scene a page number, a clock and colored links to the scenes before and after; E-reader puts the scene on a page, with a footer whose halves turn to the scene before and after. Terminal has F2 settings at the right of its prompt: a tap or the F2 key opens the settings of the scene it wraps. The scene store has a shelf for each kind.
  • Made for a reTerminal: reTerminal (the E1001 to E1004) knows where each key sits on the case and writes what it does beside it - a press in large letters, a hold in small ones - and adds a status bar along the keys' edge with the signal, the battery and the time the picture was drawn. reTerminal Sticky turns the scene list into a home screen with the time and the date large, the signal and the battery, and a line each for what the Action key, Up and Down and the swipes do; held sideways, they go in a narrow column beside the list. Over every other scene it's a thin bar - the time on the left (a tap opens the scene list), the signal and the battery on the right (a tap opens the frame's page) - or nothing at all. Both follow the frame's button actions and rotation, have switches for everything they show, and step aside while the keyboard is up.
  • Any scene can be one: Use as layout in its settings turns it into a layout and back, if its render is one JSX app with a <yield /> - the switch says why when it isn't. A layout stays out of the scene list, the switcher and next/previous, and a frame never boots to one.
  • Wearing one: Activate in a layout's drawer puts it on every scene and pushes it, and Deactivate takes it off. A scene added later wears it too. Each scene can pick its own under Advanced in the frame's Layout setting, and the frame's on-screen settings can change it on the device.
  • Around the built-in screens: the scene switcher and the settings open inside the layout, so a taskbar stays up. A layout that wants them full-screen returns a bare <yield /> while app.frame.systemScene is true.
  • Safe mode: a layout can make a frame hard to use. Ten pulls down from the top edge of a touch screen, each within five seconds of the last, open the frame's settings without the layout: Cancel goes back as it was, and only Save changes anything. A swipe in from another edge in between starts the count again.
  • Its look on the frame's own screens: the scene settings, the frame page, the switcher and the keyboard on the screen take their look from the layout around them. The desktops below have a Look of the settings pages field - Windows Standard, Light and Dark, BeOS, Classic, NeXTSTEP, Warp 4, Commander, High contrast, or FrameOS's own (Omarchy's pages wear its theme) - and e-paper gets High contrast. A JavaScript app can wear the same look (look), as the Files sample does.

A scene that wants the whole screen

A reader or a game can ask the layout to step aside: switch on Full screen in the scene's settings, or give it a public boolean field with Use as full screen, so people turn it on and off from the scene's settings on the frame. The reTerminal Sticky layout then gives the scene the whole glass, and Top bar, Bottom bar, Side rail and E-reader do the same; the desktops and the picture-frame layouts keep their look. A change shows on the next render, with no restart. Books and PDF viewer have the field, on by default. In your own layout, app.frame.fullScreen is true while the scene asks, and a bare <yield /> gives it the screen.

Desktops: scenes side by side

On a Raspberry Pi, an ESP32 and in the browser preview, nine layouts are desktops: Windows 98, macOS, BeOS, Classic Mac, NeXTSTEP, OS/2 Warp, Tiling, Omarchy and Commander. Every scene you open gets a window, a tile or a panel of its own, and they all run at once. The one in front is the frame's current scene - the one the scene list, next and previous, the API and the control planes move. Each has a Windows setting: On, Off (one scene at a time, with the desktop's bar around it) or Automatic, which runs windows where the frame can run four scenes at once or has no limit and has a screen of at least 640×480, and one scene elsewhere.

  • Windows 98, macOS, BeOS, Classic Mac and NeXTSTEP open overlapping windows, moved and sized with a finger or the mouse, snapped to half or all of the desktop at its edges, put away and brought back, each in its own chrome: a taskbar and Start menu, a Dock and menu bar, a Deskbar and Be menu, System 7's pinstriped title bars in black and white, NeXTSTEP's main menu, Dock and miniwindows in four greys. Alt+Tab, F11 for full screen, and a gear on each window for that scene's settings. On Windows 98 the Windows key, Ctrl+Esc or Alt+F1 opens Start, and the arrows, Home, End and Enter pick from it. With a mouse on a Pi, the cursor turns into resize arrows over a window's edges.
  • Icons on the desktop of Windows 98, BeOS, Classic Mac and OS/2 Warp move: drag on bare desktop for a dotted rectangle that picks every icon it touches (Ctrl or Shift adds to what's picked), and drag a picked icon to move them all. Each lands in the free spot nearest where it was dropped and stays there across restarts, and new windows keep clear of them.
  • OS/2 Warp has the WarpCenter along the top (its Desktop menu with the scenes by category, the Window List, the tray, the clock), Warp 4's grey windows with a system menu behind the title icon, and the LaunchPad at the bottom of the desktop. A right click or a long press on bare desktop opens its pop-up menu, and OS/2's keys work: Ctrl+Esc for the Window List, Alt+F9 to hide, Alt+F10 to maximize, Alt+F4 to close.
  • A new window opens at its scene's own window size, or 800×480. One too big for the desktop fills it when it's the first, and is made smaller, keeping its shape, when it isn't. It goes where it covers no other window if there's room, and where it covers the least if not, so it never lands right on top of another. The zoom or maximize button, or letting go at the top edge, fills the desktop, and the scene opens that way again until the frame restarts.
  • Tiling keeps the scenes in tiles, in five arrangements its top bar steps through. Drag a gap to move that split, drag a tile's bar onto another tile to swap them, and a press anywhere in a tile is its scene's.
  • Omarchy tiles its scenes with gaps and a border over five workspaces, after Omarchy 4: a bar along the top with the workspaces, the layout, the clock, the signal and the battery, and a layout per workspace - dwindle, scrolling columns, or floating windows with a dock. Super+Space opens a menu that filters as you type, and Omarchy's bindings work (Super+1 to 0, Super+W, Super+F, Super+arrows, Super+Return for the terminal, Super+K lists them all). The Super key setting says which key is Super: Super or Ctrl by default, so the bindings work in a browser, which keeps Cmd+W for itself. Eleven of Omarchy's themes, Tokyo Night first.
  • Commander is two blue panels: the scene in front in one and a second scene running in the other. Tab or a press moves between them, and the function keys along the bottom swap the panels, show the next scene, turn the other panel into an Info panel or give one panel the whole screen.
  • Lists of scenes - the Start menu, the Scenes menus, the Be menu, the Desktop menu, Tiling's + - go by category, System first, a heading over each and the scenes without one last under Other, and scroll under a finger when they're longer than the screen. Each scene shows its own icon where it has one. The macOS Dock has the scenes with a window open, NeXTSTEP's the ones that have run.
  • The frame's own screens are windows too. Each scene's settings open as a window beside it, and Save there applies the values to the running scene and keeps the window open. The scene list is a launcher: a scene picked there opens beside it, and the list stays open until you close it. Closing a window opens nothing else - the focus goes to the window under it - and closing a scene closes its settings window too. The keyboard on the screen is a window of its own over all the others, with a bar to drag it by.
  • Memory. On an ESP32 only so many scenes run at once, by the memory its panel leaves: two on an 8 MB LCD or 7.5" board, one on the 13.3" E1004, four with 16 MB or more. The desktop closes the window that's been in the background longest, and a window behind another runs at most every five seconds until it's brought forward. A Pi and the browser have no limit. A scene brought forward from its window doesn't reload.
  • Another size. A new render scale, a turn of the frame or a resized browser window puts every window at the same place on the new desktop, in proportion.

Pick another desktop and it opens the windows the last one had open, where they were on the screen. In your own layout, app.frame.scenes lists the frame's scenes (only where they can run side by side) with each one's window size, icon and category, app.frame.sceneId is the one in front, app.frame.windows how many may run at once, and a bare <Scene id="…" /> is that scene itself, state and all, not a copy. Where scenes can't run side by side - a board rendered on the server, a virtual frame - a desktop draws its bar around the one scene.

Buttons, touch and keyboards

A frame's GPIO buttons reach a scene as two events:

  • button - what the person meant: a press, delivered the moment the key comes up, or a longPress, delivered once when the key has been held a second, while it's still down - a frame with a buzzer sounds then, so you know to let go. Every press is exactly one button event, so a button listener without an action filter never runs twice for one press, and two quick presses are two presses. A key that a rule of the frame's or the scene's button actions binds a double or triple press of also has a doublePress or triplePress; only such a key waits to see whether another press comes, so every other key stays as quick. Each press carries the key's role - primary, next, prev, back, menu or screen - so a scene that listens by role works on every board.
  • gpio - what the line did: down and up, the moment they happen. Listen for these to count every tap, or for hold-to-show.

Each edge is timestamped when the frame sees it, so a tap made while an e-ink panel spends 30 seconds refreshing is still a tap, and two of them are still two presses. In the event node, the label and pin filters pick from the frame's own buttons.

On a Pi with a touchscreen, a mouse or a keyboard - plugged in at boot or later - and on an ESP32 with a touch screen or a Bluetooth keyboard or mouse, scenes also hear pointerDown, pointerMove and pointerUp (one pointer per finger), wheel, keyDown and keyUp with the key in the frame's keyboard layout, textInput, and the gestures tap, doubleTap, longPress, swipe and pinch (two fingers that moved, as one event when they lift, with the scale they ended at) - all in the scene's own pixels, rotated frames included. The older mouseMove / mouseDown / mouseUp names keep working. The Touch test and Keyboard test sample scenes show every event as it arrives, and the Touch test draws a drag's path. The browser preview sends the same events from your mouse and keyboard, two fingers on a touch screen reach the scene as a pinch instead of zooming the page, and a preview button you hold down is held like a frame's key. A pointerDown or tap says which of Shift, Ctrl, Alt and Meta were held. A mouse on a Pi gets a cursor of its own, drawn over the picture and never into it, whose shape follows what's under it: a hand on a link or a button, an I-beam over a field, the cursor-* classes of a JSX UI. The touch screens of ESP32 boards send the same pointer events and gestures. A touch longPress is held half a second, as on a phone; a button's is a second. A swipe that starts at the very edge of a touch screen and moves quickly a fifth of the way across it is the frame's (edgeSwipe) and never reaches the scene; a slower stroke from the edge, or a press held there, is the scene's after all. A frame with an accelerometer also sends tilt, flick, shake and orientation to a scene that listens for them.

The keys. Every board's keys follow one standard (every board's keys): a short press belongs to the scene and a hold to the frame. Action presses what's highlighted. Next and Prev walk what there is to press, and on a scene with nothing to press they're its forward and back; held, they switch to the next or previous scene. Back is back, and held it's Home. Home opens the scene switcher, and held, the scene's settings. Screen turns an LCD off and on. A board with no Back key gets one from two keys pressed together, and two keys held together can be a screen lock - UP and DOWN on the Sticky. Keys that point somewhere follow the frame's rotation, so Next is towards the right or the bottom of the picture however the frame hangs. A key pressed or an edge swiped on a dark screen only turns it on, as a touch does.

Swipes in from the edge. On every HyperPixel and every ESP32 touch board - the SenseCAP Indicator, the Sunton and Guition LCDs, Elecrow's CrowPanel LCDs, the round AMOLED, the reTerminal E1003 and Sticky - the edges come bound to the frame:

SwipeWhat it does
Up from the bottomThe scene switcher: every scene on the frame as a tile, in the frame's order. Tap one to show it, or the gear in its header for the settings of the scene you came from, whose own gear is the frame's page.
Down from the topThe frame's own settings: first Current scene - the public fields of the scene showing, as a form, with a keyboard on the screen; Save applies them and Back goes to the list - then Wi-Fi, Display, Updates and the frame's other pages. The same swipe goes back as it was.
In from the leftback, delivered to the scene: the photo or the page before.
In from the rightforward, the other way.

back and forward never change the scene, and a scene that doesn't listen for them stays as it is. Changing the scene on a touch screen is the switcher's job. In the switcher they move the highlight a screenful, and in the settings back is Cancel. While a field has the keyboard up, back puts the keyboard away (or closes an open list) and goes no further. Both screens close themselves if left alone: the switcher after 60 seconds (five minutes on e-paper), the settings after five minutes. A press on the on-screen keyboard is always a key, even on the outer keys at the edge of the glass, and a swipe up from the bottom over the keyboard still opens the switcher.

The switcher is a folder's icon view, as Explorer and Finder show one: each scene's icon over its name, grouped by category with System first, in one list that scrolls, opened on the row of the scene you came from. Its icons keep one size, so a bigger screen shows more of them, not bigger ones. Where it's wider than tall - a frame held sideways, the 5.79" strip - each name sits beside its icon, so more scenes fit, and on a round panel the columns sit in the middle of the circle. A search field in its header keeps the scenes whose name, category or id hold what you type, the first one lit for Enter. On a desktop it's the desktop's window of every scene, in the desktop's look. A touch frame that was given no scene to start on opens on the switcher as its home: there it has no Close and never times out, and a scene picked there is the one the frame boots into next. The switcher works without touch too. On e-paper it's black on white and the keys walk a highlight: next and prev step, primary and refresh show the scene (the reTerminal's green key is primary), back and menu go back. Past the last tile the highlight reaches the gear, which opens the scene's settings and from there the frame's, so even a layout that broke every scene can be taken off from the switcher. Every frame with keys reaches it: the Home key, or two keys held together on a board that has none (every board). Or send sceneSwitcher over HTTP.

Whose buttons? A scene listens for the keys its author had - A and B, or a next role - and your frame has the keys it has. Two maps sit between them:

  • Map buttons, in an installed scene's … menu, lists the scene's button listeners and lets you pick which press of which of your frame's buttons each one answers to - REFRESH is this scene's A, a long press of REFRESH its B. It belongs to the scene as installed on this frame: the scene itself is untouched, and an update to a newer version keeps the mapping.
  • Button actions, in the frame's settings, bind a press or an edge swipe to the frame itself - next scene, previous scene, the scene switcher, render - whatever scene is showing, and the scene never hears it.

A setCurrentScene event can name a direction (next or prev) instead of a scene, to walk the frame's scene list.

In a JSX UI, next and prev walk the elements there are to press; in a box that scrolls they turn its page once the next element isn't in sight, so a long list or a long text pages through on a frame with keys alone.

On an LCD - an HDMI screen, a HyperPixel, the SenseCAP Indicator - any render that hasn't put its picture up within 200 ms shows three pulsing dots over the old picture until it does: a scene switch, a slow tap, a slow refresh. A quick one looks as it always did. On the Indicator a render that answers a tap, a swipe or a key waits 500 ms before showing them, animations included, so a UI that answers in a few hundred milliseconds never flashes them.

Round screens

On a round panel - the HyperPixel 2.1" Round, Waveshare's ESP32-S3-Touch-AMOLED-1.75, Elecrow's CrowPanel 1.46" rotary - only the circle inside the square shows, and the frame's own screens keep inside it: the scene switcher is a lens, its tiles full size in the middle and smaller towards the rim; the scene settings and the frame page are a round form, the name in the top arc with Back and Save under it; a list's scroll bar runs along the rim; the keyboard, the edge swipes and an error's message stay in the circle. The frame's own apps - the Scene store, Files, Terminal, Code editor - do too, and most samples lay out for the circle: clocks as dials, progress as rings along the rim, games in the square inside the circle with their controls in the arcs. Text from the Text app drawn on the whole canvas keeps to the circle too.

In your own scene, context.round (in an app or a code node) is true while it draws a round panel's whole canvas, and false in a window, a split's cell or a layout's hole, so a scene can keep inside the circle where it is one and change nothing anywhere else; app.frame.round says the panel is round. Round screens in the scene's settings says whether it reads well in a circle, and code that asks either counts as saying yes. The scene store shows such scenes with a Round screen tag and filters by it, and a round frame's store lists them first.

Video

A frame on a Raspberry Pi plays video: a folder of files left playing for ever, a camera, a stream, old films. The samples are Video player - played like a phone's: a tap for the controls, a bar to drag, a double tap on either side to skip ten seconds, a swipe for the next video, and the keys too - Immich videos, Camera wall, Video from URL, Archive films and Slow movie (a film as e-paper stills), and Files plays the videos it lists. They need a Pi: the store doesn't offer them to an ESP32, and a backend installs ffmpeg on Raspberry Pi OS when a scene needs it.

ffmpeg decodes each video at the size of the box it's drawn in, and only that box is repainted. On a Pi 0 to 4 an H.264 video goes through the VideoCore's own decoder, and on a HyperPixel a video nothing covers is shown on a display plane of its own, which the display scales as it scans out - no pixel of it passes through the CPU, so a Pi Zero W plays 720p and 1080p clips in real time, a phone's upright video included. On HDMI, a turned panel or under a window it plays in the canvas, slower. Each playing video logs a video:playback line every 30 seconds with its frame rate and its late and dropped frames. In a JavaScript app it's frameos.video().

The store, your files, a terminal and a code editor, on the frame

These sample scenes work the frame itself from its own screen. Install them like any other scene; the desktops give the store, Files, the terminal and the code editor an entry of their own.

  • Scene store browses the scene store on the glass: Scenes and Layouts as tabs, the categories down the left of a wide window (a narrow one lists them first and opens one in a step of its own), search, a Back that says where it goes, and Preview, Install, Open, Update and Delete. On a fast screen a tile is the scene's cover with its icon as a badge, and a category is one grid that scrolls; e-paper keeps icons, a page a screen. A frame isn't offered scenes it can't run: e-paper and an ESP32 skip the ones that need a fast screen or a Pi, and an LCD puts the fast ones first. A layout can be tried: it goes around every scene, the store included, and Keep installs it while Discard puts back what the frame wore. The store reopens where you left it after a preview. An Updates entry with a count tops the categories when the store has newer versions of the frame's scenes, with Update on each and Update all in one push; a narrow window shows the categories as a grid of tiles. The frame asks its backend or the cloud to make the change, so only public store scenes go in, never one that would let a scene do more than the copy it replaces (that's the owner's call, from the workspace), and never while the settings on the screen are off. A standalone ESP32, with neither, installs the scene itself. When the backend or the cloud doesn't answer, the store says The control plane did not answer. In the browser preview it previews and installs nothing. On a Pi and an ESP32 that stays awake the covers download in the background, so a tap never waits for one, and a scene's own icon stands in until its cover arrives.
  • Files walks the frame's files: folders and pictures as thumbnails or a list, a picture on the whole screen with a swipe to the next, a slideshow, and New folder. An ESP32 with a TF card and internal storage shows both as two places at the top. In the browser preview and the playground it has Upload and Download, for files on your computer. On a desktop it's drawn in that desktop's look. Reload lists the folder again, and a TF card that can't be read right now says so, with Try again, instead of looking empty. A file that isn't a picture opens in the scene that reads its kind (Opens files) - a PDF in the PDF viewer, an .epub in Books, Markdown and text in Writing, code in the Code editor - and a video plays on a Pi. Making a folder is a write, so it wears the reads & writes files tag.
  • Terminal is the ESP32 serial console's commands - help, status, set, wifi, wifi-scan, render, event, scenes, scene, restart, reboot, version, and about for the frame page's About card - on the screen, with the keyboard on the screen and the last 200 lines kept. It can do what the frame's settings page can and nothing more, and wears a red changes frame settings tag (permissions).
  • Code editor shows every scene on the frame as files - scene.json, each app's files, each code node's code - in a workbench after VS Code: an explorer with the scenes by category, tabs, the code colored, wrapped (or not, from the status bar) and typed into with the keyboard on the screen or a real one. Save puts the change on the frame. Ask AI sends a request to the frame's backend or cloud, whose scene assistant writes a new scene or a change to the one open, shown as a draft to Discard or Save & show. A save never lets a scene do more than it was allowed. The scene settings' Code button opens it on that scene. Open folder opens a folder of the frame's files instead, as VS Code does - its tree in the explorer and any text file in the editor, saved back to the frame. It works only while the frame offers its settings page, and wears a red reads and changes this frame's scenes tag.
  • Books (ePub reader in the store) is a book reader in the spirit of KOReader: a library with covers, a Continue reading row and the time left in each book; text size, spacing, margins, justification, light, sepia or dark pages and one or two columns; bookmarks, highlights and notes on them, the contents, search and a jump to any place; reading stats with a streak and your pace; and exports to Markdown, a Kindle My Clippings.txt or a backup another frame can import. Get books downloads from Project Gutenberg, Standard Ebooks or any OPDS catalog (Calibre, COPS, Kavita) straight onto the frame's card. Taps, swipes, the keys and back and forward turn the pages. Its sibling Book highlights shows your highlights one at a time, as big as the screen takes, with the book and your note, and opens the book at one on a long press.
  • Writing is a quiet page to type prose on, with a keyboard on the screen or a real one: Markdown or plain text files in the frame's Writing folder, headings and emphasis set as they read while the file stays the text you typed, saved as you pause, typewriter and focus modes, undo, and a list of files with the recent ones first.
  • PDF viewer does the same for .pdf files: a page fits the screen whole, or is read at the screen's width a part at a time when that would leave it too small. The PDF's bookmarks are its contents, and a digit opens a keypad to go to a page. Text is drawn in the frame's own face, stretched to where the PDF puts it; embedded fonts, encryption and JPEG 2000 or JBIG2 pictures aren't read. Both open full screen in a layout that allows it.
  • Browser is a text browser, the way Lynx and Opera Mini were: no scripts and no style sheets, the page in one column in the frame's own type and the colors its markup names, slimmed by the frame as it downloads and drawn a screen at a time, so even a 7 MB news front page is on an ESP32's glass in seconds. The start page is a search (DuckDuckGo) and your bookmarks as tiles; there's history, an instant Back, forms, text size, pictures on or off, a link's QR code, a site's feed and a page's archived copy. Not in the playground.
  • Fonts lists the frame's fonts a page at a time, each name in its own face, and a specimen of the one you pick. Get fonts downloads more straight onto the frame from a catalog of 205 families, by kind or by search.

Code nodes

For quick data plumbing there are inline code nodes (green when not selected): single JavaScript or TypeScript expressions that combine or transform values mid-graph - string concatenation, math, formatting. (A legacy compiled scene may still carry Nim expressions; those nodes show a "Legacy Nim" chip with a Convert scene button.)

Code nodes

How scenes run

Scenes are interpreted: nothing about them is built into the frame's binary. When a scene starts, the frame turns its graph into one small JavaScript program and runs that. New scenes are created that way, every scene FrameOS ships is built that way, and it's the only way ESP32 and Pico frames can work at all. What you get:

  • Deploys are near-instant - nothing is recompiled, so a change is on the frame in seconds.
  • Code nodes are JavaScript, TypeScript or JSX, and apps can be customised in JavaScript.
  • It costs a little more per render, which matters very little on a display that takes 20 seconds to refresh anyway.
  • Scenes are kept apart. A scene with code of its own runs in a JavaScript runtime of its own on a Pi and on an ESP32 with more than 8 MB of PSRAM, so one that runs out of memory takes no other scene with it. On an 8 MB board each gets a sandbox of its own in a shared runtime.

There is a second, older mode - compiled - which turns the scene into native code inside the frame's binary. It is a legacy path: it's the only mode that can run custom Nim app source and Nim code nodes, but it forces a FrameOS source build on every deploy, and it only works on a Raspberry Pi deployed from a self-hosted backend. The cloud refuses compiled scenes outright, at upload and at install. Nothing in the editor creates one any more: new code nodes are always JavaScript, and saving or installing a Nim-only app asks before it flips a scene to compiled. Compiled scenes wear an amber legacy compiled tag - on the frame list, in the deploy drawer and in the scene sidebar.

The way out is the converter: Convert to an interpreted scene, in the scene's menu, in Scene Settings and on any "Legacy Nim" node. It ports Nim code nodes and scene-local Nim apps to JavaScript - simple expressions convert deterministically, the rest goes through an AI pass, and whatever can't be ported is reported as needing a manual port. It converts the editor's unsaved copy in place, so check the result, then save or deploy. The Nim does not survive the conversion - export the scene first if you want a backup. A backend forwards the conversion to the cloud, using your OpenAI key from Settings → OpenAI when one is set. The same converter is a public page at scenes.frameos.net/nim-converter (paste scene JSON, no login) and a scene_convert MCP tool.

Compiled scenes are the explicit exception

A scene is interpreted unless it says otherwise: templates, imports, backups and AI-built scenes that carry no execution mode all run interpreted. A scene that carries Nim without saying it is compiled stays interpreted too, and Scene Settings flags the Nim it can't run. The Execution select and the frame's Installation mode live under an Advanced disclosure on a Pi frame. Build new scenes interpreted unless you specifically need Nim. If you switch an existing scene between modes, do a full deploy afterwards; the editor warns you when a scene still contains Nim source that interpreted mode can't run.

On the frame side there are two ways a binary gets built: precompiled (the release binary plus its driver libraries, scenes interpreted - the default) and static (everything compiled into one binary, which is what a compiled scene forces). Frames still configured with the retired shared or shared-scenes modes are moved to static automatically.

Push, activate, preview

Edit on a scene - from its tile, its drawer, the frames home, the library or a chat link - opens the scene's page: the same workspace as a scene store page, with Editor, AI and Preview as columns you toggle and resize. The editor is a file tree (the scene, its apps and their files) beside the node graph, the AI edits the scene with the frame as context, and the preview runs it in your browser. Save saves it, Save & push puts it on the frame too. A saved scene on a self-hosted backend opens in the same workspace.

A frame's scene drawer has three buttons. The main one puts the scene on the frame as it stands, saved or not: Push & activate (or Push to frame on the scene that's already active) while the frame doesn't have your latest edits, plain Activate (or Apply) once it does. It pushes only that scene and the scenes it draws or switches to - settings and your other unsaved edits stay where they are. Preview runs the scene in your browser with the values in the drawer, and Reset puts them back. Scenes are pushed; settings and FrameOS itself are deployed.

Installing a scene - from the store, the Scenes page, or dropped on a frame's tile - saves it and pushes it to the frame without changing what's showing. Install & activate, in the install dialog and on every catalog row, does both in one push.

A deploy from the frame's deploy drawer also moves installed store scenes to their newest versions, on the cloud and on a backend. They're listed under Scene updates, ticked: untick one to keep the version the frame has, or click it to see what changes - the scene and each app's code as files, line by line. On a backend, a scene you edited keeps your field values.

Two ways to see a scene without committing to it:

  • Preview in browser runs the scene in your browser. The frame's renderer is compiled to WebAssembly, so you get the real thing - same apps, same layout engine, same resolution - without deploying to a device, or before you own one. It comes with a Browser assets folder that lives only in your browser (seeded with sample photos, so slideshow and SD-card scenes render), JavaScript clocks in the frame's time zone, and a real-time toggle for scenes that want to run faster than one frame a second. A Device menu above Resolution puts the preview on a real panel - the Seeed reTerminal E1001 to E1004 and Sticky, the Waveshare PhotoPainter and 13.3", Inky Impressions and the Inky Frame, the CrowPanel, the SenseCAP Indicator, HyperPixels, the Pi touch displays, a 1080p or 4K screen - with that panel's size and inks. The two round panels are drawn round, and the scene is told so. Rotate turns it and keeps the device. A Layout select under it tries the scene inside any of your layouts or the starters, without changing the scene, and Settings beside it sets that layout's fields for the preview, kept in your browser. A layout you're editing runs around the frame's other scenes, and a desktop runs windowed. Copy and paste in the scene go through your computer's clipboard, a tapped link opens a tab, and a file the scene saves downloads - those two only after a click or a key on the preview itself, since a store scene's code is anyone's. A scene that runs out of the memory limit stops and says so, with a Restart button. On a self-hosted backend the preview fetches through the backend, so it reaches what the frame reaches, your LAN included, without CORS errors; a host it refuses says why.
  • Preview on frame temporarily shows the scene on the actual frame without saving or deploying it. Good for checking how a color dithers on real e-ink. A sleeping ESP32 gets it on its next wake. While it's on the frame, the scene list shows it as a dashed preview row above your saved scenes, with Install to add it to the frame's scenes and Discard to take it off. Until you pick one, the preview stays: a deploy or another push carries it along. Pictures and scenes made by the voice chat arrive the same way.

How to learn

FrameOS ships with many sample scenes. The fastest way to learn is to install them, open them in the editor, and poke around. Besides photos and dashboards there are weather scenes on Open-Meteo that need no key (a painted window, a newspaper column, a 24-hour dial, a year of weather, two days as one long sky), clocks (flip, Nixie, a world clock, the sun and the moon, a countdown), calendars (a week planner, an agenda in five looks, Up next, a year at a glance, and six looks for the month), AI scenes that use your OpenAI key at most once a period (the news and the weather painted, a story a chapter a day, a tarot card and a word of the day), games played by tap and key (Sudoku, Solitaire, Mahjong, Minesweeper, 2048, Checkers, Reversi, Connect four and more, with computer players that answer in under a second), real-time arcade games for fast screens in the 8-bit palette mode (Snake, Brick breaker, Block drop, Moon lander, Star shooter, Road racer, Cave flyer, Paddle duel - the turn-based ones turn into puzzles on e-paper), tools (Daily chores, Pomodoro, Download to assets, Sketchbook and Handwriting notes, whose strokes keep every point the finger passed, Pixel art, a To-do list whose items chime when they're due, a Medication reminder, a Life counter for card games and an Emergency card for the door), a daily Nonogram, toys to tip on a frame with an accelerometer (Sand, Spirit level, Marble maze), a Hacker News reader drawn like the site, keyless data (Stocks, transit departures for Norway, London, Boston or any GTFS-Realtime feed, NASA's picture of the day, On this day), your own accounts read straight from the frame (Todoist, Notion, Google Tasks, Strava, and two Garmin dashboards with a Garmin Personal API key), and touch remotes for Home Assistant, Homey and Spotify (signed in with your own Spotify app's Client ID). Every sample lays out for the panel it's on - from a 240×296 watch to the 13.3" E1004, round glass and black-and-white or Spectra e-paper included - and the games and tools can be used with a frame's keys alone: Next walks what there is to press and the frame's Back leaves each page they open.

Sample scenes in the editor

With an AI assistant on your backend or in the cloud, you can also describe a scene - or a change to one - in the editor's chat drawer, and it builds or edits the graph, renders it to check, and hands it to the editor unsaved.

When the visual editor isn't enough, write your own apps - in Nim or JavaScript. Editing apps is next.

On this page