# Récit Studio

Récit Studio is the desktop application of Récit for Linux, macOS, and Windows. It lets you write a
deck in Markdown with a live preview, preview films, present offline across two screens, export PDF
and MP4, and run AI jobs on decks, without Node.js installed on your machine. Studio is local-first:
it works offline on ordinary folders, with no account or server required.

:::caution{title="Preview"}

Récit Studio (`@recit/studio`) is **not published yet**: the package is private and no signed binary
is distributed today. Everything on this page is a **preview**, outside the 1.0 contract
([Stability](/documentation/reference/stability)).

:::

## Download

Récit Studio will be distributed by direct download from GitHub Releases first: `.deb` and
`.AppImage` on Linux, `.dmg` on macOS, and `.msi` on Windows, with signed automatic updates checked
at startup (`latest.json` via `tauri-plugin-updater`). Today, no GitHub Release is published.

To build an unsigned copy from a clone of the repository (see the desktop
[Tauri prerequisites](/documentation/configuration/app#prerequisites-desktop)):

```bash
pnpm install
pnpm exec nx run-many -t build -p @recit/studio create-recit
pnpm -F @recit/studio stage
pnpm -F @recit/studio run bundle # on Linux, add --bundles deb for the .deb alone
```

The `nx` build compiles the editor UI, the Node sidecar and every workspace package they need;
`stage` assembles `.stage/sidecar/` (`node`, `esbuild`, the sidecar, and its flat `node_modules`
from the pnpm store); and `bundle` packages the local installer without updater signatures
(`--no-sign`). On macOS and Windows, `run bundle` with no option builds the `.dmg` or the `.msi`;
`--bundles deb` is for Linux only and builds the `.deb` alone, since the `.AppImage` needs the
AppImage runtime on disk or `--allow-download` to fetch it.

## Open a project

Open any local folder of stories, with or without a
[`recit.config`](/documentation/configuration/recit-config), either with the native folder dialog
(**Browse…**) or by entering its path. Studio lists the decks and films in the folder (`.md`,
`.mdx`, or a standalone `kind: "story"` JSON twin) and resolves Récit imports from its bundled
sidecar, so the project needs no `node_modules` on disk.

Recently opened folders are saved locally so you can reopen a project in one click, and **New
story** scaffolds a deck or a film project offline from the built-in `create-recit` templates.

## Edit and preview

Studio edits **decks**; films are marked **Preview only** in the library and open in a live player
preview under a toolbar row (back to the library, MP4 export, and build errors), without the
Markdown editor.

Opening a deck places the CodeMirror 6 Markdown editor (with a block-insertion menu for built-in
directives) beside a live preview webview served on `127.0.0.1` by the local sidecar. Saving a deck
(`Ctrl+S` or `Cmd+S`) updates the preview without a full reload, rewrites an adjacent
`kind: "story"` JSON [twin](/documentation/writing/scenes) via `convertStory`, and warns before
writing if an edit removes scene `id`s referenced by a `kind: "sidecar"` companion. Clicking a
diagnostic jumps to its line in the editor, and moving the cursor keeps the editor and the deck
preview on the same slide in both directions.

## Present

Pressing **Present** (`F5`) works offline and opens two native windows: the audience view and the
[presenter console](/formats/deck/presenter-console) (current and next slide, speaker notes, timer,
and pace), synced over `BroadcastChannel`. When a second display is connected, Studio places the
audience window fullscreen on the other screen natively — or when you click **Project on the other
screen** in the console — without a browser permission prompt; on a single display, the audience
stays in a window for rehearsal. In the deck toolbar, **Phone** opens the `/__remote` WebSocket
relay on the local Wi-Fi network (after announcing the macOS or Windows firewall prompt) and shows
the QR code for a phone browser or Récit Remote. Signed in to the Récit account, **Open a room** in
the remote panel opens a room of Récit's hosted relay instead, for a phone on another network: its
QR code holds the room and the phone's key, **New QR code** cuts the phone connected, and **Close
the room** ends it. When the service restarts during the talk (a deployment empties its rooms),
Studio opens another room for the same deck by itself and shows its new QR code: scan it again with
the phone. After three new rooms in a row that Studio could not join, it stops and says why.

**Remote** in the same toolbar lets a phone on another network drive the deck through Récit's hosted
relay, with no local Wi-Fi in common. It needs you to be signed in to your
[Récit account](#récit-account) (the panel says where to sign in otherwise). **Open a room** shows a
QR code to scan with Récit Remote. The panel also gives the local time at which the room closes: a
room lasts four hours at most and takes one phone. Whoever holds the QR code drives the deck, so
show it to your phone only; **New QR code** disconnects the phone in the room and gives a fresh
code, and **Close the room** ends it.

## Export

Decks export to [PDF](/formats/deck/exporting) in the background through the sidecar (`exportPdf`),
using an installed Chrome or Microsoft Edge, or offering to download Chromium once into Studio's
data directory when neither browser is present. Films expose MP4 export (`renderStory`) when
`ffmpeg` with `libx264` is available on `PATH` (or `RECIT_FFMPEG`), next to the same browser as the
PDF; if `ffmpeg` is missing, Studio names the missing tool and prints the install commands for your
system instead of downloading it in the background.

## AI jobs

When a deck is open, the **AI** toolbar panel includes Studio's built-in
[AI plugin](/documentation/plugins/ai) (`deck.fromText`, `scene.rewrite`, `scene.translate`,
`deck.rewrite`, `deck.translate`, `notes.write`, `rehearsal.timing`, and `deck.toFilm`, the
`DECK_JOBS` of `@recit/ai/jobs`) alongside any AI jobs declared by the project's `recit.config`
plugins. Running a job never happens in the background: Studio shows what will be sent, validates
the returned story or scene operations against `StorySourceSchema`, and displays a diff before you
apply the change to the open deck or write the proposed file in the project. Your provider API key
(Anthropic, OpenAI, or Google Gemini) is stored in the operating system's keychain (macOS Keychain,
Windows Credential Manager, or Linux Secret Service), one entry per provider, and handed to the
sidecar under one variable per provider (`RECIT_STUDIO_AI_KEY_ANTHROPIC`, `…_OPENAI`, `…_GEMINI`).
The sidecar takes it out of its environment as it starts: only the call of a job you asked for
receives it, never a build, an export, a project's config or any other process. It is never written
to config files, logs, or diagnostics.

A job that generates images, voice, sound or video (one whose `modalities` name a media) is offered
only once a provider is set in Studio's AI settings, and never spends unasked. **Run** first shows
its estimate: each generation with its provider, model and cost, and their total; nothing is spent
yet. **Generate** then runs it for real, capped by the total shown (when a cost is unknown, the
panel says it cannot be capped). The files come back unwritten: each shows its preview (an image),
type, size, whether it replaces a file, and its [provenance](/documentation/scenario/provenance)
(origin, tool, model, license). **Write** puts them in the project with their provenance beside
each, as `recit ai --write` does; **Discard** forgets them.

The same panel runs the three steps of the [writing workshop](site:ai/atelier) that ask the author
something: `atelier.intake` (the spark, the theme and the logline, by entry), `atelier.interview`
(the next questions of a character's interview) and `atelier.beats` (a beat sheet for a format).
They send the text of the matching MCP prompt (`story_intake`, `character_interview`, `beat_sheet`),
the story open and the `atelier.md` and `cast.md` next to it, and answer with a report: the
questions to put to the author or the options to choose from. They never write a file nor lock a
decision; the **Workshop** panel does that, one gesture at a time.

## Writing workshop

The **Workshop** toolbar button opens the [writing workshop](site:ai/atelier) of the story open: it
reads the `atelier.md` beside the story and shows the current step (of nine) and its next action,
the decisions already locked, the open questions (an inferred answer is marked **to confirm**), and
the problems of the file, each with its line. Without an `atelier.md` next to the story, the panel
says the workshop has not started there. Every write below shows what will change and waits for your
click; nothing is written in the background.

- **Lock a decision** of the current step: type it, **Review** shows the exact line that will be
  added to the decisions table of `atelier.md`, and **Write atelier.md** appends it with today's
  date.
- **Answer the questionnaire**: when a `questionnaire.story.md` (a
  [form](/documentation/writing/forms) story) sits next to the story, Studio compiles it through its
  sidecar and plays it in the panel; your answers become the brief of `cast.md`, shown as a diff
  before **Write cast.md**. If `cast.md` already holds that brief, Studio says so and writes
  nothing.
- **Compare the boards** at steps 3 and 4: Studio reads the images of the `boards/` folder beside
  `atelier.md` (SVG, PNG, JPEG or WebP, in name order, at most six, 2 MB each and 6 MB together;
  hidden files, links and subfolders are skipped) and shows them side by side. Choosing one locks
  the decision “Board _label_ chosen: `file`”, through the same review step.

The workshop's own files stay plain Markdown: you can edit `atelier.md` and `cast.md` by hand, and
the panel reads them again when it opens.

## Récit account

A Récit account is optional: every feature above but **Remote** works the same without one, and with
one when the account service does not answer. The **Récit account** panel of the library signs you
in through your system browser, never a window inside Studio: Studio listens on `127.0.0.1` for a
one-time callback, opens the [central connection](/documentation/reference/account) of the account
with PKCE, and exchanges the code for a session of the `studio` product. If nobody is signed in to
the account in that browser, it shows the account's sign-in page first, then comes back to Studio.
The session is kept in the operating system's keychain, renewed by Studio in its last week, and
revoked on the service when you sign out. While no Studio feature has a price, the account changes
nothing in what Studio does.

## Plugins and trust

Plugins listed under the `plugins` key of a project's `recit.config` are loaded by the Node sidecar
the same way `recit dev` loads them (see [Using a plugin](/documentation/plugins/overview)). They
run with all of your user rights and without a sandbox, like Vite plugins — only open folders you
trust. If a plugin fails to load, Studio stops opening the story and reports the error.

Before opening a story (or sending a deck to Remote) from the library when it is governed by a
`recit.config` in a folder you have not trusted yet, Studio stops before the sidecar runs that
config or its plugins and shows **This folder runs code**: opening one of its stories runs the
`recit.config` file and the plugins it names with every right on your computer, as in `recit dev`.
Clicking **Trust and open** remembers that folder locally so Studio does not ask again; **Cancel**
leaves the story closed (projects scaffolded in Studio with **New story** open directly).

When a story opens without that library prompt — such as a path passed on the command line — and its
`recit.config` declares plugins in a folder not yet acknowledged, Studio shows **This project runs
plugins**, naming those plugins with the same warning; clicking **I understand** records the project
folder so the notice is shown once per folder. Studio's built-in AI plugin (`recit-studio`) is code
shipped with Studio itself and loaded ahead of any project plugins.

## Récit Remote

**Récit Remote** (`@recit/remote`, also in preview) is the companion Android and iOS application for
driving a live deck and reading exported decks offline. On the same Wi-Fi network, scanning the QR
code shown by Récit Studio or `recit dev --remote` links the phone as a speaker remote with slide
and step controls, speaker notes, timer, haptic feedback, and screen wake lock.

In **My decks**, Récit Remote stores standalone HTML decks (`recit export --html`) for offline
reading. You can receive a deck over Wi-Fi from Studio's **Send to Remote** QR link, paste an
`https:` URL in **Open a link**, scan a QR code pointing to that URL, or import a file from the
device. When fetching a deck from an `https:` link, the server hosting the file must allow CORS and
no redirects are followed; a deck that loads an external script, stylesheet, or module preload is
refused, and Remote's reader serves stored decks under a `Content-Security-Policy` that blocks any
other network requests from the deck. See [Smartphone remote](/formats/deck/smartphone-remote) for
pairing and offline library details.
