@gnawbit/tabretake 0.4.1 → 0.5.0
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 +103 -89
- package/README.md +82 -93
- package/README.zh-CN.md +72 -81
- package/SKILL.md +47 -67
- package/examples/site/style.css +81 -71
- package/examples/story.json +1 -2
- package/package.json +9 -1
- package/references/rendering.md +6 -1
- package/references/story.md +2 -1
- package/schemas/story.schema.json +632 -616
- package/scripts/capture.mjs +610 -0
- package/scripts/cli.mjs +26 -9
- package/scripts/demo.mjs +7 -1
- package/scripts/doctor.mjs +11 -3
- package/scripts/init.mjs +73 -25
- package/scripts/lib/browser.mjs +165 -13
- package/scripts/lib/captions.mjs +8 -3
- package/scripts/lib/options.mjs +71 -0
- package/scripts/lib/report.mjs +1 -0
- package/scripts/lib/system-browser.mjs +30 -0
- package/scripts/lib/themes.mjs +125 -0
- package/scripts/mark.mjs +503 -0
- package/scripts/plan.mjs +35 -35
- package/scripts/record.mjs +67 -40
- package/scripts/render.mjs +128 -55
- package/scripts/run.mjs +55 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,89 +1,103 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## 0.
|
|
4
|
-
|
|
5
|
-
- Add `
|
|
6
|
-
-
|
|
7
|
-
- Add `
|
|
8
|
-
-
|
|
9
|
-
- Add
|
|
10
|
-
|
|
11
|
-
## 0.4.
|
|
12
|
-
|
|
13
|
-
- Add
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
## 0.
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.5.0 — 2026-11-26
|
|
4
|
+
|
|
5
|
+
- Add `tabretake capture` interactive recorder so users can click, type, select, and pin `focus` steps directly in a browser window to generate an editable `story.json` (with automatic password field skipping).
|
|
6
|
+
- Add `tabretake run` to validate, record, and render in a single command (supporting story, marks, and recorded timelines).
|
|
7
|
+
- Add `tabretake mark` local visual video marker studio for click-to-mark timestamps and normalized `(x, y)` coordinates on existing screen recordings.
|
|
8
|
+
- Upgrade `init --auto` element scoring to skip empty navigation links and destructive buttons while prioritizing main form/CTA controls and native `<select>` elements.
|
|
9
|
+
- Add `select` story step action, HiDPI `--scale 2` / `"scale": 2` recording, theme-matched cursor click ripples, rounded content corner masks, and `brand.frame` (`auto`, `browser`, `phone`, `none`).
|
|
10
|
+
|
|
11
|
+
## 0.4.2 — 2026-11-26
|
|
12
|
+
|
|
13
|
+
- 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`.
|
|
14
|
+
- Add four built-in `brand.preset` / `--preset` themes (`midnight`, `daylight`, `paper`, `slate`) with high-contrast light/dark caption and window chrome styling.
|
|
15
|
+
- 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.
|
|
16
|
+
|
|
17
|
+
## 0.4.1 — 2026-11-24
|
|
18
|
+
|
|
19
|
+
- Add `init --auto` to automatically scan target web pages and generate runnable interactive steps.
|
|
20
|
+
- Fit landscape recordings to their source aspect ratio and place captions below the content so captions never occlude UI interactions.
|
|
21
|
+
- Add `vertical.zoom` and `--vertical-zoom` to enlarge portrait focus targets independently of landscape output.
|
|
22
|
+
- Use the published npm package as the primary CLI installation route.
|
|
23
|
+
- Add adoption measurement baseline and trial feedback issue template.
|
|
24
|
+
|
|
25
|
+
## 0.4.0 — 2026-11-23
|
|
26
|
+
|
|
27
|
+
- Add story preview with step progress, JSON diagnostics and recording preservation, plus an explicit focus action for result elements.
|
|
28
|
+
- Include rich-text editors and ARIA textboxes in page plans.
|
|
29
|
+
|
|
30
|
+
- 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`.
|
|
31
|
+
- Add pinned Vikunja and Memos reproduction recipes and a manually triggered TodoMVC recording workflow with downloadable artifacts.
|
|
32
|
+
- 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.
|
|
33
|
+
|
|
34
|
+
## 0.3.3 — 2026-11-23
|
|
35
|
+
|
|
36
|
+
- Wait for click targets to become actionable and report blocked clicks as step timeouts instead of successful recordings.
|
|
37
|
+
- Include form labels and native select options in page plans so Agents can identify controls without guessing from field values.
|
|
38
|
+
|
|
39
|
+
## 0.3.2 — 2026-11-23
|
|
40
|
+
|
|
41
|
+
- Redact target URLs from manual login navigation failures while keeping HTTP 401/403 pages available for sign-in.
|
|
42
|
+
- Fit portrait cards to the source aspect ratio so mobile and ultrawide recordings retain their edges at overview zoom.
|
|
43
|
+
- Clarify rendering prerequisites and platform-neutral publishing examples; correct native Agent evaluation failure evidence.
|
|
44
|
+
|
|
45
|
+
## 0.3.1 — 2026-11-23
|
|
46
|
+
|
|
47
|
+
- Start captions before action pauses so the pause provides reading time. Re-record older stories to adopt the corrected timestamps.
|
|
48
|
+
- Distinguish unreachable pages from HTTP errors, preserve failed navigation step locations and avoid echoing target URLs in these errors.
|
|
49
|
+
- Clarify public discovery and installation entrypoints; record independent Agent smoke tests with their limitations.
|
|
50
|
+
|
|
51
|
+
## 0.3.0 — 2026-11-23
|
|
52
|
+
|
|
53
|
+
- Shorten the Skill entrypoint with focused references; add client metadata, a plugin icon and verified installation guidance.
|
|
54
|
+
- Add JSON results and artifact manifests for init, plan, record and render; report failed recording steps and require interactive manual login.
|
|
55
|
+
- Upgrade Sharp to 0.35.5 for patched image libraries; require Node.js 20.9 or newer.
|
|
56
|
+
- Validate stories, marks and recorded timelines before execution; add a packaged JSON Schema and field-level JSON diagnostics.
|
|
57
|
+
- Add machine-readable diagnostics, version and capability queries; keep diagnostics usable when dependencies are missing.
|
|
58
|
+
- Wrap captions within the frame, prevent overlaps and preserve recording brightness under decorative frames.
|
|
59
|
+
- Ease click zooms and pans without cutting the timeline; configure timing with `zoomDuration` or `--zoom-duration`.
|
|
60
|
+
- Select poster frames with `posterAt` or `--poster-at`; default to a frame near the end and support short clips.
|
|
61
|
+
- Add runnable README GIF, onboarding and release demo recipes with `demo --story`.
|
|
62
|
+
|
|
63
|
+
## 0.2.0 — 2026-11-20
|
|
64
|
+
|
|
65
|
+
- Package the CLI as `@gnawbit/demo-reel` with an explicit runtime file list.
|
|
66
|
+
- Add `setup` and support running the installed demo outside the source checkout.
|
|
67
|
+
- Add `init --url` to create an editable story without overwriting existing files.
|
|
68
|
+
- Improve skill task matching, input/output guidance and installation instructions.
|
|
69
|
+
- Exclude password field values from page plans and logs.
|
|
70
|
+
- Scroll targets into view before browser interactions and use the demo server's actual port.
|
|
71
|
+
- Validate packaged installation, recording and rendering on Linux, Windows and macOS.
|
|
72
|
+
|
|
73
|
+
## 0.1.0 — 2026-11-04
|
|
74
|
+
|
|
75
|
+
First public version.
|
|
76
|
+
|
|
77
|
+
### Added
|
|
78
|
+
|
|
79
|
+
- `plan` — screenshot and inventory buttons, links and inputs
|
|
80
|
+
- `record` — Playwright recording with a fake cursor, click ripple and events
|
|
81
|
+
- `render` — 1080p MP4, GIF and poster with auto-zoom, captions, browser frame
|
|
82
|
+
and a generated background
|
|
83
|
+
- 9:16 vertical export (`--vertical`) with a card frame, top label and larger
|
|
84
|
+
bottom captions
|
|
85
|
+
- Configurable vertical badge, title lines, subtitle and CTA
|
|
86
|
+
- Captions stay on screen until the next caption for easier reading
|
|
87
|
+
- Screen-recording input (`--video` + normalized `marks`) for sites that block
|
|
88
|
+
automation and for desktop/mobile apps
|
|
89
|
+
- `drag` steps for sliders, carousels and comparison handles
|
|
90
|
+
- Automatic CJK font selection for Chinese captions
|
|
91
|
+
- Page-load pre-roll is trimmed from the final video
|
|
92
|
+
- `demo` — one-command end-to-end demo on the bundled app
|
|
93
|
+
- `doctor` — Node, Chromium, ffmpeg, ffprobe and font checks
|
|
94
|
+
- Login flow via `--login` and reusable `auth.json`
|
|
95
|
+
- Story format: `wait`, `goto`, `click`, `type`, `hover`, `scroll`, `press`,
|
|
96
|
+
`waitFor`, `screenshot`
|
|
97
|
+
- Agent skill instructions in `SKILL.md`
|
|
98
|
+
- Demo site, hero GIF/MP4 and architecture diagram
|
|
99
|
+
|
|
100
|
+
### Known limitations
|
|
101
|
+
|
|
102
|
+
- Screen-recording marks are manual; automatic click detection is not included
|
|
103
|
+
- No voiceover or music
|
package/README.md
CHANGED
|
@@ -18,6 +18,17 @@ Turn editable JSON steps or AI Agent instructions into crisp **16:9 README GIFs*
|
|
|
18
18
|
|
|
19
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
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) Interactive browser `capture`, `init --auto`, or editable JSON steps · (2) Existing MP4/WebM + visual `mark` studio |
|
|
28
|
+
| **Output Artifacts** | `16:9` 1080p MP4, `README GIF` (~400–900 KB), `9:16` portrait MP4/GIF, PNG posters, `record.json` (1x or 2x HiDPI `--scale 2`) |
|
|
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
|
+
|
|
21
32
|
### ⚡ Why TabRetake vs Traditional Screen Recording?
|
|
22
33
|
|
|
23
34
|
| Challenge | Traditional Screen Recording | TabRetake Automated Workflow |
|
|
@@ -31,14 +42,15 @@ Keep the story with your code and re-run it when the UI changes.
|
|
|
31
42
|
Already have a screen recording? Supply timestamp marks to
|
|
32
43
|
[render the same outputs without browser automation](#use-an-existing-screen-recording).
|
|
33
44
|
|
|
34
|
-
### 🚀 Quick Taste (
|
|
45
|
+
### 🚀 Quick Taste (Zero-Wait with Local Chrome/Edge)
|
|
35
46
|
|
|
36
47
|
```bash
|
|
37
|
-
npm install --global @gnawbit/tabretake@0.
|
|
38
|
-
tabretake
|
|
39
|
-
tabretake demo
|
|
48
|
+
npm install --global @gnawbit/tabretake@0.5.0
|
|
49
|
+
tabretake demo --preset daylight
|
|
40
50
|
```
|
|
41
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
|
+
|
|
42
54
|
### 🎯 Real-World Showcase: Proven on Production Open-Source Apps
|
|
43
55
|
|
|
44
56
|
No synthetic AI mockups. TabRetake is verified against real-world, complex DOMs and interactive components:
|
|
@@ -88,19 +100,18 @@ edit and run again after a release.
|
|
|
88
100
|
Install the CLI from npm.
|
|
89
101
|
|
|
90
102
|
```bash
|
|
91
|
-
npm install --global @gnawbit/tabretake@0.
|
|
92
|
-
tabretake setup
|
|
103
|
+
npm install --global @gnawbit/tabretake@0.5.0
|
|
93
104
|
tabretake demo
|
|
94
105
|
```
|
|
95
106
|
|
|
96
107
|
Requires Node 20.9+. Run `tabretake` from your working directory;
|
|
97
|
-
the bundled demo writes its output to `./demo`.
|
|
98
|
-
|
|
99
|
-
|
|
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.
|
|
100
112
|
|
|
101
|
-
The npm package is [`@gnawbit/tabretake`](https://www.npmjs.com/package/@gnawbit/tabretake).
|
|
102
|
-
`v0.
|
|
103
|
-
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).
|
|
104
115
|
|
|
105
116
|
For development, install from a checkout:
|
|
106
117
|
|
|
@@ -108,7 +119,6 @@ For development, install from a checkout:
|
|
|
108
119
|
git clone https://github.com/gnawbit/tabretake
|
|
109
120
|
cd tabretake
|
|
110
121
|
npm ci
|
|
111
|
-
node bin/tabretake.mjs setup
|
|
112
122
|
node bin/tabretake.mjs doctor
|
|
113
123
|
```
|
|
114
124
|
|
|
@@ -118,7 +128,7 @@ replace `node bin/tabretake.mjs` with `tabretake`.
|
|
|
118
128
|
To add the agent workflow after setting up the CLI:
|
|
119
129
|
|
|
120
130
|
```bash
|
|
121
|
-
npx skills@1.9.0 add "https://github.com/gnawbit/tabretake.git#v0.
|
|
131
|
+
npx skills@1.9.0 add "https://github.com/gnawbit/tabretake.git#v0.5.0" --skill tabretake
|
|
122
132
|
```
|
|
123
133
|
|
|
124
134
|
Run this in the target project; add `--agent codex`, `--agent claude-code` or
|
|
@@ -129,7 +139,7 @@ or a source checkout. Install the CLI and Skill from the same revision.
|
|
|
129
139
|
Claude Code users can install the plugin instead (CLI 2.1.292+):
|
|
130
140
|
|
|
131
141
|
```bash
|
|
132
|
-
claude plugin install tabretake --marketplace "gnawbit/tabretake#v0.
|
|
142
|
+
claude plugin install tabretake --marketplace "gnawbit/tabretake#v0.5.0"
|
|
133
143
|
```
|
|
134
144
|
|
|
135
145
|
Install the workflow through one of these routes; the plugin still needs the
|
|
@@ -154,20 +164,17 @@ node bin/tabretake.mjs doctor
|
|
|
154
164
|
# 2. See it work on the bundled demo app
|
|
155
165
|
node bin/tabretake.mjs demo
|
|
156
166
|
|
|
157
|
-
# 3.
|
|
158
|
-
tabretake
|
|
159
|
-
|
|
160
|
-
tabretake
|
|
167
|
+
# 3. Record your own app (choose interactive capture or auto-scan + one-command run)
|
|
168
|
+
tabretake capture --url https://your-app.com --out demo.json --run --vertical --preset daylight
|
|
169
|
+
# Or auto-scan DOM controls into an editable story, then run:
|
|
170
|
+
tabretake init --url https://your-app.com --auto --preset daylight
|
|
171
|
+
tabretake run --config demo.json --vertical --scale 2
|
|
161
172
|
```
|
|
162
173
|
|
|
163
|
-
`
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
HTML labels and native select `options` with `label`, `value` and `disabled`.
|
|
168
|
-
Use these to identify controls;
|
|
169
|
-
`name` remains the HTML attribute and `selector` is the suggested CSS locator.
|
|
170
|
-
This is a DOM inventory, not a complete accessibility tree.
|
|
174
|
+
`capture` opens a browser window so you can click, type, select, and pin focus points directly — saving an editable `demo.json` (never storing password values) and optionally rendering immediately with `--run`.
|
|
175
|
+
`init --auto` scans your target page, skips navigation dead links and destructive actions, prioritizes main form/CTA controls, and generates a runnable multi-step story with captions.
|
|
176
|
+
`run` validates, records, and renders in a single command (or accepts an existing `marks` or `record.json` config). You can also run `record` and `render` separately, or use `plan --url <url>` to inspect all DOM controls (including ARIA/HTML `label` and native select `options`).
|
|
177
|
+
`name` remains the HTML attribute and `selector` is the suggested CSS locator; this is a DOM inventory rather than a full accessibility tree.
|
|
171
178
|
|
|
172
179
|
```bash
|
|
173
180
|
node bin/tabretake.mjs record --config demo.json
|
|
@@ -246,22 +253,17 @@ Preview checks browser actions. Use a rendered clip to check zooms and captions.
|
|
|
246
253
|
}
|
|
247
254
|
```
|
|
248
255
|
|
|
249
|
-
Actions: `wait`, `goto`, `click`, `type`, `hover`, `focus`, `drag`, `scroll`, `press`,
|
|
256
|
+
Actions: `wait`, `goto`, `click`, `type`, `select`, `hover`, `focus`, `drag`, `scroll`, `press`,
|
|
250
257
|
`waitFor`, `screenshot`.
|
|
251
258
|
|
|
252
|
-
|
|
253
|
-
Set step `timeout` in milliseconds (default 20,000); blocked clicks return
|
|
254
|
-
`STEP_TIMEOUT`. v0.3.2 and earlier do not reliably wait for clickable targets.
|
|
259
|
+
`click` waits for an enabled, unobstructed target up to `timeout` (milliseconds, default 20,000; blocked clicks return `STEP_TIMEOUT`).
|
|
255
260
|
|
|
256
261
|
Locator fields are `selector`, `role` + `name` (or `text`), `name`, or `text`.
|
|
257
|
-
An explicit `selector` is tried first.
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
repeat or overlap. On v0.3.3 and earlier, a partial button label can beat an
|
|
263
|
-
exact link label: use `selector: "a[href='#/completed']"` instead of just
|
|
264
|
-
`text: "Completed"` when a “Clear completed” button is also present.
|
|
262
|
+
An explicit `selector` is tried first. Label matching tries exact buttons/links,
|
|
263
|
+
then partial buttons/links, then plain text (exact before partial). An explicit
|
|
264
|
+
`role` restricts matching to that role, with exact names first. Each candidate
|
|
265
|
+
keeps the first visible match; use a scoped selector when labels repeat or overlap.
|
|
266
|
+
See [compatibility](docs/compatibility.md) for legacy matching behavior.
|
|
265
267
|
|
|
266
268
|
Tips:
|
|
267
269
|
|
|
@@ -290,11 +292,14 @@ For an existing timeline, `render --config demo/record.json --poster-at 4.5`
|
|
|
290
292
|
overrides that setting without recording again. Times are seconds into the
|
|
291
293
|
trimmed output, starting at zero, and must be shorter than the video.
|
|
292
294
|
|
|
293
|
-
###
|
|
295
|
+
### Theme presets & vertical branding
|
|
294
296
|
|
|
295
|
-
|
|
297
|
+
Choose a built-in `brand.preset` (`midnight`, `daylight`, `paper`, or `slate`) in your config or override it at render time with `--preset <name>`. Cursor click ripples automatically follow the theme's `accent` color, and `brand.frame` supports `"auto"` (default), `"browser"`, `"phone"` (lightweight portrait bezel), or `"none"`. Explicit `brand.background` and `brand.accent` override preset colors unless `--preset` is passed on the CLI. Use `"scale": 2` (or `--scale 2`) for HiDPI 2x recording so zoomed shots stay crisp.
|
|
296
298
|
|
|
297
299
|
```json
|
|
300
|
+
"brand": {
|
|
301
|
+
"preset": "daylight"
|
|
302
|
+
},
|
|
298
303
|
"vertical": {
|
|
299
304
|
"badge": "Your product",
|
|
300
305
|
"titleLines": ["Ship faster", "without the busywork"],
|
|
@@ -307,17 +312,13 @@ The 9:16 output can carry a custom hook and CTA:
|
|
|
307
312
|
`titleLines` is capped at two lines. `watermark: false` removes the small
|
|
308
313
|
TabRetake mark. Chinese text automatically uses a CJK font.
|
|
309
314
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
crop around focus points. Wide desktop recordings may still have small text.
|
|
314
|
-
|
|
315
|
-
From v0.4.1, landscape output fits the
|
|
316
|
-
source aspect ratio and reserves space below the recording for captions.
|
|
315
|
+
Both 16:9 landscape and 9:16 portrait outputs fit the source video's aspect ratio
|
|
316
|
+
and reserve dedicated space below the content for captions. For a mobile flow,
|
|
317
|
+
inspect with `plan --viewport 390x844`, then record at the same viewport.
|
|
317
318
|
Use `--vertical --zoom 1 --vertical-zoom 1.8` to keep landscape overview while
|
|
318
|
-
enlarging portrait focus targets
|
|
319
|
-
|
|
320
|
-
|
|
319
|
+
enlarging portrait focus targets (`vertical.zoom` saves it in config; the CLI flag
|
|
320
|
+
takes precedence). Steps with `zoom: false` keep the full view. Review the result
|
|
321
|
+
for cropped context.
|
|
321
322
|
|
|
322
323
|
## Commands
|
|
323
324
|
|
|
@@ -327,14 +328,17 @@ still show the full view. Review the result for cropped context.
|
|
|
327
328
|
| `tabretake capabilities --json` | List supported commands, flags and JSON support |
|
|
328
329
|
| `tabretake doctor [--json]` | Check Node, Chromium, ffmpeg, fonts |
|
|
329
330
|
| `tabretake setup` | Install the Chromium version used by this CLI |
|
|
330
|
-
| `tabretake init --url <url> [--auto]` | Create an editable story file (
|
|
331
|
+
| `tabretake init --url <url> [--auto] [--preset <name>]` | Create an editable story file (`--auto` scans controls; `--preset` sets theme) |
|
|
332
|
+
| `tabretake capture --url <url> [--out demo.json] [--run]` | Record your real browser clicks/inputs into an editable `story.json` |
|
|
331
333
|
| `tabretake validate --config demo.json [--json]` | Validate a story, marks or recorded timeline without recording |
|
|
332
334
|
| `tabretake plan --url <url>` | Screenshot + list interactive elements |
|
|
333
335
|
| `tabretake record --config demo.json` | Record the story |
|
|
334
336
|
| `tabretake preview --config demo.json` | Execute steps in a visible browser before recording |
|
|
335
|
-
| `tabretake render --config demo/record.json` | Render MP4 + GIF |
|
|
337
|
+
| `tabretake render --config demo/record.json [--preset <name>]` | Render MP4 + GIF |
|
|
338
|
+
| `tabretake run --config demo.json [--vertical] [--scale 2]` | Validate, record, and render in one command |
|
|
339
|
+
| `tabretake mark --video recording.mp4 [--out story-video.json]` | Open local visual studio to click-mark timestamps & zoom points |
|
|
336
340
|
| `tabretake serve` | Serve the bundled demo app |
|
|
337
|
-
| `tabretake demo` | Record + render the bundled demo |
|
|
341
|
+
| `tabretake demo [--preset <name>]` | Record + render the bundled demo |
|
|
338
342
|
|
|
339
343
|
### 🏷️ Project Badge
|
|
340
344
|
|
|
@@ -348,53 +352,32 @@ For agents, `capabilities --json` and `doctor --json` emit one JSON object on
|
|
|
348
352
|
stdout with `schemaVersion: 1` and the installed version. Diagnostic checks have
|
|
349
353
|
stable `id`, `required`, `status` and recovery `hint` fields on failure. Exit code
|
|
350
354
|
`1` means a required check failed; missing caption fonts are warnings (exit `0`
|
|
351
|
-
if required checks pass).
|
|
352
|
-
JSON workflows and validation require v0.3.0 or newer.
|
|
355
|
+
if required checks pass). Browser presence is checked without launching a window.
|
|
353
356
|
|
|
354
357
|
`doctor` checks the whole toolkit. Rendering an existing recording or saved
|
|
355
|
-
timeline does not need
|
|
358
|
+
timeline does not need a browser: if `chromium` is the only failed required
|
|
356
359
|
check, skip browser setup and continue with `validate` and `render`; fix other
|
|
357
|
-
required errors first. Browser planning and recording
|
|
358
|
-
|
|
359
|
-
Before recording, run `validate --config demo.json --json`. It checks types,
|
|
360
|
-
supported actions, required targets and unknown fields against the packaged
|
|
361
|
-
[JSON Schema](schemas/story.schema.json). Failures return exit `1` and errors
|
|
362
|
-
with a `code`, JSON Pointer `path` (for example `/steps/0/action`), `message` and
|
|
363
|
-
`hint`. Invalid JSON and unreadable files use an `error` object. Validation
|
|
364
|
-
does not open the browser or check selectors, login state or media files.
|
|
365
|
-
`record` and `render` also validate their input before changing output files.
|
|
366
|
-
For editor completion, add `"$schema": "https://raw.githubusercontent.com/gnawbit/tabretake/main/schemas/story.schema.json"`
|
|
367
|
-
to the config.
|
|
360
|
+
required errors first. Browser planning and recording require Chromium or local Chrome/Edge.
|
|
368
361
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
`version`, `schemaVersion` and an `artifacts` list with absolute paths, kinds and
|
|
374
|
-
byte sizes. Recording failures include a zero-based `error.step.index`, action,
|
|
375
|
-
JSON Pointer path and recovery hint. Fix the reported step before retrying.
|
|
376
|
-
Run manual `--login` in an interactive terminal without `--json`, then reuse
|
|
377
|
-
`--storage-state` in automation. Failed runs may leave partial files; only a
|
|
378
|
-
successful result's artifact list confirms the current run's outputs.
|
|
379
|
-
|
|
380
|
-
In v0.3.1 or newer, navigation failures return `PAGE_UNREACHABLE` with
|
|
381
|
-
URL/server/network checks, or `PAGE_HTTP_ERROR` with `error.status` for HTTP
|
|
382
|
-
4xx/5xx. Error pages are not recorded as successful demos. These errors omit
|
|
383
|
-
the target URL so credentials and query tokens are not echoed. `doctor` checks
|
|
384
|
-
dependencies; it cannot establish that an app is reachable.
|
|
385
|
-
|
|
386
|
-
From v0.3.2, manual `--login` navigation failures also omit the target URL.
|
|
387
|
-
HTTP 401/403 pages remain open for sign-in; other HTTP errors stop the command.
|
|
362
|
+
Before recording, run `validate --config demo.json --json` against the packaged
|
|
363
|
+
[JSON Schema](schemas/story.schema.json) (`record` and `render` also validate before writing outputs).
|
|
364
|
+
For editor completion, add `"$schema": "https://raw.githubusercontent.com/gnawbit/tabretake/main/schemas/story.schema.json"`
|
|
365
|
+
to your config.
|
|
388
366
|
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
367
|
+
`init`, `capture`, `plan`, `record`, `render`, `run` and `mark` accept `--json` (one JSON result object on stdout, progress on stderr).
|
|
368
|
+
Navigation failures return `PAGE_UNREACHABLE` or `PAGE_HTTP_ERROR` without echoing sensitive URLs;
|
|
369
|
+
captions start when an action completes and hold during its `pause`.
|
|
370
|
+
Run manual `--login` in an interactive terminal without `--json`, then reuse `--storage-state` in automation.
|
|
371
|
+
See [compatibility](docs/compatibility.md) for legacy version behavior (`v0.4.0` and earlier).
|
|
392
372
|
|
|
393
373
|
```bash
|
|
374
|
+
--browser auto # auto (bundled Chromium or local Chrome/Edge), chromium, chrome, msedge
|
|
375
|
+
--preset daylight # midnight (default), daylight, paper, slate
|
|
394
376
|
--login # open a visible browser, log in once
|
|
395
377
|
--storage-state auth.json
|
|
396
378
|
--proxy http://127.0.0.1:10808
|
|
397
379
|
--viewport 1440x810
|
|
380
|
+
--scale 2 # 1 (default) or 2 (HiDPI Retina recording for crisp zooms)
|
|
398
381
|
--headed # watch the recording happen
|
|
399
382
|
--vertical # also render 9:16 + vertical GIF
|
|
400
383
|
--video recording.mp4 # render an existing recording + marks
|
|
@@ -464,8 +447,14 @@ node bin/tabretake.mjs demo --story release --port 0 --out demo-release
|
|
|
464
447
|
## Use an existing screen recording
|
|
465
448
|
|
|
466
449
|
If a site blocks automation, or you are demoing a desktop or mobile app, record
|
|
467
|
-
the flow with OBS, Screen Studio, QuickTime or the OS recorder, then
|
|
468
|
-
|
|
450
|
+
the flow with OBS, Screen Studio, QuickTime or the OS recorder, then run the
|
|
451
|
+
local visual studio to click on zoom targets directly (no manual math required):
|
|
452
|
+
|
|
453
|
+
```bash
|
|
454
|
+
tabretake mark --video recording.mp4 --out story-video.json
|
|
455
|
+
```
|
|
456
|
+
|
|
457
|
+
Or author `marks` JSON directly to describe where to zoom:
|
|
469
458
|
|
|
470
459
|
```json
|
|
471
460
|
{
|
|
@@ -550,9 +539,9 @@ are yours or licensed.
|
|
|
550
539
|
|
|
551
540
|
- [x] 9:16 vertical export
|
|
552
541
|
- [x] Screen-recording input (`--video` + `marks`)
|
|
542
|
+
- [x] Brand presets (`midnight`, `daylight`, `paper`, `slate`)
|
|
553
543
|
- [ ] Voiceover (TTS)
|
|
554
544
|
- [ ] Device frames (iPhone, Android, macOS)
|
|
555
|
-
- [ ] Brand presets
|
|
556
545
|
- [ ] Cloud rendering
|
|
557
546
|
|
|
558
547
|
## Contributing
|