decklight 0.8.1 → 0.10.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/PLATFORM.md +707 -0
- package/README.md +226 -150
- package/SPEC.md +803 -888
- package/cli/agent-review.mjs +246 -0
- package/cli/agents.mjs +35 -9
- package/cli/associate.mjs +12 -12
- package/cli/audit.mjs +42 -10
- package/cli/banner.mjs +41 -17
- package/cli/bundle-audio.mjs +190 -0
- package/cli/bundle-module.mjs +95 -0
- package/cli/bundle.mjs +439 -35
- package/cli/cast.mjs +48 -12
- package/cli/check-fixes.mjs +186 -0
- package/cli/check.mjs +988 -0
- package/cli/clone-deck.mjs +179 -0
- package/cli/commands.mjs +345 -0
- package/cli/comments.mjs +64 -18
- package/cli/commit-flow.mjs +51 -22
- package/cli/commit-message.mjs +51 -74
- package/cli/commit-split.mjs +601 -0
- package/cli/deck-refs.mjs +64 -0
- package/cli/deck-routes.mjs +67 -0
- package/cli/deckfile.mjs +3 -5
- package/cli/decklight.mjs +68 -289
- package/cli/design-system-deps.mjs +209 -0
- package/cli/design-system-edit.mjs +194 -0
- package/cli/design-system-refs.mjs +666 -0
- package/cli/design-system.mjs +497 -0
- package/cli/doctor.mjs +115 -0
- package/cli/edit-git.mjs +353 -0
- package/cli/edit-handover.mjs +551 -0
- package/cli/edit-look.mjs +631 -0
- package/cli/edit-slides.mjs +683 -0
- package/cli/edit.mjs +2585 -855
- package/cli/enhance.mjs +485 -0
- package/cli/extension.mjs +10 -10
- package/cli/font-refs.mjs +273 -0
- package/cli/font.mjs +246 -0
- package/cli/git-tree.mjs +1 -1
- package/cli/git.mjs +78 -11
- package/cli/import.mjs +56 -10
- package/cli/init.mjs +407 -236
- package/cli/library.mjs +127 -0
- package/cli/loader.mjs +3 -1
- package/cli/marketplace-autocheck.mjs +200 -0
- package/cli/marketplace.mjs +460 -29
- package/cli/narrate.mjs +251 -0
- package/cli/open-browser.mjs +63 -0
- package/cli/open.mjs +961 -0
- package/cli/pdf.mjs +64 -17
- package/cli/pkg.mjs +44 -2
- package/cli/plugin.mjs +43 -41
- package/cli/port-conflict.mjs +53 -23
- package/cli/pptx-export.mjs +63 -27
- package/cli/publish.mjs +8 -4
- package/cli/qr.mjs +1 -1
- package/cli/record.mjs +85 -23
- package/cli/remote.mjs +43 -17
- package/cli/restore.mjs +11 -4
- package/cli/review-ref.mjs +125 -0
- package/cli/review-remote.mjs +92 -48
- package/cli/review-routes.mjs +254 -0
- package/cli/review-store.mjs +47 -7
- package/cli/review-submit.mjs +47 -57
- package/cli/runtime-link.mjs +560 -0
- package/cli/serve.mjs +236 -45
- package/cli/setup.mjs +112 -0
- package/cli/sign.mjs +1 -1
- package/cli/skill-content.mjs +229 -35
- package/cli/skills.mjs +353 -26
- package/cli/start.mjs +110 -0
- package/cli/supervise.mjs +6 -6
- package/cli/theme-refs.mjs +527 -0
- package/cli/theme.mjs +181 -137
- package/cli/trust.mjs +83 -0
- package/cli/units.mjs +112 -47
- package/cli/update-check.mjs +1 -5
- package/cli/upgrade.mjs +194 -28
- package/cli/upstream.mjs +4 -3
- package/cli/util.mjs +4 -4
- package/cli/wizard.mjs +6 -6
- package/dist/build-info.json +1 -1
- package/dist/decklight.css +1533 -59
- package/dist/decklight.js +258 -115
- package/dist/decklight.js.map +4 -4
- package/docs/GLOSSARY.md +141 -0
- package/docs/architecture.svg +17 -17
- package/package.json +4 -2
- package/themes/README.md +9 -8
- package/themes/reveal-solarized.css +10 -0
- package/tools/args.mjs +20 -0
- package/tools/atomic-write.mjs +48 -0
- package/tools/brand-palette.mjs +717 -0
- package/tools/bridge.mjs +1 -1
- package/tools/build-groups.mjs +42 -0
- package/tools/color.mjs +48 -0
- package/tools/deck-html.mjs +396 -11
- package/tools/design-system-format.mjs +778 -0
- package/tools/design-system-migrations.mjs +207 -0
- package/tools/elevenlabs-tts.mjs +110 -17
- package/tools/exec.mjs +11 -3
- package/tools/extension-check.mjs +31 -7
- package/tools/font-format.mjs +190 -0
- package/tools/font-stacks.mjs +24 -0
- package/tools/gemini-tts.mjs +3 -0
- package/tools/lipsync-config.mjs +103 -0
- package/tools/lipsync-engines.mjs +205 -2
- package/tools/lipsync-server.mjs +264 -41
- package/tools/lipsync.mjs +37 -18
- package/tools/local-voice.mjs +32 -42
- package/tools/narration-manifest.mjs +270 -0
- package/tools/narration-synth.mjs +416 -0
- package/tools/pptx.mjs +776 -19
- package/tools/publish-targets.mjs +1 -1
- package/tools/publish-voices.mjs +3 -3
- package/tools/recording-impact.mjs +7 -3
- package/tools/render-theme.mjs +33 -0
- package/tools/review-anchor.mjs +28 -12
- package/tools/semver.mjs +40 -0
- package/tools/sentences.mjs +180 -0
- package/tools/shot.mjs +14 -7
- package/tools/site-clip.mjs +114 -0
- package/tools/site-voices.mjs +232 -0
- package/tools/template-theme.mjs +1 -1
- package/tools/test-impact.mjs +17 -10
- package/tools/theme-check.mjs +30 -3
- package/tools/tts-cache.mjs +4 -3
- package/tools/tts-engines.mjs +38 -20
- package/tools/tts-setup.mjs +7 -7
- package/tools/video-options.mjs +34 -0
- package/tools/video.mjs +530 -54
- package/tools/voiceover-server.mjs +185 -104
- package/tools/voiceover.mjs +119 -261
- package/tools/zip.mjs +1 -1
- package/cli/dev.mjs +0 -623
- package/cli/present.mjs +0 -853
- package/cli/review.mjs +0 -361
- package/tools/publish-site-voices.mjs +0 -75
package/README.md
CHANGED
|
@@ -1,60 +1,81 @@
|
|
|
1
1
|
# Decklight
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
- **Live narration** — text-to-speech presents the deck by itself, in sync, captions included.
|
|
28
|
-
- **Coming from PowerPoint** — `import` brings the deck across (charts as data, hidden slides still hidden, the template's own palette as a theme), and `pdf` / `pptx` hand a file back to whoever still asks for one.
|
|
29
|
-
- **Everything is text** — no binary formats, so decks diff cleanly in git and agents can read, review, and edit every byte.
|
|
30
|
-
- **Safe to receive** — `decklight present` plays a deck you did not author read-only under a CSP, prints what the file will execute, and strips what it cannot account for. `publish` signs; a `.decklight` container is verified before it renders.
|
|
31
|
-
- **Extensible without shipping code to the audience** — themes, templates, engines, importers and presenter chrome install from git-repo marketplaces anyone can host; build-time transforms run on your machine during `bundle`, so nothing executable travels with the deck.
|
|
3
|
+
A presentation library for people who would rather write their slides than
|
|
4
|
+
fight them. A deck is one HTML file. The runtime is one JS file, one CSS file
|
|
5
|
+
and a theme, with no dependencies and no build step. It opens straight from
|
|
6
|
+
`file://`, it diffs cleanly in git, and an AI agent can read, write and verify
|
|
7
|
+
every byte of it.
|
|
8
|
+
|
|
9
|
+
It is live at [decklight.io](https://decklight.io). The two-minute version is
|
|
10
|
+
`demo/intro.html`, the whole journey (an empty folder to a published talk) is
|
|
11
|
+
`demo/showcase.html`, and the contract
|
|
12
|
+
everything is built against is [`SPEC.md`](SPEC.md), with the marketplace
|
|
13
|
+
and library half in [`PLATFORM.md`](PLATFORM.md).
|
|
14
|
+
|
|
15
|
+
## Why
|
|
16
|
+
|
|
17
|
+
I got tired of decks being binary blobs. You can't grep a Keynote file, you
|
|
18
|
+
can't code-review a PowerPoint, and when slide 12 has a contrast problem at
|
|
19
|
+
11pm, you're the one clicking around. I wanted a deck that is plain text end to
|
|
20
|
+
end, and a codebase where an agent can do most of the work because it can check
|
|
21
|
+
its own results: clipped content flags itself, every theme passes a
|
|
22
|
+
machine-checked contrast gate, and a headless render is the test.
|
|
23
|
+
|
|
24
|
+
That second half is also how this repo runs. Issues are triaged, reproduced,
|
|
25
|
+
specified and implemented by agents, and a human approves what ships.
|
|
26
|
+
[`CONTRIBUTING.md`](CONTRIBUTING.md) explains the loop if you're curious.
|
|
32
27
|
|
|
33
28
|
## Quick start
|
|
34
29
|
|
|
30
|
+
```sh
|
|
31
|
+
npx decklight@latest init "My Talk" --dir my-talk
|
|
35
32
|
```
|
|
36
|
-
npx decklight@latest init "My Deck"
|
|
37
|
-
```
|
|
38
33
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
34
|
+
That writes a `deck.html` in `my-talk/` (slides plus a two-line configuration
|
|
35
|
+
block, nothing else) plus a
|
|
36
|
+
`.claude/skills/decklight/` skill and an `AGENTS.md`, so Claude Code (or any
|
|
37
|
+
agent that reads `AGENTS.md`) has the real authoring contract on hand instead of
|
|
38
|
+
guessing from Reveal.js memory. Then it asks whether to open the deck in write
|
|
39
|
+
mode: live reload, edits from the browser, an AI agent on `A`, and git
|
|
40
|
+
underneath: your work snapshotted as you go, committed when you press `K`.
|
|
41
|
+
Say yes. Leave out `--dir` to start the deck in the current directory. Keep the
|
|
42
|
+
`@latest`: npx resolves it against the registry on every run, so you always
|
|
43
|
+
get the current release, whereas a bare `npx decklight` runs any decklight
|
|
44
|
+
already installed in the project or globally, however old.
|
|
45
|
+
|
|
46
|
+
Prefer npm's own scaffolding command? This does the same thing, naming the
|
|
47
|
+
deck after its folder ("My Talk"):
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
npm create decklight my-talk
|
|
51
|
+
```
|
|
44
52
|
|
|
45
|
-
|
|
53
|
+
After that you rarely need a command name:
|
|
46
54
|
|
|
47
|
-
|
|
55
|
+
```sh
|
|
56
|
+
decklight # in a folder: start a deck, or pick one to open
|
|
57
|
+
decklight talk.html # open a deck: write mode, live reload, an AI agent on A
|
|
58
|
+
decklight talk.html --no-trust # open one you did not write: no-trust mode
|
|
59
|
+
decklight https://github.com/you/talk # clone a deck's repository and open it
|
|
60
|
+
decklight talk.pptx # bring a PowerPoint, Keynote or Slides deck across
|
|
61
|
+
decklight talk.decklight # play somebody else's deck, without trust
|
|
62
|
+
decklight bundle talk.html # one self-contained file to send — the runtime embedded
|
|
63
|
+
decklight doctor # what this machine can do, and how to get the rest
|
|
64
|
+
```
|
|
48
65
|
|
|
49
|
-
|
|
66
|
+
Type a command wrong and it tells you which one you meant. Or skip the scaffold
|
|
67
|
+
and write the HTML yourself. A deck you author is *data* (slides and a JSON
|
|
68
|
+
configuration block) and `decklight <deck>` adds the runtime as it serves it, in write mode and in `--no-trust`;
|
|
69
|
+
`bundle` embeds it when you hand the file over. This is the whole anatomy:
|
|
50
70
|
|
|
51
71
|
```html
|
|
52
72
|
<!doctype html>
|
|
53
73
|
<html lang="en">
|
|
54
74
|
<head>
|
|
55
75
|
<meta charset="utf-8">
|
|
56
|
-
<
|
|
57
|
-
|
|
76
|
+
<script type="application/json" data-decklight-config>
|
|
77
|
+
{ "decklight": "0.10.0", "theme": "aurora", "transition": "fade" }
|
|
78
|
+
</script>
|
|
58
79
|
</head>
|
|
59
80
|
<body>
|
|
60
81
|
<div class="decklight">
|
|
@@ -63,138 +84,193 @@ Prefer to write the HTML yourself? Here's the whole anatomy:
|
|
|
63
84
|
<p>With an auto-detected subtitle</p>
|
|
64
85
|
<ul data-build>
|
|
65
86
|
<li>First point</li>
|
|
66
|
-
<li>Second point
|
|
87
|
+
<li>Second point, revealed on the next advance</li>
|
|
67
88
|
</ul>
|
|
68
|
-
<aside class="notes">
|
|
89
|
+
<aside class="notes">Said before the first point. [click] Said as the first appears. [click] And as the second.</aside>
|
|
69
90
|
</section>
|
|
70
91
|
</div>
|
|
71
|
-
<script src="decklight/dist/decklight.js"></script>
|
|
72
|
-
<script>Decklight.init({ transition: 'fade' });</script>
|
|
73
92
|
</body>
|
|
74
93
|
</html>
|
|
75
94
|
```
|
|
76
95
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
96
|
+
Nothing in that file executes. A deck that prefers to load the runtime
|
|
97
|
+
itself (`<script src="decklight/dist/decklight.js">` and a
|
|
98
|
+
`Decklight.init({ … })` call) is served exactly as written.
|
|
99
|
+
|
|
100
|
+
## What's in the box
|
|
101
|
+
|
|
102
|
+
- **Editing in the browser.** In write mode, double-click any text (or a
|
|
103
|
+
code block, edited as plain source) to change it, drop a picture onto a
|
|
104
|
+
slide to add it, and add, duplicate, move or delete slides from the palette
|
|
105
|
+
or the right-click menu. Inside a diagram, a click selects one shape, wire
|
|
106
|
+
or label: `I` opens the inspector on it, with a Colors tab and a Type tab
|
|
107
|
+
(size, weight, the theme's font role, italic, alignment) that save as you
|
|
108
|
+
pick, and a picker that hovers shapes the way DevTools does, each boxed in
|
|
109
|
+
the theme's accent; a double-click retypes a label in place and `⌫` removes
|
|
110
|
+
just that shape. The notes, the inspector, the comments, the sources and the
|
|
111
|
+
agent ask share one panel beside the slide, with a tab for each, wherever
|
|
112
|
+
you left it. Every edit lands in the file and
|
|
113
|
+
`⌘Z` (`Ctrl+Z`) takes it back. `decklight check`
|
|
114
|
+
reports what an author or an agent would otherwise only see by looking:
|
|
115
|
+
clipped slides, crowded ones, missing images, notes whose [click] count
|
|
116
|
+
disagrees with the builds. In the deck, the palette's *Review: Check deck…* lists the
|
|
117
|
+
same in one docked panel, the file's findings included, each with its quick fix.
|
|
118
|
+
- **Chapters.** `data-module` marks chapters, and `G` shows the outline.
|
|
119
|
+
- **Builds.** `data-build` on a container makes each child a step. The layout
|
|
120
|
+
never jumps.
|
|
121
|
+
- **Diagrams.** Inline SVG written with `var(--d-*)` tokens recolours with every
|
|
122
|
+
theme and can draw itself in, an arrowhead riding the tip and a dashed line
|
|
123
|
+
drawing dashed from its first frame.
|
|
124
|
+
- **Motion.** Slide transitions, Magic Move between slides, looping element
|
|
125
|
+
effects. All of it respects reduced-motion.
|
|
126
|
+
- **Themes.** 46 themes in 2 packs, every one behind WCAG contrast gates. `T`
|
|
127
|
+
picks one, `⌃T` generates a new one that passes the same gates.
|
|
128
|
+
- **Code and math.** highlight.js styled through theme tokens, LaTeX rendered
|
|
129
|
+
to MathML with bundled Temml. No webfonts, no build step.
|
|
130
|
+
- **Charts.** `data-chart` plus a small JSON block gives you a theme-aware SVG
|
|
131
|
+
chart: bar, line, area, pie, donut, scatter.
|
|
132
|
+
- **Terminals.** `decklight cast` records a real PTY session and the deck
|
|
133
|
+
replays it, typing and streaming. Never a video.
|
|
134
|
+
- **Narration.** Text-to-speech reads your notes in sync with the builds, or you
|
|
135
|
+
record your own voice one beat at a time. Captions and auto-advance come with
|
|
136
|
+
it. The notes are the script, and a script's own markers work as written:
|
|
137
|
+
`[pause]` holds a beat, `[long pause]` two, `[click]` cuts a beat, in any
|
|
138
|
+
spelling. ElevenLabs v4 (the default model) acts on audio tags
|
|
139
|
+
like `[whispers]` or `[laughs]`; any other voice leaves them out. Your agent
|
|
140
|
+
can add those tags, or write terse notes for the ear, as sentences a person
|
|
141
|
+
would say, and the notes editor shows before and after until you save.
|
|
142
|
+
ElevenLabs voices are listed by language, and the voice library finds a
|
|
143
|
+
native one for a translated deck. A synthesized recording tells you what it
|
|
144
|
+
cost: clips reused against clips sent to the engine.
|
|
145
|
+
- **A face for the voice.** `V` → Character: a 2D narrator whose lips follow
|
|
146
|
+
the voice, or a talking head made from your photo (or from a few seconds of
|
|
147
|
+
you filmed in the deck) lip-synced with Wav2Lip on your own machine, set up
|
|
148
|
+
once with `decklight setup face …`. `decklight narrate <deck> --face`
|
|
149
|
+
cuts the lip-sync into the recorded track, so it plays with nothing running.
|
|
150
|
+
- **Video.** `decklight video` renders the deck to mp4, mov or webm, narrated
|
|
151
|
+
by its track with subtitles in the file or beside it, and re-voices a slide
|
|
152
|
+
whose notes moved. The same export is a palette row, which can voice the
|
|
153
|
+
range with the live voice first.
|
|
154
|
+
- **Review.** Reviewers comment on slides, the review travels as a git branch,
|
|
155
|
+
and a comment finds its slide again after the deck has moved. The author
|
|
156
|
+
answers from inside the deck, and `I` shows what a slide is standing on:
|
|
157
|
+
its sources, written from inside the deck too.
|
|
158
|
+
- **In and out.** PowerPoint, Keynote and Google Slides come in, with charts as
|
|
159
|
+
data, SmartArt as diagrams, and what somebody drew (shapes, lines, groups,
|
|
160
|
+
rotation) as the drawing it was. PDF and PowerPoint go out for whoever
|
|
161
|
+
still asks, in the theme on screen.
|
|
162
|
+
- **Safe to receive.** A deck that runs code of its own is named before it
|
|
163
|
+
opens, and asked about: trust its source and it opens in write mode, decline
|
|
164
|
+
and it plays without trust under a CSP with that code stripped. `--no-trust`
|
|
165
|
+
forces the safe mode; `publish` signs what it ships.
|
|
166
|
+
- **Design systems.** A company's tokens, art and slide templates, referenced
|
|
167
|
+
by a deck from a marketplace and served into it, never copied: a slide names
|
|
168
|
+
a template, fills its slots, and follows the system when it changes. A design
|
|
169
|
+
system can also carry the brand itself: a palette of scales, its own themes
|
|
170
|
+
drawn only from it, and roles (`text-accent`, `surface-card`) that each theme
|
|
171
|
+
sets, so the deck is held to the brand and `T` recolours every role. *Look:
|
|
172
|
+
Design systems…* and *Slide: Use slide template…* in the palette, in write mode.
|
|
173
|
+
- **Extensible without shipping code to the audience.** Themes, skills,
|
|
174
|
+
speech engines and presenter plugins install from any git repo. Nothing
|
|
175
|
+
executable travels inside a deck.
|
|
176
|
+
|
|
177
|
+
Every item above has a SPEC section behind it. The index at the top of
|
|
178
|
+
`SPEC.md` maps the names to the sections. The words themselves (write mode, bundle, cast,
|
|
179
|
+
narrate, template, library, gate) are defined once in
|
|
180
|
+
[`docs/GLOSSARY.md`](docs/GLOSSARY.md).
|
|
181
|
+
|
|
182
|
+
## The CLI
|
|
183
|
+
|
|
184
|
+
`decklight help <command>` prints the flags for any of these.
|
|
185
|
+
|
|
186
|
+
| Writing | |
|
|
112
187
|
|---|---|
|
|
113
|
-
| `
|
|
114
|
-
| `
|
|
115
|
-
|
|
|
116
|
-
| `
|
|
117
|
-
| `
|
|
118
|
-
| `
|
|
119
|
-
|
|
120
|
-
|
|
|
121
|
-
|
|
122
|
-
| `
|
|
123
|
-
| `
|
|
124
|
-
| `
|
|
125
|
-
| `
|
|
126
|
-
| `
|
|
127
|
-
| `
|
|
128
|
-
| `
|
|
129
|
-
| `
|
|
130
|
-
|
|
131
|
-
|
|
|
132
|
-
|
|
133
|
-
| `
|
|
134
|
-
| `
|
|
135
|
-
| `
|
|
136
|
-
| `
|
|
137
|
-
|
|
138
|
-
|
|
|
139
|
-
|
|
140
|
-
| `
|
|
141
|
-
|
|
142
|
-
|
|
188
|
+
| `init ["Title"]` | scaffold a deck and the agent skill, then open it in write mode (`--no-open` keeps the browser closed) |
|
|
189
|
+
| `skills [agent…]` | install the authoring skill for Claude, Codex, OpenCode or IBM Bob; a skill older than this build is refreshed, and write mode names one at startup |
|
|
190
|
+
| `<deck.html \| url>` | the deck is the command. Write mode: live reload plus every bridge this machine can run, under one Ctrl-C (`--open` for the browser; a git URL clones the repo and opens the deck inside). In the browser editing is on: double-click text to edit it (`⌘B`, `⌘I`, `⌘E` for bold, italic and code while you do), drop a picture onto a slide, the bar's Layout for a layout, `S` for notes, `O` to rearrange slides; `Lock deck` in the palette turns changes off until you unlock |
|
|
191
|
+
| `check deck.html` | lint it headlessly: clipped slides, missing assets, [click] beats out of step with the builds (`--json`) |
|
|
192
|
+
| `narrate deck.html` | the narration into a folder beside the deck: an engine reads the notes, or you do with `--mic`, one [click] beat at a time (`--slides 7` for one slide); `--face` gives the recorded track its lip-sync, so the character plays it with nothing running |
|
|
193
|
+
| `cast script.term.yaml` | record a terminal session in a real PTY (`cast refresh` re-runs, `cast export` writes asciicast) |
|
|
194
|
+
|
|
195
|
+
| Sharing | |
|
|
196
|
+
|---|---|
|
|
197
|
+
| `<deck> --no-trust` | open a deck you didn't write in no-trust mode: every edit route refuses, it is served under a CSP, and what it will execute is listed first (`--audit` prints that label and exits; a repository URL clones it first, into the same clone write mode uses). Comments (`M`) work here too; a `.decklight` is without trust by nature |
|
|
198
|
+
| `bundle deck.html` | one self-contained HTML file (`--all` merges a playlist, `--module` takes one chapter with its narration, `--sign`, `--deck`) |
|
|
199
|
+
| `publish deck.html` | bundle and push to GitHub Pages, Netlify, Vercel or a folder |
|
|
200
|
+
| `pdf deck.html` | one slide per page (`--notes`, `--handout`) |
|
|
201
|
+
| `pptx deck.html` | a PowerPoint file, every slide a picture, notes as notes |
|
|
202
|
+
| `video deck.html` | a narrated video: mp4, mov or webm, with subtitles in it or beside it (`--format`, `--quality`, `--subtitles`; `--slides 5-9` for part of it, `--voiceover` synthesizes first; also **Export a video…** in the deck's palette, which can voice it with the live voice first) |
|
|
203
|
+
| `enhance deck.html --slides 3` | add ElevenLabs v4 audio tags to the notes with the prompt ElevenLabs publishes: your agent drafts, decklight checks no word changed (`--all`, `--dry-run`) |
|
|
204
|
+
| `enhance deck.html --spoken --slides 3` | write terse notes for the ear, as sentences a person would say: your agent rewrites, decklight checks every `[click]` and `[pause]` survived |
|
|
205
|
+
|
|
206
|
+
| Keeping track | |
|
|
207
|
+
|---|---|
|
|
208
|
+
| `comments deck.html` | what reviewers said, resolved against the deck as it is now; `comments submit` sends a reviewer's comments back as a branch |
|
|
209
|
+
| `history deck.html` | what decklight committed and what is only on this machine |
|
|
210
|
+
| `restore deck.html` | put the deck back to any commit that touched it |
|
|
211
|
+
| `upgrade deck.html` | bring a bundled deck's inlined runtime up to this version (`--link` un-embeds it, so the deck is data again) |
|
|
212
|
+
|
|
213
|
+
| Bringing things in | |
|
|
214
|
+
|---|---|
|
|
215
|
+
| `import talk.pptx` | convert PowerPoint, Keynote or Google Slides (`--theme template` keeps its palette, `--shapes strict` draws only snapped diagrams) |
|
|
216
|
+
| `theme add\|remove\|list\|gate` | mark a marketplace theme for a deck to carry, or unmark it (`list` says which it carries); `gate` validates a theme file against the token contract, the gate a catalog runs |
|
|
217
|
+
| `marketplace add owner/repo` | register a catalog; it is cloned with your git credentials, then read from disk |
|
|
218
|
+
| `design-system add acme@acme-mkt talk.html` | reference a company's design system: its tokens, art and slide templates, served from the marketplace on this machine (`list`, `templates`, and `gate`, the gate a catalog runs) |
|
|
219
|
+
| `font add inter@type-mkt talk.html --use` | reference a typeface from a marketplace: its faces and licence travel with the deck and its bundle, offline; `--use` opens the deck in it (`list`, and `gate`, the gate a catalog runs) |
|
|
220
|
+
| `marketplace list` / `outdated` / `update <name>` | what each catalog offers; which are behind their source (asked, nothing fetched); and an update, which says what's new in the catalog and what it now has newer than what you installed (`nord@acme 1.0.0 → 1.1.0`, and the command that takes it). In write mode, `/` → **Marketplaces…** does all of it, and adds one, from the deck |
|
|
221
|
+
| `marketplace auto-check on\|off` | off until you turn it on: an edit server that starts asks whether a marketplace is behind (at most twice a day, nothing fetched), and the deck offers the update. It never takes one by itself. **O** on **Marketplaces…** is the same switch |
|
|
222
|
+
| `library add <kind> <name>` | install into your own library: a `plugin` (presenter chrome over any deck you open, with or without trust; `bundle` never carries it), a `skill`, an `importer`, a `transform`, an `engine`, a `voice` or an `agent` (`remove`, `list [kind]`) |
|
|
223
|
+
| `library gate <kind> <path>` | the marketplace admission gate for a `transform` or a `plugin` |
|
|
224
|
+
|
|
225
|
+
| Odds and ends | |
|
|
226
|
+
|---|---|
|
|
227
|
+
| `setup voice` / `setup face` | set up live narration, or a talking head, once; every deck you open uses it |
|
|
228
|
+
| `trust list` / `trust forget <deck>` | the decks whose script you said you trust, and forgetting one so the next open asks again |
|
|
229
|
+
| `associate` | make double-clicking a `.decklight` file open it without trust |
|
|
230
|
+
| `report-bug` | print the version and environment facts a bug report needs |
|
|
231
|
+
| `doctor` | what this machine can do (Chrome, ffmpeg, git, agents…) and the install line for what it can't |
|
|
232
|
+
|
|
233
|
+
The runtime has zero dependencies. highlight.js and Temml are bundled at build
|
|
234
|
+
time; `node-pty`, `js-yaml`, `sigstore` and Playwright are optional and used by
|
|
235
|
+
the CLI only.
|
|
143
236
|
|
|
144
237
|
## Keys
|
|
145
238
|
|
|
146
239
|
| Key | Action |
|
|
147
240
|
|---|---|
|
|
148
241
|
| `→` `←` `Space` | next / previous build or slide |
|
|
149
|
-
| `S` | speaker
|
|
150
|
-
| `
|
|
151
|
-
|
|
|
152
|
-
|
|
|
153
|
-
| `
|
|
154
|
-
| `
|
|
155
|
-
|
|
|
156
|
-
|
|
|
157
|
-
|
|
158
|
-
|
|
242
|
+
| `S` | this slide's speaker notes: editable in write mode, read-only under `--no-trust` |
|
|
243
|
+
| `⌥⏎` / `Alt+Enter` | speaker view: a second window with notes, next slide and timer (again: rehearse cue cards) |
|
|
244
|
+
| `T` | theme picker, `⌃T` generate a theme |
|
|
245
|
+
| `⎵` | play / pause the voice once one is chosen; otherwise it advances |
|
|
246
|
+
| `V` | everything about the voice: tracks, live voice, character, record, captions, speed |
|
|
247
|
+
| `M` | review comments: `⏎` jumps to the slide, `R` marks one done and again reopens it, `D` hides the done ones, `⌫` deletes one of yours; `⇧M` writes one |
|
|
248
|
+
| `K` | commit what you changed, with a message; `⌘Z` / `Ctrl+Z` undoes an edit; `⌘⏎` / `Ctrl+Enter` fullscreen, `⇧F` hides the arrows and slide number there |
|
|
249
|
+
| `H` | the deck's history, every version previewed live, `⏎` restores one |
|
|
250
|
+
| `I` | the inspector: everything about this slide, or the selected shape's colours and type; its sources |
|
|
251
|
+
| `/` | command palette: every action at the root, named `Category: Action` (`Voice: Live voice…`), filtered by any words you type; *Preferences: Settings…* holds the knobs (clock, progress bar, captions, voice speed, the editing bar). `G` finds a slide, `O` rearranges them, `A` asks the agent |
|
|
252
|
+
| `?` | every key |
|
|
253
|
+
|
|
254
|
+
## Working from a checkout
|
|
159
255
|
|
|
160
256
|
```sh
|
|
161
257
|
git clone https://github.com/decklight/decklight && cd decklight
|
|
162
|
-
npm install
|
|
163
|
-
npm
|
|
258
|
+
npm install # also builds dist/
|
|
259
|
+
npm test # unit tests
|
|
260
|
+
npm run verify # build + headless render assertions, needs Chrome
|
|
164
261
|
```
|
|
165
262
|
|
|
166
|
-
A deck
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
The whole point was a project where fixes and features land fast because agents do the work and automated verification keeps it safe. So the repo runs itself as a pipeline of small, single-purpose GitHub Actions — each one a Claude agent with exactly the powers it needs and no more:
|
|
171
|
-
|
|
172
|
-
- **You open an issue.** An agent reads it *and the code it blames*, then either asks the missing questions or routes it — a bug goes to a reproduction agent (which actually builds `main` and tries it, posting screenshots of what it saw), a feature goes to a spec agent (which drafts acceptance criteria and renders real UI mockups for review).
|
|
173
|
-
- **You approve.** Applying `ready-to-dev` is the one human gate. An implementation agent writes the code on a branch, proves it with `npm run verify` and a screenshot of the feature actually working, and opens a PR with that picture inline. You review the *screenshots*, not the merge button — the PR merges itself once CI is green.
|
|
174
|
-
- **The loop keeps itself unstuck.** If CI goes red, a fix agent reads the failing logs and repairs the branch (capped, so it never argues with a red build forever). If `main` moves and a branch goes stale, a rebase agent replays it cleanly. A grooming pass reads the backlog daily and closes what the code already fixed — citing the exact `file:line` as proof.
|
|
175
|
-
|
|
176
|
-
Every one of those agents runs under the same rule: on a public repo, an automated trigger never hands a push token to an agent reading text a stranger can write. The agents that need a shell run credential-less; the tokens live only in plain shell steps; a verification band — WCAG contrast gates, palette rules, headless-render assertions, property tests — holds all of it to `SPEC.md`. The `.github/workflows/` files each open with a header explaining *why* they're shaped the way they are; they're worth a read if you like this sort of thing.
|
|
177
|
-
|
|
178
|
-
## Architecture
|
|
263
|
+
A deck you author carries no runtime: `decklight <deck>` references
|
|
264
|
+
`dist/decklight.js`, `dist/decklight.css` and one theme file into it as they
|
|
265
|
+
serve it. To hand it over, `bundle`: one file, and nothing else to copy.
|
|
179
266
|
|
|
180
267
|
<p align="center">
|
|
181
|
-
<img src="docs/architecture.svg" width="860" alt="Decklight architecture:
|
|
268
|
+
<img src="docs/architecture.svg" width="860" alt="Decklight architecture: one deck.html and a theme.css feed a zero-dependency browser runtime; the CLI, the deck server in its write and no-trust modes, and the tts bridge run beside it on localhost; a verification band of contrast gates, palette rules and headless render assertions holds everything to SPEC.md.">
|
|
182
269
|
</p>
|
|
183
270
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
## Development
|
|
187
|
-
|
|
188
|
-
`npm test` (unit + property tests) · `node test/render.mjs` (headless-Chrome render assertions) · `node test/contrast.mjs` (WCAG theme gates) · `npm run verify` for the lot. The house rule: every feature is verified end-to-end against a real render, not just unit-tested — see SPEC REPO_LAYOUT, and `CONTRIBUTING.md` for the DCO sign-off every commit needs.
|
|
189
|
-
|
|
190
|
-
## Links
|
|
191
|
-
|
|
192
|
-
- **[decklight.io](https://decklight.io)** — the showcase deck, live and narrating itself
|
|
193
|
-
- **`demo/intro.html`** — the short "what is Decklight" tour
|
|
194
|
-
- **`demo/showcase.html`** — the full self-demo, every feature on its own slide
|
|
195
|
-
- **[`SPEC.md`](SPEC.md)** — the authoring contract
|
|
196
|
-
- **[`CONTRIBUTING.md`](CONTRIBUTING.md)** — how to contribute (DCO sign-off required)
|
|
271
|
+
Every commit needs a DCO sign-off (`git commit -s`). The rest of the process,
|
|
272
|
+
including how the agent loops work, is in [`CONTRIBUTING.md`](CONTRIBUTING.md).
|
|
197
273
|
|
|
198
274
|
## License
|
|
199
275
|
|
|
200
|
-
|
|
276
|
+
[Apache 2.0](LICENSE).
|