# Scenlit: Get started

> Scenlit makes product videos, step-by-step guides and screenshots from your real app, from a scene file your coding agent writes. Install it and make a first film.

Product films, posts, docs screenshots and guides made from your real app, and made again when the app changes.

You write a scene: what happens, in plain language. Scenlit runs it in a real browser on your running app, works
out the clicks with a model the first time, and records them. After that the scene replays with no model, in
seconds. Every release gets its film made again.

```js
// .scenlit/scenes/checkout.scene.mjs
export default {
  async run({ card, open, act, see, point, shot }) {
    await card("Every test is green.", "Does the checkout work?");
    await open("/shop");
    await act("add two things to the cart", { say: "A customer picks two things." });
    await act("pay with the card {card}", { params: { card: "4242 4242 4242 4242" }, say: "And pays." });
    await see("Thank you for your order");
    await point({ testid: "order-status" }, { say: "Paid, in one go." });
    await shot("paid", { crop: { testid: "order" }, save: "docs/img/paid.png" });
    await card("Test each release", "the way a customer would.");
  },

  posts: [{ name: "paid", lead: "The order went through.", key: "We watched it happen.", shot: "paid" }],
};
```

One run of that file gives you:

| What | Where |
|---|---|
| A film that plays in any browser, in wide, square and vertical | `.scenlit/output/checkout/film.html` |
| Posts in portrait, square and link sizes | `posts/` |
| Plain screenshots, also written into your docs | `shots/`, and the `save` path |
| A step-by-step guide with marked pictures | `guide.md` |
| A click-through demo, where the viewer does each click | the same film, with `?tour` |
| An MP4 with narration, or a GIF of one step | `scenlit export` |
| A carousel for LinkedIn, as a PDF | `carousels/` |

A scene is also a test: if the film cannot be made, the flow is broken.

## Start

You need Node 20 or newer and Google Chrome. Exact steps need nothing else. Plain-language steps need a model: Claude
Code signed in on this machine, or any OpenAI- or Anthropic-compatible API, a local one included (see Settings).

```sh
npm i -D scenlit
npx scenlit init          # sets up .scenlit/ and finds your app's address and start command
npx scenlit doctor        # says what this machine is missing
npx scenlit run first     # a first film and post of your home page: no model needed
open .scenlit/output/index.html
```

Then write your own scene in `.scenlit/scenes/`, or ask your coding agent to: `init` installs a `/scenlit` skill for
Claude Code, and adds a short section to `AGENTS.md` for Codex, Cursor and the others (it sends them to
`npx scenlit guide`; an `AGENTS.md` you already have is kept, with the section added once).

## Writing scenes with help

- `npx scenlit record signup` opens your app; click through it, close the window, and you get the scene file with
  exact steps. Passwords are never written: they are read from the `PASSWORD` environment variable.
- With Claude Code, ask in plain words: "make a film of the new export button". The `/scenlit` skill does the rest.

---
From the README of Scenlit 0.1.0. The docs: https://scenlit.dev/docs. Every page: https://scenlit.dev/llms.txt
