@gnawbit/tabretake 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +95 -83
- package/README.md +112 -100
- package/README.zh-CN.md +105 -87
- package/SKILL.md +38 -60
- package/examples/site/style.css +81 -71
- package/examples/story.json +1 -2
- package/package.json +12 -3
- package/references/rendering.md +8 -1
- package/schemas/story.schema.json +606 -610
- package/scripts/cli.mjs +6 -3
- package/scripts/demo.mjs +7 -1
- package/scripts/doctor.mjs +11 -3
- package/scripts/init.mjs +77 -3
- package/scripts/lib/browser.mjs +65 -3
- package/scripts/lib/captions.mjs +8 -3
- package/scripts/lib/options.mjs +9 -0
- package/scripts/lib/system-browser.mjs +30 -0
- package/scripts/lib/themes.mjs +125 -0
- package/scripts/plan.mjs +138 -116
- package/scripts/record.mjs +6 -4
- package/scripts/render.mjs +76 -37
package/CHANGELOG.md
CHANGED
|
@@ -1,83 +1,95 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
##
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
- Add
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
## 0.3.
|
|
32
|
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
## 0.
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
- Add
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
- `
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
-
|
|
72
|
-
- `
|
|
73
|
-
- `
|
|
74
|
-
|
|
75
|
-
-
|
|
76
|
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.4.2 — 2026-11-26
|
|
4
|
+
|
|
5
|
+
- Add automatic system Chrome/Edge fallback (`--browser auto|chromium|chrome|msedge`) so users can run `demo`, `init --auto`, `plan`, `preview`, and `record` immediately without waiting for `tabretake setup`.
|
|
6
|
+
- Add four built-in `brand.preset` / `--preset` themes (`midnight`, `daylight`, `paper`, `slate`) with high-contrast light/dark caption and window chrome styling.
|
|
7
|
+
- Refactor documentation for higher semantic density (`README.md`, `README.zh-CN.md`, `SKILL.md`), move legacy version caveats to `docs/compatibility.md`, and add `site/robots.txt`, `site/llms.txt`, and `SoftwareApplication` JSON-LD metadata.
|
|
8
|
+
|
|
9
|
+
## 0.4.1 — 2026-11-24
|
|
10
|
+
|
|
11
|
+
- Add `init --auto` to automatically scan target web pages and generate runnable interactive steps.
|
|
12
|
+
- Fit landscape recordings to their source aspect ratio and place captions below the content so captions never occlude UI interactions.
|
|
13
|
+
- Add `vertical.zoom` and `--vertical-zoom` to enlarge portrait focus targets independently of landscape output.
|
|
14
|
+
- Use the published npm package as the primary CLI installation route.
|
|
15
|
+
- Add adoption measurement baseline and trial feedback issue template.
|
|
16
|
+
|
|
17
|
+
## 0.4.0 — 2026-11-23
|
|
18
|
+
|
|
19
|
+
- Add story preview with step progress, JSON diagnostics and recording preservation, plus an explicit focus action for result elements.
|
|
20
|
+
- Include rich-text editors and ARIA textboxes in page plans.
|
|
21
|
+
|
|
22
|
+
- Rename the project to TabRetake. Install from `gnawbit/tabretake` at `v0.4.0` and use `tabretake` for the CLI, Agent Skill and Claude Code plugin. Stories and saved timelines can be reused. Tags through v0.3.3 use `demo-reel`.
|
|
23
|
+
- Add pinned Vikunja and Memos reproduction recipes and a manually triggered TodoMVC recording workflow with downloadable artifacts.
|
|
24
|
+
- Prefer exact button/link labels before partial controls and plain text, and keep explicit roles scoped, so a “Completed” link is not mistaken for a “Clear completed” button.
|
|
25
|
+
|
|
26
|
+
## 0.3.3 — 2026-11-23
|
|
27
|
+
|
|
28
|
+
- Wait for click targets to become actionable and report blocked clicks as step timeouts instead of successful recordings.
|
|
29
|
+
- Include form labels and native select options in page plans so Agents can identify controls without guessing from field values.
|
|
30
|
+
|
|
31
|
+
## 0.3.2 — 2026-11-23
|
|
32
|
+
|
|
33
|
+
- Redact target URLs from manual login navigation failures while keeping HTTP 401/403 pages available for sign-in.
|
|
34
|
+
- Fit portrait cards to the source aspect ratio so mobile and ultrawide recordings retain their edges at overview zoom.
|
|
35
|
+
- Clarify rendering prerequisites and platform-neutral publishing examples; correct native Agent evaluation failure evidence.
|
|
36
|
+
|
|
37
|
+
## 0.3.1 — 2026-11-23
|
|
38
|
+
|
|
39
|
+
- Start captions before action pauses so the pause provides reading time. Re-record older stories to adopt the corrected timestamps.
|
|
40
|
+
- Distinguish unreachable pages from HTTP errors, preserve failed navigation step locations and avoid echoing target URLs in these errors.
|
|
41
|
+
- Clarify public discovery and installation entrypoints; record independent Agent smoke tests with their limitations.
|
|
42
|
+
|
|
43
|
+
## 0.3.0 — 2026-11-23
|
|
44
|
+
|
|
45
|
+
- Shorten the Skill entrypoint with focused references; add client metadata, a plugin icon and verified installation guidance.
|
|
46
|
+
- Add JSON results and artifact manifests for init, plan, record and render; report failed recording steps and require interactive manual login.
|
|
47
|
+
- Upgrade Sharp to 0.35.5 for patched image libraries; require Node.js 20.9 or newer.
|
|
48
|
+
- Validate stories, marks and recorded timelines before execution; add a packaged JSON Schema and field-level JSON diagnostics.
|
|
49
|
+
- Add machine-readable diagnostics, version and capability queries; keep diagnostics usable when dependencies are missing.
|
|
50
|
+
- Wrap captions within the frame, prevent overlaps and preserve recording brightness under decorative frames.
|
|
51
|
+
- Ease click zooms and pans without cutting the timeline; configure timing with `zoomDuration` or `--zoom-duration`.
|
|
52
|
+
- Select poster frames with `posterAt` or `--poster-at`; default to a frame near the end and support short clips.
|
|
53
|
+
- Add runnable README GIF, onboarding and release demo recipes with `demo --story`.
|
|
54
|
+
|
|
55
|
+
## 0.2.0 — 2026-11-20
|
|
56
|
+
|
|
57
|
+
- Package the CLI as `@gnawbit/demo-reel` with an explicit runtime file list.
|
|
58
|
+
- Add `setup` and support running the installed demo outside the source checkout.
|
|
59
|
+
- Add `init --url` to create an editable story without overwriting existing files.
|
|
60
|
+
- Improve skill task matching, input/output guidance and installation instructions.
|
|
61
|
+
- Exclude password field values from page plans and logs.
|
|
62
|
+
- Scroll targets into view before browser interactions and use the demo server's actual port.
|
|
63
|
+
- Validate packaged installation, recording and rendering on Linux, Windows and macOS.
|
|
64
|
+
|
|
65
|
+
## 0.1.0 — 2026-11-04
|
|
66
|
+
|
|
67
|
+
First public version.
|
|
68
|
+
|
|
69
|
+
### Added
|
|
70
|
+
|
|
71
|
+
- `plan` — screenshot and inventory buttons, links and inputs
|
|
72
|
+
- `record` — Playwright recording with a fake cursor, click ripple and events
|
|
73
|
+
- `render` — 1080p MP4, GIF and poster with auto-zoom, captions, browser frame
|
|
74
|
+
and a generated background
|
|
75
|
+
- 9:16 vertical export (`--vertical`) with a card frame, top label and larger
|
|
76
|
+
bottom captions
|
|
77
|
+
- Configurable vertical badge, title lines, subtitle and CTA
|
|
78
|
+
- Captions stay on screen until the next caption for easier reading
|
|
79
|
+
- Screen-recording input (`--video` + normalized `marks`) for sites that block
|
|
80
|
+
automation and for desktop/mobile apps
|
|
81
|
+
- `drag` steps for sliders, carousels and comparison handles
|
|
82
|
+
- Automatic CJK font selection for Chinese captions
|
|
83
|
+
- Page-load pre-roll is trimmed from the final video
|
|
84
|
+
- `demo` — one-command end-to-end demo on the bundled app
|
|
85
|
+
- `doctor` — Node, Chromium, ffmpeg, ffprobe and font checks
|
|
86
|
+
- Login flow via `--login` and reusable `auth.json`
|
|
87
|
+
- Story format: `wait`, `goto`, `click`, `type`, `hover`, `scroll`, `press`,
|
|
88
|
+
`waitFor`, `screenshot`
|
|
89
|
+
- Agent skill instructions in `SKILL.md`
|
|
90
|
+
- Demo site, hero GIF/MP4 and architecture diagram
|
|
91
|
+
|
|
92
|
+
### Known limitations
|
|
93
|
+
|
|
94
|
+
- Screen-recording marks are manual; automatic click detection is not included
|
|
95
|
+
- No voiceover or music
|
package/README.md
CHANGED
|
@@ -8,29 +8,60 @@ English · [简体中文](README.zh-CN.md)
|
|
|
8
8
|
[](SKILL.md)
|
|
9
9
|
[](https://github.com/gnawbit/tabretake/stargazers)
|
|
10
10
|
|
|
11
|
-
**
|
|
11
|
+
**Automate your web app demos. Never manually record and edit a screen again.**
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Turn editable JSON steps or AI Agent instructions into crisp **16:9 README GIFs** and **9:16 portrait launch videos** — complete with smooth click zooms, cursor ripples, and unoccluded bottom captions. When your UI changes, re-run with one command.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
<img src="docs/hero.gif" alt="TabRetake recording Vikunja: creating a task, dragging it across a Kanban board, and zooming into the result" width="100%">
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
the
|
|
20
|
-
|
|
17
|
+
*Recorded on [Vikunja v2.8.0](https://github.com/go-vikunja/vikunja) (15k★ open-source Kanban): Type a task, drag it into Doing on a live board, and automatically focus on the result. Generates 16:9 MP4, README GIF and 9:16 portrait video in seconds.*
|
|
18
|
+
|
|
19
|
+
[Project page](https://gnawbit.github.io/tabretake/) · [Watch the demo](docs/hero.mp4) · [Install](#install) · [How it works](#how-it-works) · [Real Showcase](#-real-world-showcase-proven-on-production-open-source-apps) · [Roadmap](#roadmap)
|
|
20
|
+
|
|
21
|
+
### 📊 Technical Specs at a Glance
|
|
22
|
+
|
|
23
|
+
| Spec | Value |
|
|
24
|
+
|---|---|
|
|
25
|
+
| **Runtime & License** | Node.js `>=20.9.0`, MIT License, 100% local execution (zero cloud upload, zero telemetry) |
|
|
26
|
+
| **Browser Engine** | Playwright Chromium with automatic fallback to local **Chrome / Edge** (`--browser auto`) |
|
|
27
|
+
| **Input Modes** | (1) Live Web URL + editable JSON steps (`init --auto`) · (2) Existing MP4/WebM recording + JSON `marks` |
|
|
28
|
+
| **Output Artifacts** | `16:9` 1080p MP4, `README GIF` (~400–900 KB), `9:16` portrait MP4/GIF, PNG posters, `record.json` |
|
|
29
|
+
| **Theme Presets** | `midnight` (dark studio), `daylight` (light minimal), `paper` (warm cream), `slate` (slate-emerald) |
|
|
30
|
+
| **Platforms & Agents** | Windows, macOS, Linux · Claude Code, Codex, Cursor, and any [Agent Skills](https://agentskills.io) client |
|
|
31
|
+
|
|
32
|
+
### ⚡ Why TabRetake vs Traditional Screen Recording?
|
|
33
|
+
|
|
34
|
+
| Challenge | Traditional Screen Recording | TabRetake Automated Workflow |
|
|
35
|
+
|---|---|---|
|
|
36
|
+
| **UI Changes** | Re-record manually, re-edit, re-export (2+ hours) | Edit 1 line of JSON or ask your agent (`tabretake render`, 10s) |
|
|
37
|
+
| **Mobile (9:16)** | Clunky manual cropping or separate recording | Simultaneous 16:9 + 9:16 export with independent focus zoom |
|
|
38
|
+
| **Captions** | Text overlays obstructing interactive UI elements | Dedicated bottom caption band fitted to source aspect ratio |
|
|
39
|
+
| **Automation** | Purely manual busywork | Headless Playwright CLI + AI Coding Agents (Claude Code, Cursor, Codex) |
|
|
21
40
|
|
|
22
41
|
Keep the story with your code and re-run it when the UI changes.
|
|
23
42
|
Already have a screen recording? Supply timestamp marks to
|
|
24
43
|
[render the same outputs without browser automation](#use-an-existing-screen-recording).
|
|
25
44
|
|
|
26
|
-
|
|
27
|
-
|
|
45
|
+
### 🚀 Quick Taste (Zero-Wait with Local Chrome/Edge)
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
npm install --global @gnawbit/tabretake@0.4.2
|
|
49
|
+
tabretake demo --preset daylight
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
> Already have Chrome or Edge installed? `tabretake demo` works immediately without waiting for a separate browser download. Run `tabretake setup` anytime if you want Playwright's pinned Chromium.
|
|
53
|
+
|
|
54
|
+
### 🎯 Real-World Showcase: Proven on Production Open-Source Apps
|
|
28
55
|
|
|
29
|
-
|
|
30
|
-
visibility, Skill selection and successful output; they are not adoption metrics.
|
|
56
|
+
No synthetic AI mockups. TabRetake is verified against real-world, complex DOMs and interactive components:
|
|
31
57
|
|
|
32
|
-
|
|
33
|
-
|
|
58
|
+
| 📋 [Vikunja](https://gnawbit.github.io/tabretake/vikunja/) (15k★ Kanban) | ✍️ [Memos](https://gnawbit.github.io/tabretake/memos/) (35k★ Notes) | 📝 [TodoMVC](https://gnawbit.github.io/tabretake/todomvc/) (Web Benchmark) |
|
|
59
|
+
|:---:|:---:|:---:|
|
|
60
|
+
| <a href="https://gnawbit.github.io/tabretake/vikunja/"><img src="docs/poster.png" alt="Vikunja Kanban" width="100%"></a> | <a href="https://gnawbit.github.io/tabretake/memos/"><img src="docs/examples/memos.png" alt="Memos Note-Taking" width="100%"></a> | <a href="https://gnawbit.github.io/tabretake/todomvc/"><img src="docs/examples/todomvc.png" alt="TodoMVC Benchmark" width="100%"></a> |
|
|
61
|
+
| **Kanban Drag & Drop**<br>Card movement & destination focus | **Rich Text & Search**<br>Live contenteditable & tag search | **Standard Task Filtering**<br>Clean ES6 multi-state walkthrough |
|
|
62
|
+
| [Story JSON](site/vikunja/story.json) · [Recipe](https://gnawbit.github.io/tabretake/vikunja/) | [Story JSON](site/memos/story.json) · [Recipe](https://gnawbit.github.io/tabretake/memos/) | [Story JSON](site/todomvc/story.json) · [Recipe](https://gnawbit.github.io/tabretake/todomvc/) |
|
|
63
|
+
|
|
64
|
+
> Works locally on Windows, macOS and Linux. Supports Claude Code, Codex, Cursor and any agent that supports [Agent Skills](https://agentskills.io).
|
|
34
65
|
|
|
35
66
|
---
|
|
36
67
|
|
|
@@ -66,22 +97,21 @@ edit and run again after a release.
|
|
|
66
97
|
|
|
67
98
|
## Install
|
|
68
99
|
|
|
69
|
-
Install the CLI from
|
|
100
|
+
Install the CLI from npm.
|
|
70
101
|
|
|
71
102
|
```bash
|
|
72
|
-
npm install --global
|
|
73
|
-
tabretake setup
|
|
103
|
+
npm install --global @gnawbit/tabretake@0.4.2
|
|
74
104
|
tabretake demo
|
|
75
105
|
```
|
|
76
106
|
|
|
77
|
-
Requires Node 20.9
|
|
78
|
-
the bundled demo writes its output to `./demo`.
|
|
79
|
-
|
|
80
|
-
|
|
107
|
+
Requires Node 20.9+. Run `tabretake` from your working directory;
|
|
108
|
+
the bundled demo writes its output to `./demo`. If Playwright Chromium is not
|
|
109
|
+
installed, TabRetake automatically falls back to local Chrome or Edge
|
|
110
|
+
(`--browser auto`). Run `tabretake setup` (or `tabretake setup --with-deps` on Linux)
|
|
111
|
+
to install Playwright's pinned Chromium. ffmpeg and ffprobe are included as dependencies.
|
|
81
112
|
|
|
82
|
-
|
|
83
|
-
`v0.
|
|
84
|
-
Skill. Existing JSON stories work with `tabretake`.
|
|
113
|
+
The npm package is [`@gnawbit/tabretake`](https://www.npmjs.com/package/@gnawbit/tabretake).
|
|
114
|
+
For legacy release notes (`v0.4.0` and earlier / `demo-reel`), see [compatibility](docs/compatibility.md).
|
|
85
115
|
|
|
86
116
|
For development, install from a checkout:
|
|
87
117
|
|
|
@@ -89,7 +119,6 @@ For development, install from a checkout:
|
|
|
89
119
|
git clone https://github.com/gnawbit/tabretake
|
|
90
120
|
cd tabretake
|
|
91
121
|
npm ci
|
|
92
|
-
node bin/tabretake.mjs setup
|
|
93
122
|
node bin/tabretake.mjs doctor
|
|
94
123
|
```
|
|
95
124
|
|
|
@@ -99,7 +128,7 @@ replace `node bin/tabretake.mjs` with `tabretake`.
|
|
|
99
128
|
To add the agent workflow after setting up the CLI:
|
|
100
129
|
|
|
101
130
|
```bash
|
|
102
|
-
npx skills@1.9.0 add "https://github.com/gnawbit/tabretake.git#v0.4.
|
|
131
|
+
npx skills@1.9.0 add "https://github.com/gnawbit/tabretake.git#v0.4.2" --skill tabretake
|
|
103
132
|
```
|
|
104
133
|
|
|
105
134
|
Run this in the target project; add `--agent codex`, `--agent claude-code` or
|
|
@@ -110,7 +139,7 @@ or a source checkout. Install the CLI and Skill from the same revision.
|
|
|
110
139
|
Claude Code users can install the plugin instead (CLI 2.1.292+):
|
|
111
140
|
|
|
112
141
|
```bash
|
|
113
|
-
claude plugin install tabretake --marketplace "gnawbit/tabretake#v0.4.
|
|
142
|
+
claude plugin install tabretake --marketplace "gnawbit/tabretake#v0.4.2"
|
|
114
143
|
```
|
|
115
144
|
|
|
116
145
|
Install the workflow through one of these routes; the plugin still needs the
|
|
@@ -135,20 +164,15 @@ node bin/tabretake.mjs doctor
|
|
|
135
164
|
# 2. See it work on the bundled demo app
|
|
136
165
|
node bin/tabretake.mjs demo
|
|
137
166
|
|
|
138
|
-
# 3. Use it on your own app
|
|
139
|
-
|
|
140
|
-
|
|
167
|
+
# 3. Use it on your own app (Auto-detect interactive steps + theme preset)
|
|
168
|
+
tabretake init --url https://your-app.com --auto --preset daylight
|
|
169
|
+
tabretake record --config demo.json
|
|
170
|
+
tabretake render --config demo/record.json --vertical
|
|
141
171
|
```
|
|
142
172
|
|
|
143
|
-
|
|
144
|
-
`
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
From v0.3.3, plans include a `label` from ARIA references or
|
|
148
|
-
HTML labels and native select `options` with `label`, `value` and `disabled`.
|
|
149
|
-
Use these to identify controls;
|
|
150
|
-
`name` remains the HTML attribute and `selector` is the suggested CSS locator.
|
|
151
|
-
This is a DOM inventory, not a complete accessibility tree.
|
|
173
|
+
`init --auto` scans your target page, detects visible inputs and buttons, and generates a runnable multi-step story with captions.
|
|
174
|
+
Without `--auto`, `init` creates a minimal starter waiting on the page. Use `plan --url <url>` to inventory all available DOM controls (including ARIA/HTML `label` and native select `options`).
|
|
175
|
+
`name` remains the HTML attribute and `selector` is the suggested CSS locator; this is a DOM inventory rather than a full accessibility tree.
|
|
152
176
|
|
|
153
177
|
```bash
|
|
154
178
|
node bin/tabretake.mjs record --config demo.json
|
|
@@ -230,19 +254,14 @@ Preview checks browser actions. Use a rendered clip to check zooms and captions.
|
|
|
230
254
|
Actions: `wait`, `goto`, `click`, `type`, `hover`, `focus`, `drag`, `scroll`, `press`,
|
|
231
255
|
`waitFor`, `screenshot`.
|
|
232
256
|
|
|
233
|
-
|
|
234
|
-
Set step `timeout` in milliseconds (default 20,000); blocked clicks return
|
|
235
|
-
`STEP_TIMEOUT`. v0.3.2 and earlier do not reliably wait for clickable targets.
|
|
257
|
+
`click` waits for an enabled, unobstructed target up to `timeout` (milliseconds, default 20,000; blocked clicks return `STEP_TIMEOUT`).
|
|
236
258
|
|
|
237
259
|
Locator fields are `selector`, `role` + `name` (or `text`), `name`, or `text`.
|
|
238
|
-
An explicit `selector` is tried first.
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
repeat or overlap. On v0.3.3 and earlier, a partial button label can beat an
|
|
244
|
-
exact link label: use `selector: "a[href='#/completed']"` instead of just
|
|
245
|
-
`text: "Completed"` when a “Clear completed” button is also present.
|
|
260
|
+
An explicit `selector` is tried first. Label matching tries exact buttons/links,
|
|
261
|
+
then partial buttons/links, then plain text (exact before partial). An explicit
|
|
262
|
+
`role` restricts matching to that role, with exact names first. Each candidate
|
|
263
|
+
keeps the first visible match; use a scoped selector when labels repeat or overlap.
|
|
264
|
+
See [compatibility](docs/compatibility.md) for legacy matching behavior.
|
|
246
265
|
|
|
247
266
|
Tips:
|
|
248
267
|
|
|
@@ -271,11 +290,14 @@ For an existing timeline, `render --config demo/record.json --poster-at 4.5`
|
|
|
271
290
|
overrides that setting without recording again. Times are seconds into the
|
|
272
291
|
trimmed output, starting at zero, and must be shorter than the video.
|
|
273
292
|
|
|
274
|
-
###
|
|
293
|
+
### Theme presets & vertical branding
|
|
275
294
|
|
|
276
|
-
|
|
295
|
+
Choose a built-in `brand.preset` (`midnight`, `daylight`, `paper`, or `slate`) in your config or override it at render time with `--preset <name>`. Explicit `brand.background` and `brand.accent` override preset colors unless `--preset` is passed on the CLI.
|
|
277
296
|
|
|
278
297
|
```json
|
|
298
|
+
"brand": {
|
|
299
|
+
"preset": "daylight"
|
|
300
|
+
},
|
|
279
301
|
"vertical": {
|
|
280
302
|
"badge": "Your product",
|
|
281
303
|
"titleLines": ["Ship faster", "without the busywork"],
|
|
@@ -288,10 +310,13 @@ The 9:16 output can carry a custom hook and CTA:
|
|
|
288
310
|
`titleLines` is capped at two lines. `watermark: false` removes the small
|
|
289
311
|
TabRetake mark. Chinese text automatically uses a CJK font.
|
|
290
312
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
313
|
+
Both 16:9 landscape and 9:16 portrait outputs fit the source video's aspect ratio
|
|
314
|
+
and reserve dedicated space below the content for captions. For a mobile flow,
|
|
315
|
+
inspect with `plan --viewport 390x844`, then record at the same viewport.
|
|
316
|
+
Use `--vertical --zoom 1 --vertical-zoom 1.8` to keep landscape overview while
|
|
317
|
+
enlarging portrait focus targets (`vertical.zoom` saves it in config; the CLI flag
|
|
318
|
+
takes precedence). Steps with `zoom: false` keep the full view. Review the result
|
|
319
|
+
for cropped context.
|
|
295
320
|
|
|
296
321
|
## Commands
|
|
297
322
|
|
|
@@ -301,62 +326,48 @@ crop around focus points. Wide desktop recordings may still have small text.
|
|
|
301
326
|
| `tabretake capabilities --json` | List supported commands, flags and JSON support |
|
|
302
327
|
| `tabretake doctor [--json]` | Check Node, Chromium, ffmpeg, fonts |
|
|
303
328
|
| `tabretake setup` | Install the Chromium version used by this CLI |
|
|
304
|
-
| `tabretake init --url <url
|
|
329
|
+
| `tabretake init --url <url> [--auto] [--preset <name>]` | Create an editable story file (`--auto` scans controls; `--preset` sets theme) |
|
|
305
330
|
| `tabretake validate --config demo.json [--json]` | Validate a story, marks or recorded timeline without recording |
|
|
306
331
|
| `tabretake plan --url <url>` | Screenshot + list interactive elements |
|
|
307
332
|
| `tabretake record --config demo.json` | Record the story |
|
|
308
333
|
| `tabretake preview --config demo.json` | Execute steps in a visible browser before recording |
|
|
309
|
-
| `tabretake render --config demo/record.json` | Render MP4 + GIF |
|
|
334
|
+
| `tabretake render --config demo/record.json [--preset <name>]` | Render MP4 + GIF |
|
|
310
335
|
| `tabretake serve` | Serve the bundled demo app |
|
|
311
|
-
| `tabretake demo` | Record + render the bundled demo |
|
|
336
|
+
| `tabretake demo [--preset <name>]` | Record + render the bundled demo |
|
|
337
|
+
|
|
338
|
+
### 🏷️ Project Badge
|
|
339
|
+
|
|
340
|
+
If your repository uses TabRetake to generate its release walkthroughs or README GIFs, you can add our badge:
|
|
341
|
+
|
|
342
|
+
```markdown
|
|
343
|
+
[](https://github.com/gnawbit/tabretake)
|
|
344
|
+
```
|
|
312
345
|
|
|
313
346
|
For agents, `capabilities --json` and `doctor --json` emit one JSON object on
|
|
314
347
|
stdout with `schemaVersion: 1` and the installed version. Diagnostic checks have
|
|
315
348
|
stable `id`, `required`, `status` and recovery `hint` fields on failure. Exit code
|
|
316
349
|
`1` means a required check failed; missing caption fonts are warnings (exit `0`
|
|
317
|
-
if required checks pass).
|
|
318
|
-
JSON workflows and validation require v0.3.0 or newer.
|
|
350
|
+
if required checks pass). Browser presence is checked without launching a window.
|
|
319
351
|
|
|
320
352
|
`doctor` checks the whole toolkit. Rendering an existing recording or saved
|
|
321
|
-
timeline does not need
|
|
353
|
+
timeline does not need a browser: if `chromium` is the only failed required
|
|
322
354
|
check, skip browser setup and continue with `validate` and `render`; fix other
|
|
323
|
-
required errors first. Browser planning and recording
|
|
324
|
-
|
|
325
|
-
Before recording, run `validate --config demo.json --json`. It checks types,
|
|
326
|
-
supported actions, required targets and unknown fields against the packaged
|
|
327
|
-
[JSON Schema](schemas/story.schema.json). Failures return exit `1` and errors
|
|
328
|
-
with a `code`, JSON Pointer `path` (for example `/steps/0/action`), `message` and
|
|
329
|
-
`hint`. Invalid JSON and unreadable files use an `error` object. Validation
|
|
330
|
-
does not open the browser or check selectors, login state or media files.
|
|
331
|
-
`record` and `render` also validate their input before changing output files.
|
|
332
|
-
For editor completion, add `"$schema": "https://raw.githubusercontent.com/gnawbit/tabretake/main/schemas/story.schema.json"`
|
|
333
|
-
to the config.
|
|
334
|
-
|
|
335
|
-
Useful flags:
|
|
336
|
-
|
|
337
|
-
`init`, `plan`, `record` and `render` also accept `--json`: stdout contains one
|
|
338
|
-
result object and progress goes to stderr. Success includes `command`, `ok`,
|
|
339
|
-
`version`, `schemaVersion` and an `artifacts` list with absolute paths, kinds and
|
|
340
|
-
byte sizes. Recording failures include a zero-based `error.step.index`, action,
|
|
341
|
-
JSON Pointer path and recovery hint. Fix the reported step before retrying.
|
|
342
|
-
Run manual `--login` in an interactive terminal without `--json`, then reuse
|
|
343
|
-
`--storage-state` in automation. Failed runs may leave partial files; only a
|
|
344
|
-
successful result's artifact list confirms the current run's outputs.
|
|
355
|
+
required errors first. Browser planning and recording require Chromium or local Chrome/Edge.
|
|
345
356
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
dependencies; it cannot establish that an app is reachable.
|
|
351
|
-
|
|
352
|
-
From v0.3.2, manual `--login` navigation failures also omit the target URL.
|
|
353
|
-
HTTP 401/403 pages remain open for sign-in; other HTTP errors stop the command.
|
|
357
|
+
Before recording, run `validate --config demo.json --json` against the packaged
|
|
358
|
+
[JSON Schema](schemas/story.schema.json) (`record` and `render` also validate before writing outputs).
|
|
359
|
+
For editor completion, add `"$schema": "https://raw.githubusercontent.com/gnawbit/tabretake/main/schemas/story.schema.json"`
|
|
360
|
+
to your config.
|
|
354
361
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
362
|
+
`init`, `plan`, `record` and `render` accept `--json` (one JSON result object on stdout, progress on stderr).
|
|
363
|
+
Navigation failures return `PAGE_UNREACHABLE` or `PAGE_HTTP_ERROR` without echoing sensitive URLs;
|
|
364
|
+
captions start when an action completes and hold during its `pause`.
|
|
365
|
+
Run manual `--login` in an interactive terminal without `--json`, then reuse `--storage-state` in automation.
|
|
366
|
+
See [compatibility](docs/compatibility.md) for legacy version behavior (`v0.4.0` and earlier).
|
|
358
367
|
|
|
359
368
|
```bash
|
|
369
|
+
--browser auto # auto (bundled Chromium or local Chrome/Edge), chromium, chrome, msedge
|
|
370
|
+
--preset daylight # midnight (default), daylight, paper, slate
|
|
360
371
|
--login # open a visible browser, log in once
|
|
361
372
|
--storage-state auth.json
|
|
362
373
|
--proxy http://127.0.0.1:10808
|
|
@@ -412,12 +423,13 @@ Run **Actions → Regenerate TodoMVC demo → Run workflow** in your fork.
|
|
|
412
423
|
For your own app, replace its checkout/start command, readiness URL and story.
|
|
413
424
|
Keep demo data disposable. Review the generated assets before publishing them.
|
|
414
425
|
|
|
415
|
-
| Example | Story | Output |
|
|
416
|
-
|
|
417
|
-
|
|
|
426
|
+
| Real-World Example | Upstream Project | Story | Output |
|
|
427
|
+
|---|---|---|---|
|
|
428
|
+
| Vikunja Kanban (Hero) | [go-vikunja/vikunja](https://github.com/go-vikunja/vikunja) (15k★) | [site/vikunja/story.json](site/vikunja/story.json) | [16:9 MP4](docs/hero.mp4) · [9:16 MP4](docs/hero-9x16.mp4) · [GIF](docs/hero.gif) |
|
|
429
|
+
| Memos Knowledge Base | [usememos/memos](https://github.com/usememos/memos) (35k★) | [site/memos/story.json](site/memos/story.json) | [GIF](docs/examples/memos.gif) · [Poster](docs/examples/memos.png) |
|
|
430
|
+
| TodoMVC Benchmark | [tastejs/todomvc](https://github.com/tastejs/todomvc) (ES6) | [site/todomvc/story.json](site/todomvc/story.json) | [GIF](docs/examples/todomvc.gif) · [Poster](docs/examples/todomvc.png) |
|
|
418
431
|
|
|
419
|
-
|
|
420
|
-
for a README GIF, first-project onboarding and repeatable release assets.
|
|
432
|
+
For zero-dependency local testing without installing upstream apps, TabRetake also includes three bundled demo presets (readme, onboarding, release):
|
|
421
433
|
Run a preset from the source checkout (or use the installed `tabretake` command):
|
|
422
434
|
|
|
423
435
|
```bash
|
|
@@ -515,9 +527,9 @@ are yours or licensed.
|
|
|
515
527
|
|
|
516
528
|
- [x] 9:16 vertical export
|
|
517
529
|
- [x] Screen-recording input (`--video` + `marks`)
|
|
530
|
+
- [x] Brand presets (`midnight`, `daylight`, `paper`, `slate`)
|
|
518
531
|
- [ ] Voiceover (TTS)
|
|
519
532
|
- [ ] Device frames (iPhone, Android, macOS)
|
|
520
|
-
- [ ] Brand presets
|
|
521
533
|
- [ ] Cloud rendering
|
|
522
534
|
|
|
523
535
|
## Contributing
|