# Quickstart

> Install vawe, start a film from a request, and render the first draft.

Canonical: https://vawe.dev/docs/quickstart

By the end of this page you have a <Term id="draft">draft</Term> of a short <Term id="film">film</Term> in `out/`. You need a terminal and Node 22 or newer. [Install](https://vawe.dev/docs/install) lists every requirement.

<Steps>
  <Step>
    ### Install vawe

    Clone the repository, go into its folder, install the packages, and install Chrome for the renderer.

    ```bash
    git clone https://github.com/vawe-hq/vawe.git && cd vawe
    npm install
    npx puppeteer browsers install chrome
    ```

    The install ends with a tool check.
  </Step>

  <Step>
    ### Start a film

    ```bash
    bin/vawe new hello --request "a 5 s sting for a coffee brand" --defaults --length 5
    ```

    `new` checks the tools first. If a required tool is missing, it prints the install line. For a full check, run `bin/vawe-dev doctor`. Read [Install](https://vawe.dev/docs/install).

    `new` writes `films/hello/page.html`, a valid starter <Term id="page">page</Term>, and `films/hello/brief.md`. The <Term id="brief">brief</Term> holds the facts of the film.

    Without `--defaults`, `new` asks for the details that the request leaves open: subject, message, what to show, format, assets and ending. With `--defaults`, it guesses each open detail and marks the guess `(guess: change me)`. Change each guess before you go on.
  </Step>

  <Step>
    ### Render a draft

    ```bash
    bin/vawe dev films/hello/page.html
    ```

    The draft is half size at 30 fps, with the `<audio>` tags mixed. Add `--silent` for a picture-only draft. To render only the seconds you work on, add `--from 2 --to 4`. A range has no sound.
  </Step>

  <Step>
    ### Find the output

    The draft is `out/hello-draft.mp4`, with a sheet of key frames next to it. A range gives `out/hello-draft-<from>-<to>.mp4`. Open the mp4 in any player. To look at the whole draft, run `bin/vawe frame out/hello-draft.mp4`.

    Every verb ends with a line such as `vawe: dev ok in 12s`. Each verb also adds a line to `out/hello.runs.jsonl`. Read [Use with an agent](https://vawe.dev/docs/agents#the-run-log).
  </Step>

  <Figure src="loop/key-frame-sheet.webp" alt="A sheet of key frames from the draft of colour-sting." caption="The key-frame sheet that vawe dev writes next to the draft." width="1600" height="900" />
</Steps>

> `dev` runs a stills judge on the three directions of the film, once for each change of `directions.html` or of their brief lines. It takes about 25 s. Add `--no-judge` to skip it.

## If it fails

| What you see                                                          | Why                                               | What to do                                                                   |
| --------------------------------------------------------------------- | ------------------------------------------------- | ---------------------------------------------------------------------------- |
| `install the missing tool` from `new`, or `MISSING ...` from `doctor` | A required tool is not installed.                 | Run the `fix:` line, then run `bin/vawe-dev doctor` again.                   |
| `unknown verb`                                                        | The verb name has a typo, or the checkout is old. | Run `bin/vawe --help` and compare the names.                                 |
| `new` prints questions                                                | The request leaves a required detail open.        | Answer with `--answers <file>` or `--detail key=value`, or add `--defaults`. |

## What to read next

- []()" title="Install" href="/docs/install">
    Requirements, 

    `doctor`

     and common failures.
  </Card>

- []()" title="Use with an agent" href="/docs/agents">
    Let an agent write the page and run the loop.
  </Card>

- []()" title="The page" href="/docs/the-page">
    What a page must contain.
  </Card>

{/* sources (vawe d8481cc61):
  clone URL, npm install, Chrome install: README.md "Quickstart"; postinstall (doctor --quiet): package.json "scripts"; tool check in new: bin/vawe:95, harness/lib/tool-probe.mjs
  doctor output "ok, N checks", MISSING and fix lines, 7 tools: harness/dev/doctor.mjs (TOOLS list, report block)
  new flags and the open details: bin/vawe new --help
  new writes page.html and brief.md: bin/vawe new --help
  dev flags, output paths, --no-judge, directions.html: bin/vawe dev --help
  draft is half size, 30 fps, with sound; --silent; a range stays silent: bin/vawe dev --help
  sheet next to the mp4: bin/vawe --help ("dev")
  run log path: harness/lib/runlog.mjs runsPathFor
  verb end line: AGENTS.md "Shell"
  new asks first: bin/vawe new --help; the questions: --questions-json in the same help
  */}
