@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
md 35 lines 1.63 KB
Rendered Raw
1 # Alchemy walkthrough presentation
2
3 A presentation that builds and deploys a real app with Alchemy. Every scene
4 is recorded from a real run, then drawn as a macOS desktop (VS Code, a
5 terminal and Chrome) with Remotion and played back in tcut's presenter.
6
7 ```sh
8 pnpm capture # run every scene for real, then `alchemy destroy` (--keep to leave it up)
9 pnpm studio # preview and tweak compositions in Remotion Studio
10 pnpm render # render every deck item to out/presentation
11 pnpm present # open the presenter (Space plays/advances, N notes, F fullscreen)
12 ```
13
14 Needs `git submodule update --init --checkout -- submodules/tcut` and
15 `bunx bun@1.4.2 install` inside it. Deploys use the `ALCHEMY_PROFILE` profile
16 (default `testing`).
17
18 | Path | What it is |
19 | --- | --- |
20 | `deck.ts` | The presentation, in order: React slides and recorded scenes |
21 | `scenes/<id>.ts` | One scene script: edit files, run commands, open pages |
22 | `template/` | The app as it exists before the first scene |
23 | `capture/` | Runs the scenes against `work/my-app` and writes `out/capture/` |
24 | `shared/types.ts` | The capture format and the desktop layout constants |
25 | `remotion/` | Slides and the desktop scene (editor, terminal, browser, Cmd-Tab) |
26 | `render.ts` | Renders the deck and writes the presenter's `presentation.json` |
27
28 A scene script drives real work, and each call becomes a beat in the video:
29
30 ```ts
31 await s.editor.edit("alchemy.run.ts", (code) => code.replace(before, after)); // written to disk, typed on screen
32 const url = await s.terminal(async (t) => { /* tcut session in the project folder */ });
33 await s.browser.open(url); // real page capture
34 s.pause(2);
35 ```