slidetake 0.4.5 → 0.4.6

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/dist/index.html CHANGED
@@ -462,7 +462,8 @@
462
462
  #rv-setup{margin:8px 0 0;}
463
463
  /* the chosen camera, live, as a recording would see it (mirrored like the camera box), and the mic's waveform */
464
464
  .setup-cam{position:relative;aspect-ratio:16/9;background:#000;border-radius:8px;overflow:hidden;border:1px solid var(--panel-line);}
465
- .setup-cam video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scaleX(-1);}
465
+ .setup-cam video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
466
+ .setup-cam.mirror video{transform:scaleX(-1);}
466
467
  .setup-cam span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:12px;color:#a1a1aa;}
467
468
  .setup-cam span[hidden]{display:none;}
468
469
  .setup-wave{display:block;width:100%;height:60px;border-radius:8px;border:1px solid var(--panel-line);
@@ -718,7 +719,7 @@
718
719
  html.embed.no-record #navbar{display:flex;}
719
720
  html.embed.no-record #navbar > :not(.touch-only){display:none !important;}
720
721
  }
721
- html.no-record #btn-camera, html.no-record #btn-studio, html.no-record #btn-record, html.no-record #pip, html.no-record #help tr.rec{display:none !important;}
722
+ html.no-record #btn-camera, html.no-record #btn-studio, html.no-record #btn-record, html.no-record #pip:not(.empty), html.no-record #help tr.rec{display:none !important;}
722
723
  /* the logo written into a heading: # ![](/favicon.svg) Slidetake */
723
724
  .node .body :is(h1,h2) img[src$="favicon.svg"]{height:1em;width:auto;vertical-align:-.12em;margin-right:.25em;display:inline;}
724
725
  #brand .st-mark{display:inline-flex;align-items:center;gap:8px;font-family:var(--display);font-weight:700;font-size:20px;color:var(--text);}
@@ -749,13 +750,63 @@
749
750
  #pip.bottom-right{bottom:16px;right:16px;}
750
751
  /* full: the camera takes the whole stage, under the brand and the controls */
751
752
  /* it also swallows clicks, so a click can't land on the hidden cards behind it */
752
- #pip.full{inset:0;width:100% !important;height:100%;aspect-ratio:auto;border-radius:0;z-index:9;pointer-events:auto;}
753
+ #pip.full{inset:0;width:100%;height:100%;aspect-ratio:auto;border-radius:0;z-index:9;pointer-events:auto;}
753
754
  /* behind: the camera fills the frame under the slides, which stay on top as cards; the stage's dotted
754
755
  background makes way so the camera shows around them */
755
756
  #pip.full.behind{z-index:0;pointer-events:none;box-shadow:none;}
757
+ /* split screen (a solid card): the camera fills what the card leaves, centred there, and glides into it */
758
+ /* behind a split screen the frame is the card's colour, so as the words and the camera pass each other on a
759
+ swap, the edges they uncover read as card */
760
+ #stage-wrap.cam-solid{background:var(--panel);}
761
+ #stage-wrap.cam-solid[data-place="left"] #pip.full.behind{left:50%;width:50%;}
762
+ #stage-wrap.cam-solid[data-place="right"] #pip.full.behind{right:50%;width:50%;}
763
+ #stage-wrap.cam-solid[data-place="top"] #pip.full.behind{top:25%;height:75%;}
764
+ #stage-wrap.cam-solid[data-place="bottom"] #pip.full.behind{bottom:25%;height:75%;}
765
+ /* the camera behind the slide while it is off: an empty frame with a faint person where you'd be */
766
+ #stage-wrap #pip.empty{border:none;background:color-mix(in srgb, var(--text) 6%, var(--bg)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23fff' fill-opacity='.07'%3E%3Ccircle cx='50' cy='40' r='15'/%3E%3Cpath d='M18 100c0-22 14-36 32-36s32 14 32 36z'/%3E%3C/g%3E%3C/svg%3E") 50% 100%/auto 70% no-repeat;}
767
+ body[data-mode="light"] #stage-wrap #pip.empty{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23000' fill-opacity='.06'%3E%3Ccircle cx='50' cy='40' r='15'/%3E%3Cpath d='M18 100c0-22 14-36 32-36s32 14 32 36z'/%3E%3C/g%3E%3C/svg%3E");}
768
+ /* the person stands where the words leave room */
769
+ #stage-wrap[data-place="left"] #pip.empty{background-position:76% 100%;}
770
+ #stage-wrap[data-place="right"] #pip.empty{background-position:24% 100%;}
771
+ #pip.empty:not(.msg) > span{position:absolute;left:50%;bottom:4%;transform:translateX(-50%);font-size:0;}
772
+ #pip.empty:not(.msg) > span::after{content:"Camera off · press C";font-size:12px;color:var(--text);opacity:.45;letter-spacing:.08em;}
773
+ html.no-record #pip.empty > span{display:none;}
756
774
  #stage-wrap.cam-behind #stage{z-index:1;background:transparent;}
757
- /* only the slide being presented shows over the camera: no neighbouring cards or lines around it */
758
- #stage-wrap.cam-behind div.node:not(.current), #stage-wrap.cam-behind #connectors{opacity:0;transition:opacity .3s;}
775
+ /* behind: the slide's content in regions around the person (the card itself steps aside), in the deck's own
776
+ colours, light or dark, camera on or off. A card under the words (half see-through unless set) keeps them
777
+ readable; with card 0% they sit straight on the video, and diagrams, charts and table cells keep a pane */
778
+ #cam-overlay{position:absolute;inset:0;z-index:2;pointer-events:none;display:none;color:var(--text);}
779
+ #stage-wrap.cam-live:not(.cam-card) #cam-overlay .cam-media :is(.diagram, .echarts-container){
780
+ background:color-mix(in srgb, var(--bg) 85%, transparent);border-radius:14px;padding:14px;}
781
+ #stage-wrap.cam-live:not(.cam-card) #cam-overlay .body :is(th, td){background:color-mix(in srgb, var(--bg) 70%, transparent);}
782
+ #stage-wrap:not([data-place=""])[data-place] #cam-overlay{display:block;}
783
+ #stage-wrap:not([data-place=""])[data-place] #world{opacity:0;}
784
+ /* the card under the words: half see-through, solid (no camera through it) or clear (none, kept off the edges) */
785
+ #cam-overlay .cam-box{position:absolute;display:flex;flex-direction:column;gap:3%;box-sizing:border-box;padding:1.2%;
786
+ border-radius:18px;background:color-mix(in srgb, var(--panel) calc(var(--cam-card, 0) * 100%), transparent);}
787
+ #cam-overlay .cam-box.left{left:4%;top:8%;width:42%;height:84%;}
788
+ #cam-overlay .cam-box.right{right:4%;top:8%;width:42%;height:84%;}
789
+ #cam-overlay .cam-box.top{left:5%;top:3%;width:90%;height:22%;flex-direction:row;}
790
+ #cam-overlay .cam-box.bottom{left:5%;bottom:3%;width:90%;height:22%;flex-direction:row;}
791
+ /* with a card, the region fills its part of the frame edge to edge: a half or a quarter band */
792
+ #stage-wrap.cam-card #cam-overlay .cam-box{border-radius:0;padding:2.5%;}
793
+ #stage-wrap.cam-card #cam-overlay .cam-box.left{left:0;top:0;width:50%;height:100%;}
794
+ #stage-wrap.cam-card #cam-overlay .cam-box.right{right:0;top:0;width:50%;height:100%;}
795
+ #stage-wrap.cam-card #cam-overlay .cam-box.top{left:0;top:0;width:100%;height:25%;}
796
+ #stage-wrap.cam-card #cam-overlay .cam-box.bottom{left:0;bottom:0;width:100%;height:25%;}
797
+ /* the words take what the picture leaves: below it beside you, to its left in a band */
798
+ #cam-overlay .cam-text{flex:1 1 0;min-width:0;min-height:0;display:flex;align-items:center;}
799
+ #cam-overlay .cam-box.top .cam-text{align-items:flex-start;}
800
+ #cam-overlay .cam-box.bottom .cam-text{align-items:flex-end;}
801
+ #cam-overlay .cam-media{flex:1 1 0;min-width:0;min-height:0;position:relative;}
802
+ #cam-overlay .cam-text + .cam-media{flex:0 0 55%;}
803
+ #cam-overlay :is(.cam-box.top, .cam-box.bottom) .cam-text + .cam-media{flex-basis:38%;}
804
+ #cam-overlay .node{background:none;border:none;padding:0;}
805
+ #cam-overlay .cam-text > .node{flex:none;transform-origin:0 0;}
806
+ #cam-overlay .cam-box.bottom .cam-text > .node{transform-origin:0 100%;}
807
+ #cam-overlay .cam-box.left .cam-text > .node, #cam-overlay .cam-box.right .cam-text > .node{transform-origin:0 50%;}
808
+ #cam-overlay .cam-media > .node{position:absolute;left:50%;top:50%;transform-origin:50% 50%;}
809
+ #cam-overlay .cam-media > .node > .body > *{margin:0;}
759
810
  /* while presenting the box is empty so the camera overlay sits on plain background */
760
811
  /* while presenting, the empty box stays as a faint guide for lining up a camera overlay */
761
812
  body.presenting #pip{border-color:color-mix(in srgb, var(--accent-teal) 30%, transparent);background:none;}
@@ -980,7 +1031,7 @@
980
1031
  </code></pre>
981
1032
  <p>Your headings are the hierarchy: <code>#</code> is the first card, <code>##</code> branches from it, <code>###</code> goes a level deeper. Slidetake lays it out as a map you move through: → walks the path, and <strong>O</strong> zooms out to the whole talk, as this slide just did. The diagram is Graphviz, written as text in the deck.</p>
982
1033
  <h3>The camera is part of the deck</h3>
983
- <p>A comment in a slide moves you: corner, full screen, or off. Turn on <strong>Camera</strong> and watch this slide do it.</p>
1034
+ <p>A comment in a slide moves you: corner, full screen, beside the words, or a split screen. Turn on <strong>Camera</strong> and watch this slide do it.</p>
984
1035
  <h3>Your colours</h3>
985
1036
  <p>One line, <code>accent: &quot;#3b82f6&quot;</code>, gives a deck its own colour, shaded for dark and light. On your website, decks wear your site&#39;s palette.</p>
986
1037
  <p><code>brand:</code> and <code>logo:</code> put your name and logo in the corner of every slide, so every frame of the video carries them.</p>
@@ -1165,6 +1216,7 @@
1165
1216
  <div id="minimap"><div class="mm-label" id="mm-label">map</div><svg id="mm-svg" width="180" height="130"></svg></div>
1166
1217
  <div id="brand" hidden></div>
1167
1218
  <div id="pip" hidden><span>PIP camera</span></div>
1219
+ <div id="cam-overlay" aria-hidden="true"></div>
1168
1220
  <div id="pip-msg" role="status"></div>
1169
1221
  </div>
1170
1222
  <div id="editor-resizer" role="separator" aria-orientation="vertical" aria-label="Resize the editor" title="Drag to resize"></div>
@@ -1298,6 +1350,9 @@
1298
1350
  <h4>Camera</h4>
1299
1351
  <select id="rec-cam" aria-label="Camera"></select>
1300
1352
  <div class="setup-cam"><video id="rec-cam-preview" muted playsinline autoplay></video><span id="rec-cam-none">No camera</span></div>
1353
+ <div class="rv-setup-row">
1354
+ <label class="check rv-setup-label" title="Flip the camera left to right, like a mirror. Off, it shows you as others see you, and words on a shirt or sign read the right way."><input type="checkbox" id="rec-mirror"> Mirror</label>
1355
+ </div>
1301
1356
  <p class="rv-setup-note">Turns on by itself when recording starts. Choose No camera for slides only.</p>
1302
1357
  </section>
1303
1358
  <section class="for-browser">
@@ -1394,13 +1449,13 @@
1394
1449
  "use strict";
1395
1450
  (() => {
1396
1451
  // src/sample.md
1397
- var sample_default = '---\ntitle: Slidetake \u2014 write in markdown with AI, record without timeline editing\ndescription: "Write a deck in markdown, with AI, present it on a spatial canvas, and record it slide by slide: retake any slide, pick the best take, download the video. Open source."\nbrand: slidetake\npip: bottom-right\n---\n\n<!-- camera: on, full, on -->\n\n# ![](/favicon.svg) Slide<span class="st-take">take</span>\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 290" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n </defs>\n\n <!-- four panels -->\n <g style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5">\n <rect x="14" y="10" width="212" height="270" rx="18"/>\n <rect x="254" y="10" width="212" height="270" rx="18"/>\n <rect x="494" y="10" width="212" height="270" rx="18"/>\n <rect x="734" y="10" width="212" height="270" rx="18"/>\n </g>\n <g fill="none" style="stroke:var(--accent)" stroke-width="2.5" marker-end="url(#head)">\n <path d="M228 110 H251"/><path d="M468 110 H491"/><path d="M708 110 H731"/>\n </g>\n\n <!-- write: a markdown file, and the AI writing it -->\n <rect x="66" y="36" width="104" height="140" rx="11" style="fill:var(--node-bg);stroke:var(--accent)" stroke-width="2"/>\n <g font-family="IBM Plex Mono, monospace" font-size="13" font-weight="600" style="fill:var(--accent)">\n <text x="78" y="62">#</text><text x="78" y="112">##</text>\n </g>\n <g style="fill:var(--text-muted)" opacity=".55">\n <rect x="92" y="53" width="52" height="9" rx="4.5"/>\n <rect x="78" y="74" width="80" height="6" rx="3"/><rect x="78" y="86" width="60" height="6" rx="3"/>\n <rect x="100" y="103" width="46" height="9" rx="4.5"/>\n <rect x="78" y="124" width="80" height="6" rx="3"/><rect x="78" y="136" width="68" height="6" rx="3"/><rect x="78" y="148" width="50" height="6" rx="3"/>\n </g>\n <path d="M176 28 l6 14 14 6 -14 6 -6 14 -6 -14 -14 -6 14 -6z" style="fill:var(--accent)"/>\n\n <!-- present: cards on a path, the one on screen framed -->\n <g fill="none" style="stroke:var(--accent);stroke-opacity:.6" stroke-width="2">\n <path d="M310 58 H320 M358 58 H368 M387 71 V92 M406 105 H416"/>\n </g>\n <g style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent);stroke-opacity:.7" stroke-width="1.5">\n <rect x="272" y="45" width="38" height="26" rx="6"/><rect x="320" y="45" width="38" height="26" rx="6"/>\n <rect x="368" y="45" width="38" height="26" rx="6"/><rect x="368" y="92" width="38" height="26" rx="6"/>\n <rect x="416" y="92" width="38" height="26" rx="6"/>\n </g>\n <rect x="358" y="82" width="58" height="46" rx="9" fill="none" style="stroke:var(--accent)" stroke-width="3"/>\n <rect x="368" y="92" width="38" height="26" rx="6" style="fill:var(--accent);fill-opacity:.45"/>\n <g style="fill:var(--text-muted)" font-size="12">\n <text x="272" y="156">\u2192 walks the path</text><text x="272" y="174">O zooms out to all</text>\n </g>\n\n <!-- record: the red dot, in either mode -->\n <circle cx="600" cy="62" r="24" fill="none" stroke="#ef4444" stroke-opacity=".45" stroke-width="2"/>\n <circle cx="600" cy="62" r="14" fill="#ef4444"/>\n <g font-size="13" text-anchor="middle">\n <rect x="522" y="102" width="156" height="30" rx="15" style="fill:var(--node-bg)"/>\n <rect x="522" y="102" width="156" height="30" rx="15" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="1.5"/>\n <text x="600" y="122" fill="currentColor"><tspan font-weight="600">Easy</tspan> \xB7 Chrome</text>\n <rect x="522" y="142" width="156" height="30" rx="15" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.6" stroke-width="1.5"/>\n <text x="600" y="162" fill="currentColor"><tspan font-weight="600">Pro</tspan> \xB7 OBS</text>\n </g>\n\n <!-- edit: pick a take, get the video -->\n <g font-size="12" text-anchor="middle">\n <rect x="752" y="36" width="96" height="27" rx="8" fill="none" style="stroke:var(--text-muted);stroke-opacity:.6" stroke-width="1.5" stroke-dasharray="4 4"/>\n <text x="800" y="54" style="fill:var(--text-muted)">Take 1</text>\n <rect x="752" y="72" width="96" height="27" rx="8" style="fill:var(--node-bg)"/>\n <rect x="752" y="72" width="96" height="27" rx="8" style="fill:var(--accent);fill-opacity:.15;stroke:var(--accent)" stroke-width="2"/>\n <text x="800" y="90" fill="currentColor">Take 2 \u2713</text>\n </g>\n <path d="M850 86 C878 86 884 96 884 108" fill="none" style="stroke:var(--accent)" stroke-width="2.5" marker-end="url(#head)"/>\n <rect x="836" y="112" width="92" height="60" rx="10" style="fill:var(--node-bg);stroke:var(--accent)" stroke-width="2"/>\n <path d="M874 130 l16 12 -16 12z" style="fill:var(--accent)"/>\n\n <!-- the steps -->\n <g text-anchor="middle" fill="currentColor">\n <text x="120" y="222" font-size="20" font-weight="700">Write</text>\n <text x="120" y="248" font-size="14" style="fill:var(--text-muted)">in markdown, with AI</text>\n <text x="360" y="222" font-size="20" font-weight="700">Present</text>\n <text x="360" y="248" font-size="14" style="fill:var(--text-muted)">on a spatial canvas</text>\n <text x="600" y="222" font-size="20" font-weight="700">Record</text>\n <text x="600" y="248" font-size="14" style="fill:var(--text-muted)">slide by slide, retake any</text>\n <text x="840" y="222" font-size="20" font-weight="700">Edit</text>\n <text x="840" y="248" font-size="14" style="fill:var(--text-muted)">just pick the best take</text>\n </g>\n</svg>\n```\n\n<p style="text-align:center">For developers and technical educators who explain things on video. You\'re inside a Slidetake deck right now.</p>\n\n### \u23F1\uFE0F Hours, not days\n\nA video that takes two or three days to script, record and edit takes a couple of hours: an AI writes the deck, you record it slide by slide, and pick the best take of each in Studio. What comes out is ready to upload.\n\n## \u270D\uFE0F Write in markdown, with AI {#ai}\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 380" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <filter id="glow" x="-30%" y="-30%" width="160%" height="160%">\n <feGaussianBlur stdDeviation="9"/>\n </filter>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n </defs>\n\n <!-- the four steps -->\n <g>\n <rect x="16" y="40" width="196" height="150" rx="18" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <path d="M114 70 l7 17 17 7 -17 7 -7 17 -7 -17 -17 -7 17 -7z" style="fill:var(--accent)"/>\n <text x="114" y="150" text-anchor="middle" font-size="19" font-weight="600" fill="currentColor">Claude Code</text>\n <text x="114" y="173" text-anchor="middle" font-size="13" style="fill:var(--text-muted)">or any AI agent</text>\n </g>\n <g>\n <rect x="262" y="34" width="196" height="162" rx="18" style="fill:var(--accent)" filter="url(#glow)" opacity=".1"/>\n <rect x="262" y="40" width="196" height="150" rx="18" style="fill:var(--node-bg)"/>\n <rect x="262" y="40" width="196" height="150" rx="18" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M343 66 h26 l12 12 v34 h-38z" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-linejoin="round"/>\n <path d="M369 66 v12 h12" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-linejoin="round"/>\n <text x="360" y="150" text-anchor="middle" font-size="19" font-weight="600" font-family="IBM Plex Mono, monospace" fill="currentColor">deck.md</text>\n <text x="360" y="173" text-anchor="middle" font-size="13" style="fill:var(--text-muted)">text, dot, d2, echarts, svg</text>\n </g>\n <g>\n <rect x="508" y="40" width="196" height="150" rx="18" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <rect x="577" y="68" width="58" height="44" rx="7" fill="none" style="stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M588 82 l9 8 -9 8 M601 99 h12" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>\n <text x="606" y="150" text-anchor="middle" font-size="19" font-weight="600" font-family="IBM Plex Mono, monospace" fill="currentColor">npx slidetake</text>\n <text x="606" y="173" text-anchor="middle" font-size="13" style="fill:var(--text-muted)">serves it, watches the file</text>\n </g>\n <g>\n <rect x="754" y="40" width="190" height="150" rx="18" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <rect x="818" y="66" width="62" height="46" rx="7" fill="none" style="stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M818 78 h62" style="stroke:var(--accent)" stroke-width="2.5"/>\n <circle cx="826" cy="72" r="1.8" style="fill:var(--accent)"/><circle cx="833" cy="72" r="1.8" style="fill:var(--accent)"/>\n <rect x="828" y="86" width="22" height="16" rx="3" style="fill:var(--accent);fill-opacity:.55"/>\n <text x="849" y="150" text-anchor="middle" font-size="19" font-weight="600" fill="currentColor">Chrome</text>\n <text x="849" y="173" text-anchor="middle" font-size="13" style="fill:var(--text-muted)">redraws the slide you\'re on</text>\n </g>\n\n <!-- forward: write, save, reload -->\n <path d="M214 115 H256" fill="none" style="stroke:var(--accent)" stroke-width="3" marker-end="url(#head)"/>\n <path d="M460 115 H502" fill="none" style="stroke:var(--accent)" stroke-width="3" marker-end="url(#head)"/>\n <path d="M706 115 H748" fill="none" style="stroke:var(--accent)" stroke-width="3" marker-end="url(#head)"/>\n <text x="237" y="104" text-anchor="middle" font-size="12" style="fill:var(--text-muted)">writes</text>\n <text x="483" y="104" text-anchor="middle" font-size="12" style="fill:var(--text-muted)">saved</text>\n <text x="729" y="104" text-anchor="middle" font-size="12" style="fill:var(--text-muted)">reloads</text>\n\n <!-- back: you ask for a change -->\n <path d="M849 196 C849 300 780 330 480 330 C180 330 114 300 114 202" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-dasharray="7 7" marker-end="url(#head)"/>\n <rect x="300" y="306" width="360" height="48" rx="24" style="fill:var(--node-bg)"/>\n <rect x="300" y="306" width="360" height="48" rx="24" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="1.5"/>\n <text x="480" y="336" text-anchor="middle" font-size="16" fill="currentColor">You: <tspan font-style="italic">\u201Cmake the chart a donut\u201D</tspan></text>\n <text x="480" y="22" text-anchor="middle" font-size="13" font-weight="600" letter-spacing="2" style="fill:var(--accent)">EACH ROUND TRIP TAKES SECONDS</text>\n</svg>\n```\n\nAsk your AI for a change, and see it on the slide you\'re on in seconds.\n\n### Real diagrams and charts, as text\n\nAI already writes **Graphviz**, **D2**, **ECharts** and **SVG** well, so they arrive in the same reply as the words, drawn in your deck\'s colours for dark and light, and changed by asking. The diagram before this slide is one: SVG inside the markdown. Headings, lists, tables, code, steps, images and YouTube links too: [see them all in the showcase \u2192](/showcase)\n\n### Fewer tokens, nothing to fix\n\nThe AI writes only content: headings, text and a few comments. Slidetake does the rest: card sizes, the map, the camera moves. No CSS or layout code to generate, and none to repair.\n\n### A few comments do the rest\n\nMarkdown has no word for "reveal one at a time" or "move the camera", so a handful of HTML comments say it. They stay invisible anywhere else markdown is read:\n\n```md\n<!-- steps --> \u2190 one press each\n<!-- camera: full, on --> \u2190 move the camera\n<!-- view: overview --> \u2190 the map first\n<!-- view: full --> \u2190 a big image\n```\n\n## \u{1F5FA}\uFE0F Present on a spatial canvas\n\n<!-- view: overview -->\n\n```dot\ndigraph {\n rankdir=LR nodesep=0.25 ranksep=0.7\n node [shape=box style=rounded margin="0.3,0.1" fontsize=16 fontname="IBM Plex Mono"]\n edge [arrowsize=0.7]\n talk [label="# Talk"] why [label="## Why"] how [label="## How"]\n demo [label="## Demo"] detail [label="### Detail"]\n talk -> {why how demo}\n why -> detail\n}\n```\n\nYour headings are the hierarchy: `#` is the first card, `##` branches from it, `###` goes a level deeper. Slidetake lays it out as a map you move through: \u2192 walks the path, and **O** zooms out to the whole talk, as this slide just did. The diagram is Graphviz, written as text in the deck.\n\n### The camera is part of the deck\n\n<!-- camera: on, full, on -->\n\nA comment in a slide moves you: corner, full screen, or off. Turn on **Camera** and watch this slide do it.\n\n### Your colours\n\nOne line, `accent: "#3b82f6"`, gives a deck its own colour, shaded for dark and light. On your website, decks wear your site\'s palette.\n\n`brand:` and `logo:` put your name and logo in the corner of every slide, so every frame of the video carries them.\n\n## \u{1F534} Record slide by slide\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 190" font-family="IBM Plex Sans, system-ui, sans-serif">\n <!-- easy mode -->\n <rect x="14" y="10" width="452" height="170" rx="18" style="fill:var(--accent);fill-opacity:.1;stroke:var(--accent)" stroke-width="2"/>\n <rect x="38" y="52" width="92" height="68" rx="9" fill="none" style="stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M38 70 H130" style="stroke:var(--accent)" stroke-width="2.5"/>\n <circle cx="48" cy="61" r="2.2" style="fill:var(--accent)"/><circle cx="57" cy="61" r="2.2" style="fill:var(--accent)"/>\n <circle cx="84" cy="95" r="10" fill="#ef4444"/>\n <text x="156" y="58" font-size="21" font-weight="700" style="fill:var(--accent)">Easy mode</text>\n <text x="156" y="88" font-size="15" fill="currentColor">Chrome or Edge, nothing to install</text>\n <text x="156" y="114" font-size="15" fill="currentColor">The deck records itself: slides and</text>\n <text x="156" y="136" font-size="15" fill="currentColor">camera in one 16:9 frame, at 1080p</text>\n\n <!-- pro mode -->\n <rect x="494" y="10" width="452" height="170" rx="18" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.5" stroke-width="1.5"/>\n <circle cx="564" cy="86" r="36" fill="none" style="stroke:var(--accent)" stroke-width="2.5"/>\n <circle cx="564" cy="86" r="10" fill="#ef4444"/>\n <text x="626" y="58" font-size="21" font-weight="700" style="fill:var(--accent)">Pro mode</text>\n <text x="626" y="88" font-size="15" fill="currentColor">OBS Studio, from any browser</text>\n <text x="626" y="114" font-size="15" fill="currentColor">The deck starts and stops it, and</text>\n <text x="626" y="136" font-size="15" fill="currentColor">drives every slide: you only talk</text>\n</svg>\n```\n\nPress **<span class="st-rec">\u25CF Record</span>** (R). **Every slide is a take:** stumbled? Press \u2190 and say it again. Every attempt is kept, and recording carries on.\n\n## \u2702\uFE0F Edit by picking the best take\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 360" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n </defs>\n <text x="480" y="20" text-anchor="middle" font-size="13" font-weight="600" letter-spacing="2" style="fill:var(--accent)">EVERY ATTEMPT IS KEPT \xB7 PICK ONE PER SLIDE</text>\n\n <!-- slide headers -->\n <g font-size="15" font-weight="600" text-anchor="middle" fill="currentColor">\n <text x="140" y="56">Slide 1</text><text x="380" y="56">Slide 2</text><text x="620" y="56">Slide 3</text><text x="860" y="56">Slide 4</text>\n </g>\n\n <!-- takes: picked ones in the accent, the rest faded -->\n <g font-size="14" text-anchor="middle">\n <rect x="55" y="72" width="170" height="40" rx="10" style="fill:var(--node-bg)"/>\n <rect x="55" y="72" width="170" height="40" rx="10" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="140" y="97" fill="currentColor">Take 1 \u2713</text>\n\n <rect x="295" y="72" width="170" height="40" rx="10" fill="none" style="stroke:var(--text-muted);stroke-opacity:.5" stroke-width="1.5" stroke-dasharray="5 4"/>\n <text x="380" y="97" style="fill:var(--text-muted)">Take 1</text>\n <text x="380" y="134" font-size="13" font-weight="600" style="fill:var(--accent)">\u2190 again</text>\n <rect x="295" y="146" width="170" height="40" rx="10" style="fill:var(--node-bg)"/>\n <rect x="295" y="146" width="170" height="40" rx="10" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="380" y="171" fill="currentColor">Take 2 \u2713</text>\n\n <rect x="535" y="72" width="170" height="40" rx="10" style="fill:var(--node-bg)"/>\n <rect x="535" y="72" width="170" height="40" rx="10" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="620" y="97" fill="currentColor">Take 1 \u2713</text>\n\n <rect x="775" y="72" width="170" height="40" rx="10" fill="none" style="stroke:var(--text-muted);stroke-opacity:.5" stroke-width="1.5" stroke-dasharray="5 4"/>\n <text x="860" y="97" style="fill:var(--text-muted)">Take 1</text>\n <text x="860" y="134" font-size="13" font-weight="600" style="fill:var(--accent)">\u2190 again</text>\n <rect x="775" y="146" width="170" height="40" rx="10" fill="none" style="stroke:var(--text-muted);stroke-opacity:.5" stroke-width="1.5" stroke-dasharray="5 4"/>\n <text x="860" y="171" style="fill:var(--text-muted)">Take 2</text>\n <text x="860" y="208" font-size="13" font-weight="600" style="fill:var(--accent)">\u2190 again</text>\n <rect x="775" y="220" width="170" height="40" rx="10" style="fill:var(--node-bg)"/>\n <rect x="775" y="220" width="170" height="40" rx="10" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="860" y="245" fill="currentColor">Take 3 \u2713</text>\n </g>\n\n <!-- the picked takes, joined -->\n <g fill="none" style="stroke:var(--accent)" stroke-width="2" marker-end="url(#head)">\n <path d="M140 114 V292"/><path d="M380 188 V292"/><path d="M620 114 V292"/><path d="M860 262 V292"/>\n </g>\n <rect x="20" y="298" width="920" height="44" rx="12" style="fill:var(--accent);fill-opacity:.18;stroke:var(--accent)" stroke-width="2"/>\n <g style="stroke:var(--accent)" stroke-width="2"><path d="M260 298 V342 M500 298 V342 M740 298 V342"/></g>\n <g font-size="14" fill="currentColor" font-family="IBM Plex Mono, monospace">\n <text x="36" y="325">0:00 Slide 1</text><text x="276" y="325">Slide 2</text><text x="516" y="325">Slide 3</text><text x="756" y="325">Slide 4</text>\n </g>\n <text x="924" y="325" text-anchor="end" font-size="13" font-weight="600" style="fill:var(--accent)">one video</text>\n</svg>\n```\n\n**Pick the best of each** in \u25CF Studio: one video in seconds, at YouTube\'s loudness, with **chapters** to paste. With OBS, an **[ffmpeg](https://ffmpeg.org)** cut.\n\n## \u{1F310} Run it anywhere\n\nThree places, one deck format: a markdown file.\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 320" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n <filter id="glow" x="-30%" y="-30%" width="160%" height="160%"><feGaussianBlur stdDeviation="9"/></filter>\n </defs>\n\n <!-- one file -->\n <rect x="40" y="104" width="230" height="112" rx="18" style="fill:var(--accent)" filter="url(#glow)" opacity=".1"/>\n <rect x="40" y="110" width="230" height="100" rx="18" style="fill:var(--node-bg)"/>\n <rect x="40" y="110" width="230" height="100" rx="18" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M74 136 h22 l10 10 v30 h-32z M96 136 v10 h10" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-linejoin="round"/>\n <text x="122" y="160" font-size="21" font-weight="600" font-family="IBM Plex Mono, monospace" fill="currentColor">deck.md</text>\n <text x="122" y="184" font-size="13" style="fill:var(--text-muted)">one markdown file</text>\n\n <g fill="none" style="stroke:var(--accent)" stroke-width="2.5" marker-end="url(#head)">\n <path d="M272 150 C380 150 400 62 498 62"/>\n <path d="M272 160 H498"/>\n <path d="M272 170 C380 170 400 258 498 258"/>\n </g>\n\n <g>\n <rect x="504" y="20" width="430" height="84" rx="16" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="526" y="54" font-size="18" font-weight="600" fill="currentColor">slidetake.com</text>\n <text x="526" y="80" font-size="13" style="fill:var(--text-muted)">write, open from a link, record in \u25CF Studio, share</text>\n <rect x="504" y="118" width="430" height="84" rx="16" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="526" y="152" font-size="18" font-weight="600" fill="currentColor">Your computer \xB7 <tspan font-family="IBM Plex Mono, monospace" font-size="16">npx slidetake</tspan></text>\n <text x="526" y="178" font-size="13" style="fill:var(--text-muted)">the AI loop, local images, edits saved to the file</text>\n <rect x="504" y="216" width="430" height="84" rx="16" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="526" y="250" font-size="18" font-weight="600" fill="currentColor">Your website \xB7 <tspan font-family="IBM Plex Mono, monospace" font-size="16">slidetake.js</tspan></text>\n <text x="526" y="276" font-size="13" style="fill:var(--text-muted)">a viewer for your readers, in your site\'s colours</text>\n </g>\n</svg>\n```\n\n### slidetake.com: write, present, record, edit and share\n\nWrite a deck in the **\u270E Editor**, or view one straight from a link: a GitHub file, a gist or any markdown URL. Record it and cut the video in **\u25CF Studio**, in the same tab. **Share** a link with the deck inside it. Nothing to install.\n\n### Your computer: all that, plus AI\n\nThe same app on your own files, offline:\n\n```sh\nnpx slidetake deck.md\n```\n\nImages next to the markdown load as they are. Save in any editor and the deck reloads where you are; type in the browser and it saves to the file. That\'s [the AI loop](#ai): an agent writes `deck.md` while you watch it take shape.\n\n### Your website: a viewer for your readers\n\n`slidetake.js` puts decks inside your own pages, in your site\'s colours: a clean viewer, nothing else to set up. Record the same markdown here or with `npx slidetake`.\n\n## <span class="st-heart" aria-hidden="true"></span> Open source\n\nOpen source, Apache 2.0: [github.com/slidetake/slidetake](https://github.com/slidetake/slidetake). Nothing to sign up for, and your decks stay yours: [Privacy](/privacy).\n\nNext, every feature and what it saves you: **[Features \u2192](/features)**\n';
1452
+ var sample_default = '---\ntitle: Slidetake \u2014 write in markdown with AI, record without timeline editing\ndescription: "Write a deck in markdown, with AI, present it on a spatial canvas, and record it slide by slide: retake any slide, pick the best take, download the video. Open source."\nbrand: slidetake\npip: bottom-right\n---\n\n<!-- camera: on, full, on -->\n\n# ![](/favicon.svg) Slide<span class="st-take">take</span>\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 290" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n </defs>\n\n <!-- four panels -->\n <g style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5">\n <rect x="14" y="10" width="212" height="270" rx="18"/>\n <rect x="254" y="10" width="212" height="270" rx="18"/>\n <rect x="494" y="10" width="212" height="270" rx="18"/>\n <rect x="734" y="10" width="212" height="270" rx="18"/>\n </g>\n <g fill="none" style="stroke:var(--accent)" stroke-width="2.5" marker-end="url(#head)">\n <path d="M228 110 H251"/><path d="M468 110 H491"/><path d="M708 110 H731"/>\n </g>\n\n <!-- write: a markdown file, and the AI writing it -->\n <rect x="66" y="36" width="104" height="140" rx="11" style="fill:var(--node-bg);stroke:var(--accent)" stroke-width="2"/>\n <g font-family="IBM Plex Mono, monospace" font-size="13" font-weight="600" style="fill:var(--accent)">\n <text x="78" y="62">#</text><text x="78" y="112">##</text>\n </g>\n <g style="fill:var(--text-muted)" opacity=".55">\n <rect x="92" y="53" width="52" height="9" rx="4.5"/>\n <rect x="78" y="74" width="80" height="6" rx="3"/><rect x="78" y="86" width="60" height="6" rx="3"/>\n <rect x="100" y="103" width="46" height="9" rx="4.5"/>\n <rect x="78" y="124" width="80" height="6" rx="3"/><rect x="78" y="136" width="68" height="6" rx="3"/><rect x="78" y="148" width="50" height="6" rx="3"/>\n </g>\n <path d="M176 28 l6 14 14 6 -14 6 -6 14 -6 -14 -14 -6 14 -6z" style="fill:var(--accent)"/>\n\n <!-- present: cards on a path, the one on screen framed -->\n <g fill="none" style="stroke:var(--accent);stroke-opacity:.6" stroke-width="2">\n <path d="M310 58 H320 M358 58 H368 M387 71 V92 M406 105 H416"/>\n </g>\n <g style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent);stroke-opacity:.7" stroke-width="1.5">\n <rect x="272" y="45" width="38" height="26" rx="6"/><rect x="320" y="45" width="38" height="26" rx="6"/>\n <rect x="368" y="45" width="38" height="26" rx="6"/><rect x="368" y="92" width="38" height="26" rx="6"/>\n <rect x="416" y="92" width="38" height="26" rx="6"/>\n </g>\n <rect x="358" y="82" width="58" height="46" rx="9" fill="none" style="stroke:var(--accent)" stroke-width="3"/>\n <rect x="368" y="92" width="38" height="26" rx="6" style="fill:var(--accent);fill-opacity:.45"/>\n <g style="fill:var(--text-muted)" font-size="12">\n <text x="272" y="156">\u2192 walks the path</text><text x="272" y="174">O zooms out to all</text>\n </g>\n\n <!-- record: the red dot, in either mode -->\n <circle cx="600" cy="62" r="24" fill="none" stroke="#ef4444" stroke-opacity=".45" stroke-width="2"/>\n <circle cx="600" cy="62" r="14" fill="#ef4444"/>\n <g font-size="13" text-anchor="middle">\n <rect x="522" y="102" width="156" height="30" rx="15" style="fill:var(--node-bg)"/>\n <rect x="522" y="102" width="156" height="30" rx="15" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="1.5"/>\n <text x="600" y="122" fill="currentColor"><tspan font-weight="600">Easy</tspan> \xB7 Chrome</text>\n <rect x="522" y="142" width="156" height="30" rx="15" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.6" stroke-width="1.5"/>\n <text x="600" y="162" fill="currentColor"><tspan font-weight="600">Pro</tspan> \xB7 OBS</text>\n </g>\n\n <!-- edit: pick a take, get the video -->\n <g font-size="12" text-anchor="middle">\n <rect x="752" y="36" width="96" height="27" rx="8" fill="none" style="stroke:var(--text-muted);stroke-opacity:.6" stroke-width="1.5" stroke-dasharray="4 4"/>\n <text x="800" y="54" style="fill:var(--text-muted)">Take 1</text>\n <rect x="752" y="72" width="96" height="27" rx="8" style="fill:var(--node-bg)"/>\n <rect x="752" y="72" width="96" height="27" rx="8" style="fill:var(--accent);fill-opacity:.15;stroke:var(--accent)" stroke-width="2"/>\n <text x="800" y="90" fill="currentColor">Take 2 \u2713</text>\n </g>\n <path d="M850 86 C878 86 884 96 884 108" fill="none" style="stroke:var(--accent)" stroke-width="2.5" marker-end="url(#head)"/>\n <rect x="836" y="112" width="92" height="60" rx="10" style="fill:var(--node-bg);stroke:var(--accent)" stroke-width="2"/>\n <path d="M874 130 l16 12 -16 12z" style="fill:var(--accent)"/>\n\n <!-- the steps -->\n <g text-anchor="middle" fill="currentColor">\n <text x="120" y="222" font-size="20" font-weight="700">Write</text>\n <text x="120" y="248" font-size="14" style="fill:var(--text-muted)">in markdown, with AI</text>\n <text x="360" y="222" font-size="20" font-weight="700">Present</text>\n <text x="360" y="248" font-size="14" style="fill:var(--text-muted)">on a spatial canvas</text>\n <text x="600" y="222" font-size="20" font-weight="700">Record</text>\n <text x="600" y="248" font-size="14" style="fill:var(--text-muted)">slide by slide, retake any</text>\n <text x="840" y="222" font-size="20" font-weight="700">Edit</text>\n <text x="840" y="248" font-size="14" style="fill:var(--text-muted)">just pick the best take</text>\n </g>\n</svg>\n```\n\n<p style="text-align:center">For developers and technical educators who explain things on video. You\'re inside a Slidetake deck right now.</p>\n\n### \u23F1\uFE0F Hours, not days\n\nA video that takes two or three days to script, record and edit takes a couple of hours: an AI writes the deck, you record it slide by slide, and pick the best take of each in Studio. What comes out is ready to upload.\n\n## \u270D\uFE0F Write in markdown, with AI {#ai}\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 380" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <filter id="glow" x="-30%" y="-30%" width="160%" height="160%">\n <feGaussianBlur stdDeviation="9"/>\n </filter>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n </defs>\n\n <!-- the four steps -->\n <g>\n <rect x="16" y="40" width="196" height="150" rx="18" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <path d="M114 70 l7 17 17 7 -17 7 -7 17 -7 -17 -17 -7 17 -7z" style="fill:var(--accent)"/>\n <text x="114" y="150" text-anchor="middle" font-size="19" font-weight="600" fill="currentColor">Claude Code</text>\n <text x="114" y="173" text-anchor="middle" font-size="13" style="fill:var(--text-muted)">or any AI agent</text>\n </g>\n <g>\n <rect x="262" y="34" width="196" height="162" rx="18" style="fill:var(--accent)" filter="url(#glow)" opacity=".1"/>\n <rect x="262" y="40" width="196" height="150" rx="18" style="fill:var(--node-bg)"/>\n <rect x="262" y="40" width="196" height="150" rx="18" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M343 66 h26 l12 12 v34 h-38z" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-linejoin="round"/>\n <path d="M369 66 v12 h12" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-linejoin="round"/>\n <text x="360" y="150" text-anchor="middle" font-size="19" font-weight="600" font-family="IBM Plex Mono, monospace" fill="currentColor">deck.md</text>\n <text x="360" y="173" text-anchor="middle" font-size="13" style="fill:var(--text-muted)">text, dot, d2, echarts, svg</text>\n </g>\n <g>\n <rect x="508" y="40" width="196" height="150" rx="18" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <rect x="577" y="68" width="58" height="44" rx="7" fill="none" style="stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M588 82 l9 8 -9 8 M601 99 h12" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>\n <text x="606" y="150" text-anchor="middle" font-size="19" font-weight="600" font-family="IBM Plex Mono, monospace" fill="currentColor">npx slidetake</text>\n <text x="606" y="173" text-anchor="middle" font-size="13" style="fill:var(--text-muted)">serves it, watches the file</text>\n </g>\n <g>\n <rect x="754" y="40" width="190" height="150" rx="18" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <rect x="818" y="66" width="62" height="46" rx="7" fill="none" style="stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M818 78 h62" style="stroke:var(--accent)" stroke-width="2.5"/>\n <circle cx="826" cy="72" r="1.8" style="fill:var(--accent)"/><circle cx="833" cy="72" r="1.8" style="fill:var(--accent)"/>\n <rect x="828" y="86" width="22" height="16" rx="3" style="fill:var(--accent);fill-opacity:.55"/>\n <text x="849" y="150" text-anchor="middle" font-size="19" font-weight="600" fill="currentColor">Chrome</text>\n <text x="849" y="173" text-anchor="middle" font-size="13" style="fill:var(--text-muted)">redraws the slide you\'re on</text>\n </g>\n\n <!-- forward: write, save, reload -->\n <path d="M214 115 H256" fill="none" style="stroke:var(--accent)" stroke-width="3" marker-end="url(#head)"/>\n <path d="M460 115 H502" fill="none" style="stroke:var(--accent)" stroke-width="3" marker-end="url(#head)"/>\n <path d="M706 115 H748" fill="none" style="stroke:var(--accent)" stroke-width="3" marker-end="url(#head)"/>\n <text x="237" y="104" text-anchor="middle" font-size="12" style="fill:var(--text-muted)">writes</text>\n <text x="483" y="104" text-anchor="middle" font-size="12" style="fill:var(--text-muted)">saved</text>\n <text x="729" y="104" text-anchor="middle" font-size="12" style="fill:var(--text-muted)">reloads</text>\n\n <!-- back: you ask for a change -->\n <path d="M849 196 C849 300 780 330 480 330 C180 330 114 300 114 202" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-dasharray="7 7" marker-end="url(#head)"/>\n <rect x="300" y="306" width="360" height="48" rx="24" style="fill:var(--node-bg)"/>\n <rect x="300" y="306" width="360" height="48" rx="24" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="1.5"/>\n <text x="480" y="336" text-anchor="middle" font-size="16" fill="currentColor">You: <tspan font-style="italic">\u201Cmake the chart a donut\u201D</tspan></text>\n <text x="480" y="22" text-anchor="middle" font-size="13" font-weight="600" letter-spacing="2" style="fill:var(--accent)">EACH ROUND TRIP TAKES SECONDS</text>\n</svg>\n```\n\nAsk your AI for a change, and see it on the slide you\'re on in seconds.\n\n### Real diagrams and charts, as text\n\nAI already writes **Graphviz**, **D2**, **ECharts** and **SVG** well, so they arrive in the same reply as the words, drawn in your deck\'s colours for dark and light, and changed by asking. The diagram before this slide is one: SVG inside the markdown. Headings, lists, tables, code, steps, images and YouTube links too: [see them all in the showcase \u2192](/showcase)\n\n### Fewer tokens, nothing to fix\n\nThe AI writes only content: headings, text and a few comments. Slidetake does the rest: card sizes, the map, the camera moves. No CSS or layout code to generate, and none to repair.\n\n### A few comments do the rest\n\nMarkdown has no word for "reveal one at a time" or "move the camera", so a handful of HTML comments say it. They stay invisible anywhere else markdown is read:\n\n```md\n<!-- steps --> \u2190 one press each\n<!-- camera: full, on --> \u2190 move the camera\n<!-- view: overview --> \u2190 the map first\n<!-- view: full --> \u2190 a big image\n```\n\n## \u{1F5FA}\uFE0F Present on a spatial canvas\n\n<!-- view: overview -->\n\n```dot\ndigraph {\n rankdir=LR nodesep=0.25 ranksep=0.7\n node [shape=box style=rounded margin="0.3,0.1" fontsize=16 fontname="IBM Plex Mono"]\n edge [arrowsize=0.7]\n talk [label="# Talk"] why [label="## Why"] how [label="## How"]\n demo [label="## Demo"] detail [label="### Detail"]\n talk -> {why how demo}\n why -> detail\n}\n```\n\nYour headings are the hierarchy: `#` is the first card, `##` branches from it, `###` goes a level deeper. Slidetake lays it out as a map you move through: \u2192 walks the path, and **O** zooms out to the whole talk, as this slide just did. The diagram is Graphviz, written as text in the deck.\n\n### The camera is part of the deck\n\n<!-- camera: on, full, on -->\n\nA comment in a slide moves you: corner, full screen, beside the words, or a split screen. Turn on **Camera** and watch this slide do it.\n\n### Your colours\n\nOne line, `accent: "#3b82f6"`, gives a deck its own colour, shaded for dark and light. On your website, decks wear your site\'s palette.\n\n`brand:` and `logo:` put your name and logo in the corner of every slide, so every frame of the video carries them.\n\n## \u{1F534} Record slide by slide\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 190" font-family="IBM Plex Sans, system-ui, sans-serif">\n <!-- easy mode -->\n <rect x="14" y="10" width="452" height="170" rx="18" style="fill:var(--accent);fill-opacity:.1;stroke:var(--accent)" stroke-width="2"/>\n <rect x="38" y="52" width="92" height="68" rx="9" fill="none" style="stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M38 70 H130" style="stroke:var(--accent)" stroke-width="2.5"/>\n <circle cx="48" cy="61" r="2.2" style="fill:var(--accent)"/><circle cx="57" cy="61" r="2.2" style="fill:var(--accent)"/>\n <circle cx="84" cy="95" r="10" fill="#ef4444"/>\n <text x="156" y="58" font-size="21" font-weight="700" style="fill:var(--accent)">Easy mode</text>\n <text x="156" y="88" font-size="15" fill="currentColor">Chrome or Edge, nothing to install</text>\n <text x="156" y="114" font-size="15" fill="currentColor">The deck records itself: slides and</text>\n <text x="156" y="136" font-size="15" fill="currentColor">camera in one 16:9 frame, at 1080p</text>\n\n <!-- pro mode -->\n <rect x="494" y="10" width="452" height="170" rx="18" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.5" stroke-width="1.5"/>\n <circle cx="564" cy="86" r="36" fill="none" style="stroke:var(--accent)" stroke-width="2.5"/>\n <circle cx="564" cy="86" r="10" fill="#ef4444"/>\n <text x="626" y="58" font-size="21" font-weight="700" style="fill:var(--accent)">Pro mode</text>\n <text x="626" y="88" font-size="15" fill="currentColor">OBS Studio, from any browser</text>\n <text x="626" y="114" font-size="15" fill="currentColor">The deck starts and stops it, and</text>\n <text x="626" y="136" font-size="15" fill="currentColor">drives every slide: you only talk</text>\n</svg>\n```\n\nPress **<span class="st-rec">\u25CF Record</span>** (R). **Every slide is a take:** stumbled? Press \u2190 and say it again. Every attempt is kept, and recording carries on.\n\n## \u2702\uFE0F Edit by picking the best take\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 360" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n </defs>\n <text x="480" y="20" text-anchor="middle" font-size="13" font-weight="600" letter-spacing="2" style="fill:var(--accent)">EVERY ATTEMPT IS KEPT \xB7 PICK ONE PER SLIDE</text>\n\n <!-- slide headers -->\n <g font-size="15" font-weight="600" text-anchor="middle" fill="currentColor">\n <text x="140" y="56">Slide 1</text><text x="380" y="56">Slide 2</text><text x="620" y="56">Slide 3</text><text x="860" y="56">Slide 4</text>\n </g>\n\n <!-- takes: picked ones in the accent, the rest faded -->\n <g font-size="14" text-anchor="middle">\n <rect x="55" y="72" width="170" height="40" rx="10" style="fill:var(--node-bg)"/>\n <rect x="55" y="72" width="170" height="40" rx="10" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="140" y="97" fill="currentColor">Take 1 \u2713</text>\n\n <rect x="295" y="72" width="170" height="40" rx="10" fill="none" style="stroke:var(--text-muted);stroke-opacity:.5" stroke-width="1.5" stroke-dasharray="5 4"/>\n <text x="380" y="97" style="fill:var(--text-muted)">Take 1</text>\n <text x="380" y="134" font-size="13" font-weight="600" style="fill:var(--accent)">\u2190 again</text>\n <rect x="295" y="146" width="170" height="40" rx="10" style="fill:var(--node-bg)"/>\n <rect x="295" y="146" width="170" height="40" rx="10" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="380" y="171" fill="currentColor">Take 2 \u2713</text>\n\n <rect x="535" y="72" width="170" height="40" rx="10" style="fill:var(--node-bg)"/>\n <rect x="535" y="72" width="170" height="40" rx="10" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="620" y="97" fill="currentColor">Take 1 \u2713</text>\n\n <rect x="775" y="72" width="170" height="40" rx="10" fill="none" style="stroke:var(--text-muted);stroke-opacity:.5" stroke-width="1.5" stroke-dasharray="5 4"/>\n <text x="860" y="97" style="fill:var(--text-muted)">Take 1</text>\n <text x="860" y="134" font-size="13" font-weight="600" style="fill:var(--accent)">\u2190 again</text>\n <rect x="775" y="146" width="170" height="40" rx="10" fill="none" style="stroke:var(--text-muted);stroke-opacity:.5" stroke-width="1.5" stroke-dasharray="5 4"/>\n <text x="860" y="171" style="fill:var(--text-muted)">Take 2</text>\n <text x="860" y="208" font-size="13" font-weight="600" style="fill:var(--accent)">\u2190 again</text>\n <rect x="775" y="220" width="170" height="40" rx="10" style="fill:var(--node-bg)"/>\n <rect x="775" y="220" width="170" height="40" rx="10" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="860" y="245" fill="currentColor">Take 3 \u2713</text>\n </g>\n\n <!-- the picked takes, joined -->\n <g fill="none" style="stroke:var(--accent)" stroke-width="2" marker-end="url(#head)">\n <path d="M140 114 V292"/><path d="M380 188 V292"/><path d="M620 114 V292"/><path d="M860 262 V292"/>\n </g>\n <rect x="20" y="298" width="920" height="44" rx="12" style="fill:var(--accent);fill-opacity:.18;stroke:var(--accent)" stroke-width="2"/>\n <g style="stroke:var(--accent)" stroke-width="2"><path d="M260 298 V342 M500 298 V342 M740 298 V342"/></g>\n <g font-size="14" fill="currentColor" font-family="IBM Plex Mono, monospace">\n <text x="36" y="325">0:00 Slide 1</text><text x="276" y="325">Slide 2</text><text x="516" y="325">Slide 3</text><text x="756" y="325">Slide 4</text>\n </g>\n <text x="924" y="325" text-anchor="end" font-size="13" font-weight="600" style="fill:var(--accent)">one video</text>\n</svg>\n```\n\n**Pick the best of each** in \u25CF Studio: one video in seconds, at YouTube\'s loudness, with **chapters** to paste. With OBS, an **[ffmpeg](https://ffmpeg.org)** cut.\n\n## \u{1F310} Run it anywhere\n\nThree places, one deck format: a markdown file.\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 320" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n <filter id="glow" x="-30%" y="-30%" width="160%" height="160%"><feGaussianBlur stdDeviation="9"/></filter>\n </defs>\n\n <!-- one file -->\n <rect x="40" y="104" width="230" height="112" rx="18" style="fill:var(--accent)" filter="url(#glow)" opacity=".1"/>\n <rect x="40" y="110" width="230" height="100" rx="18" style="fill:var(--node-bg)"/>\n <rect x="40" y="110" width="230" height="100" rx="18" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M74 136 h22 l10 10 v30 h-32z M96 136 v10 h10" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-linejoin="round"/>\n <text x="122" y="160" font-size="21" font-weight="600" font-family="IBM Plex Mono, monospace" fill="currentColor">deck.md</text>\n <text x="122" y="184" font-size="13" style="fill:var(--text-muted)">one markdown file</text>\n\n <g fill="none" style="stroke:var(--accent)" stroke-width="2.5" marker-end="url(#head)">\n <path d="M272 150 C380 150 400 62 498 62"/>\n <path d="M272 160 H498"/>\n <path d="M272 170 C380 170 400 258 498 258"/>\n </g>\n\n <g>\n <rect x="504" y="20" width="430" height="84" rx="16" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="526" y="54" font-size="18" font-weight="600" fill="currentColor">slidetake.com</text>\n <text x="526" y="80" font-size="13" style="fill:var(--text-muted)">write, open from a link, record in \u25CF Studio, share</text>\n <rect x="504" y="118" width="430" height="84" rx="16" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="526" y="152" font-size="18" font-weight="600" fill="currentColor">Your computer \xB7 <tspan font-family="IBM Plex Mono, monospace" font-size="16">npx slidetake</tspan></text>\n <text x="526" y="178" font-size="13" style="fill:var(--text-muted)">the AI loop, local images, edits saved to the file</text>\n <rect x="504" y="216" width="430" height="84" rx="16" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="526" y="250" font-size="18" font-weight="600" fill="currentColor">Your website \xB7 <tspan font-family="IBM Plex Mono, monospace" font-size="16">slidetake.js</tspan></text>\n <text x="526" y="276" font-size="13" style="fill:var(--text-muted)">a viewer for your readers, in your site\'s colours</text>\n </g>\n</svg>\n```\n\n### slidetake.com: write, present, record, edit and share\n\nWrite a deck in the **\u270E Editor**, or view one straight from a link: a GitHub file, a gist or any markdown URL. Record it and cut the video in **\u25CF Studio**, in the same tab. **Share** a link with the deck inside it. Nothing to install.\n\n### Your computer: all that, plus AI\n\nThe same app on your own files, offline:\n\n```sh\nnpx slidetake deck.md\n```\n\nImages next to the markdown load as they are. Save in any editor and the deck reloads where you are; type in the browser and it saves to the file. That\'s [the AI loop](#ai): an agent writes `deck.md` while you watch it take shape.\n\n### Your website: a viewer for your readers\n\n`slidetake.js` puts decks inside your own pages, in your site\'s colours: a clean viewer, nothing else to set up. Record the same markdown here or with `npx slidetake`.\n\n## <span class="st-heart" aria-hidden="true"></span> Open source\n\nOpen source, Apache 2.0: [github.com/slidetake/slidetake](https://github.com/slidetake/slidetake). Nothing to sign up for, and your decks stay yours: [Privacy](/privacy).\n\nNext, every feature and what it saves you: **[Features \u2192](/features)**\n';
1398
1453
 
1399
1454
  // src/docs.md
1400
- var docs_default = '---\ntitle: Slidetake Docs\ndescription: "How to use Slidetake, step by step: get started, write a deck, present it, record a video in the browser or with OBS, and share it."\nbrand: slidetake\npip: none\n---\n\n# ![](/favicon.svg) Slide<span class="st-take">take</span> Docs\n\nEverything in order: **get started \u2192 write \u2192 present \u2192 record \u2192 edit \u2192 share**. Press \u2192 to walk it, \u2193 \u2191 to go into a step and back out, **O** for the map.\n\n## 1\uFE0F\u20E3 Get started\n\nThree places to use Slidetake, one deck format for all of them: a markdown file. And any AI can write the deck.\n\n| Where | Best for |\n|---|---|\n| **slidetake.com** | writing in the Editor, viewing any deck from a link, sharing |\n| **Your computer** | the same on your own files and images, offline, with an AI agent writing alongside |\n| **Your website** | decks your readers view |\n\n### On slidetake.com\n\nOpen a deck straight from a link: a GitHub file, a gist or any markdown URL. Or press **\u270E Editor** and type: the first keystroke makes it [your copy](#your-copy), kept in this browser.\n\n| Link | Opens |\n|---|---|\n| `/gh/owner/repo/path/deck.md` | a GitHub file, default branch |\n| `/gh/owner/repo@branch/deck.md` | another branch or tag |\n| `/gist/<id>` | a gist\'s first markdown file |\n| `/?src=https://\u2026/deck.md` | anything else |\n| `/new` | a template: blank, talk or recording |\n\n### On your computer\n\nKeep the deck and its images together in a folder, and run one command there:\n\n```sh\nnpx slidetake deck.md\n```\n\nIt opens on `http://localhost:4300` with the files next to the deck served beside it, so `![](diagram.png)` just works. Save the file in any editor and the deck reloads where you are; type in the browser\'s editor and it saves to the file. Nothing leaves your machine. Needs Node 20 or later.\n\n`npx slidetake` in a folder opens its `index.md`, `deck.md`, `slides.md` or `README.md`. `--open` opens the browser; `--port 5000` picks the port.\n\n### On your website\n\n`slidetake.js` turns a deck on any page into a Slidetake deck. Describe the deck, then load the script:\n\n```html\n<script>\nwindow.SLIDETAKE = {\n markdown: "# My deck\\n\\n## A section",\n settings: {title: "My deck"},\n base: location.href, // for images\n trail: [{label: "My site", url: "/"}],\n themeKey: "my-theme", // your light/dark key\n colors: {accent: "#2563eb"} // your colours\n};\n<\/script>\n<script src="https://cdn.jsdelivr.net/npm/slidetake/dist/slidetake.js"><\/script>\n```\n\nA viewer for your readers. To record, open the deck\'s markdown here or with `npx slidetake`, or add `recording: true` on a page only you see, such as your site\'s local preview. The hugo-continuum theme writes this for pages with `engine: slidetake`, with recording under `hugo server`.\n\n### With AI\n\nAny AI can write a deck: point it at [slidetake.com/llms.txt](/llms.txt) and say what the talk is about.\n\n- **An agent** (Claude Code and the like): *"Write a Slidetake deck about X in talk/deck.md, following slidetake.com/llms.txt"*, then `npx slidetake talk/deck.md`. The deck reloads as it edits.\n- **A chat**: ask for one markdown block, then paste it into **\u270E Editor** here.\n- **Images**: beside the file for an agent; full URLs in a chat.\n\n### A prompt to copy\n\nPaste this into any AI and change the first line:\n\n```text\nWrite a Slidetake deck about <topic>, a 10-minute talk.\nFollow https://slidetake.com/llms.txt.\nA # title card, then 4\u20136 ## sections of 1\u20133 ### cards.\n<!-- steps --> before lists; a ```dot or ```d2 diagram\nwhere a picture helps. Reply with one markdown block.\n```\n\n## 2\uFE0F\u20E3 Write a deck\n\nA deck is an ordinary markdown file. **Every heading becomes a card**, and a heading branches off the nearest shallower heading above it.\n\n```md\n# Product \u2190 the first card\nIntro text.\n\n## Pricing \u2190 from Product\n### Enterprise \u2190 from Pricing\n## Roadmap {#plan} \u2190 from Product, id "plan"\n\nSee the [roadmap](#plan).\n```\n\n### Cards\n\n- Text before the first heading becomes a card of its own.\n- Headings inside fenced code blocks are ignored.\n- A card\'s id is its heading slugified (`## Moving around` \u2192 `moving-around`), or set one with `{#id}` at the end of the heading.\n- A link to `#id` flies to that card.\n- Cards widen for wide tables, columns, diagrams and embeds; anything wider still is scaled to fit.\n\n### What a card can hold\n\nPlain markdown, and the layout follows from what\'s on the card. [See every one in the showcase \u2192](/showcase)\n\n| Write | Get |\n|---|---|\n| `<!-- steps -->` | what follows, one press each, to the end of the card or a `<!-- steps: off -->` |\n| ` ```dot `, ` ```d2 ` | a Graphviz or D2 diagram, in the deck\'s colours |\n| ` ```echarts ` with JSON options | a chart, in the deck\'s colours |\n| ` ```svg ` | an SVG drawing: `currentColor` and `var(--text)`, `var(--accent)` follow dark and light |\n| a YouTube link alone on a line | the video: the next press plays it |\n| `<!-- view: full -->` | a 16:9 card for a big image |\n\nThe first and last cards animate in on their own.\n\n### Images\n\nThe layout follows from where the images are. The alt text is the caption.\n\n| Write | Get |\n|---|---|\n| an image alone | an image card, laid out by its shape: phone, landscape or 16:9 |\n| an image and text | a split card, the image on the side written first |\n| a list of images, diagrams or charts | a gallery; after `<!-- steps -->`, a carousel |\n| images in one paragraph | a grid, up to four a row |\n| `![](drawing.svg)` | an SVG image, as drawn |\n\n### Deck settings\n\nAn optional block at the top of the file:\n\n```yaml\n---\ntitle: My talk \u2190 page and video title\nduration: 10m \u2190 for the timer\naccent: "#3b82f6" \u2190 the deck\'s colour\nmode: light \u2190 open in light mode\nbrand: example.com \u2190 top-right corner text\nbrand_style: chip \u2190 the brand as a pill\nlogo: https://\u2026/l.png \u2190 image beside it\nbase: https://\u2026/deck/ \u2190 where images live\nsite: https://\u2026/ \u2190 where /images live\n---\n```\n\n`accent` is one colour; Slidetake makes it bright for dark mode and deep enough to read on white for light mode, and uses it for text accents, lines, charts and diagrams. Camera and recording settings are in [step 4](#4-record-a-video).\n\n### Decks from elsewhere\n\n**reveal.js** decks open as they are: `---` starts a slide and `--` a vertical one beneath it. Fragments (`fade-up`, `grow`, \u2026), `r-stack`, `<!-- .element: \u2026 -->`, `<section>` slides, `data-autoslide`, `data-gsap` entrances and `title-scramble` all work.\n\n**Older `+++` decks**, with `id`, `parent`, `x`, `y` frontmatter, still load.\n\n## 3\uFE0F\u20E3 Present\n\nClick a card to fly to it. Drag to pan; scroll or pinch to zoom. On a touch screen, the bottom bar adds \u2190 \u2192 buttons.\n\n| Key | Does |\n|---|---|\n| \u2192 \u2190 Space | next / previous step, in document order (PgDn and PgUp too: what clickers send) |\n| Home End | first / last slide |\n| \u2193 \u2191 | first child / parent |\n| O | the whole map; **O** again or Esc goes back |\n| F | fullscreen; **F** again or Esc leaves |\n| K, / or ? | these keys; again closes them |\n| 1 2 3 4 | focus, path, radial, tree |\n| + \u2212 | bigger / smaller slides (remembered; = works for +) |\n| E \xB7 L | editor \xB7 light / dark |\n| C \xB7 V | camera \xB7 camera layouts |\n| R \xB7 S | record \xB7 Studio |\n| P \xB7 D | in Studio: preview \xB7 download |\n\n### Layouts\n\n**Focus** doesn\'t travel at all: the next slide fades in where the last one was.\n\n**Path**, the default, is made for presenting and video: a staircase in presenting order. Each section is a row, and the next one starts just below where the last ended, so every move is a short step right or down.\n\n**Radial** rings out from the first card, and **tree** is a top-down chart.\n\nThe layout you pick is remembered in this browser, for every deck.\n\n### On screen\n\nText keeps one size within a section and only changes when the section does; charts and diagrams are fitted on their own.\n\n`<!-- view: overview -->` on a slide pulls back to the whole map for a beat before flying in: a good start to a chapter.\n\n### Progress and timer\n\nIn fullscreen the cursor and controls hide after two seconds without the mouse moving, and a thin bar along the bottom fills with every press.\n\nWith `duration: 10m` (or `90s`, `1h`, `12:30`), a lighter layer of the same colour grows behind it with the clock: if it shows past the solid fill, you\'re behind; if it reaches the end, the bar pulses. The timer is for you, so recordings show progress only, unless the deck says `timer: always`. `progress: off` hides the bar.\n\n## 4\uFE0F\u20E3 Record a video\n\nTwo modes, both slide by slide, so there\'s no timeline to edit afterwards. **\u25CF Record** in the bottom bar (or **R**) starts a take: the first time it opens Setup, then it records the slides without a take. **\u25CF Studio** (or **S**) is for picking takes and redoing slides; its \u2699 Setup switches between the modes.\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 330" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n </defs>\n\n <!-- lanes -->\n <rect x="10" y="20" width="940" height="140" rx="18" style="fill:var(--accent);fill-opacity:.04"/>\n <rect x="10" y="176" width="940" height="140" rx="18" style="fill:var(--accent);fill-opacity:.04"/>\n <text x="30" y="80" font-size="20" font-weight="700" style="fill:var(--accent)">Easy mode</text>\n <text x="30" y="104" font-size="13" style="fill:var(--text-muted)">needs nothing</text>\n <text x="30" y="122" font-size="13" style="fill:var(--text-muted)">to install</text>\n <text x="30" y="236" font-size="20" font-weight="700" style="fill:var(--accent)">Pro mode</text>\n <text x="30" y="260" font-size="13" style="fill:var(--text-muted)">needs OBS</text>\n <text x="30" y="278" font-size="13" style="fill:var(--text-muted)">and ffmpeg</text>\n\n <g font-size="15" font-weight="600" text-anchor="middle" fill="currentColor">\n <rect x="180" y="50" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="255" y="84">Chrome or Edge</text>\n <rect x="374" y="50" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="449" y="84">records the</text><text x="449" y="104">16:9 frame</text>\n <rect x="568" y="50" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="643" y="84">takes kept</text><text x="643" y="104">in the browser</text>\n <rect x="762" y="50" width="150" height="80" rx="14" style="fill:var(--node-bg)"/>\n <rect x="762" y="50" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="837" y="84">\u2193 Download</text><text x="837" y="104" font-weight="400" font-size="13" style="fill:var(--text-muted)">one MP4</text>\n\n <rect x="180" y="206" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="255" y="240">any browser</text><text x="255" y="260" font-weight="400" font-size="13" style="fill:var(--text-muted)">Safari, Firefox too</text>\n <rect x="374" y="206" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="449" y="240">OBS records</text><text x="449" y="260">the screen</text>\n <rect x="568" y="206" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="643" y="240">one recording,</text><text x="643" y="260">every take in it</text>\n <rect x="762" y="206" width="150" height="80" rx="14" style="fill:var(--node-bg)"/>\n <rect x="762" y="206" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="837" y="240">\u29C9 ffmpeg</text><text x="837" y="260" font-weight="400" font-size="13" style="fill:var(--text-muted)">the frame-exact cut</text>\n </g>\n <g fill="none" style="stroke:var(--accent)" stroke-width="2.5" marker-end="url(#head)">\n <path d="M332 90 H372"/><path d="M526 90 H566"/><path d="M720 90 H760"/>\n <path d="M332 246 H372"/><path d="M526 246 H566"/><path d="M720 246 H760"/>\n </g>\n</svg>\n```\n\n### Which mode?\n\n| | Easy mode: in the browser | Pro mode: with OBS |\n|---|---|---|\n| Install | nothing | [OBS Studio](https://obsproject.com) and [ffmpeg](https://ffmpeg.org), both free; a virtual display if your screen isn\'t 16:9 |\n| Browser | Chrome, Edge or another Chromium browser | any: Safari and Firefox too |\n| Screen | any shape: the deck is recorded in a 16:9 frame | a 16:9 screen, physical or virtual |\n| Quality | 1080p, or 720p on a smaller screen | whatever OBS records |\n| Final video | **Download** joins the picked takes, in the browser | an ffmpeg command |\n\n### Easy mode: record in the browser\n\n1. **\u25CF Record** (R) the first time opens **\u2699 Setup**: pick your camera (or **No camera**) and microphone. Recording turns the camera on and off by itself.\n2. **\u25CF Record** again, and share **this tab** when the browser asks. Only the 16:9 frame is recorded: slides and camera.\n3. Next time, **\u25CF Record** carries on with the slides that have no take yet. When every slide has one, it records from the slide on screen to the end.\n\nFor 1080p the frame needs 1920\xD71080 real pixels (a Retina laptop has them); 1280\xD7720 makes 720p. Smaller: use pro mode.\n\n### Retake slides later\n\nTick slides (shift-click for a range): **\u25CF Record** records just those, then stops.\n\nA take starts with the move in from the slide before it. So when you edit a slide, its takes and the next slide\'s are marked *outdated*: kept, but not picked until you record them again.\n\nTo drop a slide, delete it, then record the slide after it again.\n\n### Takes stay in this browser\n\nEach take is a file in this browser\'s private storage until you purge it, in \u2699 Setup \u2192 Files:\n\n| Purge | Removes |\n|---|---|\n| **Unused takes** | takes the video doesn\'t use |\n| **All takes** | this deck\'s takes |\n| **Every deck\'s takes\u2026** | everything Slidetake keeps here; it says how much first |\n\n### Pro mode: set up OBS\n\n1. In OBS: Tools \u2192 WebSocket Server Settings, turn it on.\n2. In Studio\'s **\u2699 Setup**, turn on **Pro** (top right), enter OBS\'s host, port and password, and **Connect**. Tick *Remember*.\n3. Present on a 16:9 screen, physical or virtual (say 1920\xD71080). Setup checks it.\n\nStudio opens in the mode you used last: its title says **Slidetake Studio Pro** in pro mode, with the size (`1080p`) beside it, and the camera and microphone a take uses on the right.\n\n### A 16:9 screen\n\nYouTube is 16:9. If your screen isn\'t (a MacBook is 16:10, an ultrawide 21:9), add a virtual 1920\xD71080 display, present there with **F**, and point OBS at it:\n\n| System | Virtual display |\n|---|---|\n| macOS | [BetterDisplay](https://github.com/waydabber/BetterDisplay) |\n| Windows | [Virtual Display Driver](https://github.com/VirtualDrivers/Virtual-Display-Driver) |\n| Linux | `xrandr` (X11), or a dummy HDMI plug |\n\nA dummy HDMI plug works on any system.\n\n### Connect from the address\n\n`?obs=localhost:4455` (or `?obs=localhost:4455:password`) in the address connects to OBS as the page opens. OBS runs on the same computer as the deck.\n\n### Add your camera\n\n**C** (or **Camera**) turns your webcam on in its box while presenting. A recording doesn\'t depend on it: it turns on the camera chosen for the deck (or none) by itself. The camera is off every time the page opens; until it\'s on, the deck\'s camera settings are ignored, so readers get slides using the whole screen.\n\n```yaml\n---\npip: bottom-right \u2190 corner, or none\npip_size: 24% \u2190 box width\npip_shape: rect \u2190 or circle\npip_mirror: yes \u2190 mirror the webcam\ncamera: 24%, full, off \u2190 what V cycles\n---\n```\n\nSlides are always placed clear of the brand and the camera box.\n\n### Move the camera per slide\n\nA comment in a slide changes the camera from that slide on:\n\n```md\n## Intro\n<!-- camera: full --> \u2190 fills the screen\n\n## Pricing\n<!-- camera: 18% flip --> \u2190 small, other side\n```\n\nWords you can combine: `on`, `off`, `full`, `behind` (the camera fills the frame under the slide, which stays on top: a talking head with slides), a size like `30%`, a corner, `flip`, `circle` / `rect`, `mirror` / `unmirror`. List them with commas to step through them on one slide: `full, on` opens on you, and the next \u2192 shrinks the camera to its corner and shows the slide.\n\n**V** steps through the deck\'s `camera:` list by hand.\n\n### Take by take\n\n**\u25CF Record** (R) counts down and starts. From then on \u2192 drives everything: slides, reveals and camera moves (a Bluetooth clicker works).\n\n- **\u2190** takes the slide again. The deck goes back and replays the slide\'s entry, so whichever take you pick joins smoothly\n- **B** (or **.**, a clicker\'s blank-screen key) pauses and resumes\n- one press past the last step ends the take; **Esc** ends it early\n\n## 5\uFE0F\u20E3 Edit the video\n\nWhen the take ends you\'re back in **Slidetake Studio**, the same in both modes:\n\n- the player, with **\u25CF Record** and **\u25B6 Preview** under it\n- every slide and its takes on the right: click one to preview it\n- **\u29C9 Chapters** copies the chapters (`0:00 Intro`, one per section) for the YouTube description. YouTube needs at least three, each 10 seconds or more\n\n### Download (easy mode)\n\n**\u25B6 Preview** plays the picked takes back to back.\n\n**\u2193 Download** joins them into one MP4 in seconds, without re-encoding the video, in a folder you pick once: `deck 2026-10-30 20-04-49.mp4`. Pressed again with nothing changed, it says where the video already is.\n\n### The ffmpeg cut (pro mode)\n\nStudio shows the deck\'s latest OBS recording; recording again replaces it here (the old file stays in your OBS folder).\n\nPreviews come from the OBS file: open it once, or, in Chrome and Edge, pick your OBS folder and later recordings load by themselves.\n\n**\u29C9 ffmpeg** copies a command that cuts the picked takes, frame-exact. \u2699 Setup \u2192 Video sets how it encodes.\n\n### Sound\n\nIn \u2699 Setup \u2192 Microphone:\n\n| Setting | Does |\n|---|---|\n| **Voice** (default) | Chrome\'s noise suppression: fans, hum, steady noise |\n| **Raw** | the mic as it is: for a good mic in a quiet room |\n| **\u{1F50A} Volume boost** (on) | raises the voice to YouTube\'s \u221214 LUFS, never past a \u22121.5 dB peak |\n| **Peak limiter** (off) | catches the few loud peaks, so the boost goes all the way |\n\nYouTube turns loud videos down but not quiet ones up, so without the boost your voice sounds quiet. With OBS, Volume boost adds `loudnorm` to the ffmpeg command.\n\n## 6\uFE0F\u20E3 Share and keep\n\nEvery deck you open is **read-only**: Slidetake\'s own decks, templates, files on the web and shared links. Viewing one never changes anything.\n\n### Your copy\n\n**Type in a deck**, and it becomes your copy, at `/edit`. It lives in this browser, remembers where it came from, and is there whenever you come back: **Your copy \u2192** in the editor takes you to it.\n\n- There\'s one copy at a time; the editor bar says whose it is, and marks **edited** while it has changes you haven\'t saved or shared.\n- **Reset to original** throws your edits away.\n- Starting a new copy asks first if the old one has edits you haven\'t kept.\n\n### Save and share\n\n**Save** downloads the markdown. **Share** copies a link: the short link while your copy still matches an online original, otherwise a `/share#deflate:\u2026` link with the whole deck compressed inside it. That part of a link never reaches a server. **Open** loads a markdown file from your computer into your copy, and **\u21E3 Load** a deck from a link: a GitHub file, a gist or any markdown URL.\n\n### Address options\n\n| Option | Does |\n|---|---|\n| `?edit=1` | opens the editor |\n| `?layout=focus` (path, radial, tree) | picks the layout; path is the default |\n| `?mode=light` | light theme |\n| `?duration=10m` | talk length for the timer |\n| `#card-id` | opens at a card |\n\n## \u{1F512} Your data\n\nNo accounts, and no decks kept. Recording stays on your device.\n\nNext, everything that leaves your browser, and where it goes: **[Privacy \u2192](/privacy)**\n';
1455
+ var docs_default = '---\ntitle: Slidetake Docs\ndescription: "How to use Slidetake, step by step: get started, write a deck, present it, record a video in the browser or with OBS, and share it."\nbrand: slidetake\npip: none\n---\n\n# ![](/favicon.svg) Slide<span class="st-take">take</span> Docs\n\nEverything in order: **get started \u2192 write \u2192 present \u2192 record \u2192 edit \u2192 share**. Press \u2192 to walk it, \u2193 \u2191 to go into a step and back out, **O** for the map.\n\n## 1\uFE0F\u20E3 Get started\n\nThree places to use Slidetake, one deck format for all of them: a markdown file. And any AI can write the deck.\n\n| Where | Best for |\n|---|---|\n| **slidetake.com** | writing in the Editor, viewing any deck from a link, sharing |\n| **Your computer** | the same on your own files and images, offline, with an AI agent writing alongside |\n| **Your website** | decks your readers view |\n\n### On slidetake.com\n\nOpen a deck straight from a link: a GitHub file, a gist or any markdown URL. Or press **\u270E Editor** and type: the first keystroke makes it [your copy](#your-copy), kept in this browser.\n\n| Link | Opens |\n|---|---|\n| `/gh/owner/repo/path/deck.md` | a GitHub file, default branch |\n| `/gh/owner/repo@branch/deck.md` | another branch or tag |\n| `/gist/<id>` | a gist\'s first markdown file |\n| `/?src=https://\u2026/deck.md` | anything else |\n| `/new` | a template: blank, talk or recording |\n\n### On your computer\n\nKeep the deck and its images together in a folder, and run one command there:\n\n```sh\nnpx slidetake deck.md\n```\n\nIt opens on `http://localhost:4300` with the files next to the deck served beside it, so `![](diagram.png)` just works. Save the file in any editor and the deck reloads where you are; type in the browser\'s editor and it saves to the file. Nothing leaves your machine. Needs Node 20 or later.\n\n`npx slidetake` in a folder opens its `index.md`, `deck.md`, `slides.md` or `README.md`. `--open` opens the browser; `--port 5000` picks the port.\n\n### On your website\n\n`slidetake.js` turns a deck on any page into a Slidetake deck. Describe the deck, then load the script:\n\n```html\n<script>\nwindow.SLIDETAKE = {\n markdown: "# My deck\\n\\n## A section",\n settings: {title: "My deck"},\n base: location.href, // for images\n trail: [{label: "My site", url: "/"}],\n themeKey: "my-theme", // your light/dark key\n colors: {accent: "#2563eb"} // your colours\n};\n<\/script>\n<script src="https://cdn.jsdelivr.net/npm/slidetake/dist/slidetake.js"><\/script>\n```\n\nA viewer for your readers. To record, open the deck\'s markdown here or with `npx slidetake`, or add `recording: true` on a page only you see, such as your site\'s local preview. The hugo-continuum theme writes this for pages with `engine: slidetake`, with recording under `hugo server`.\n\n### With AI\n\nAny AI can write a deck: point it at [slidetake.com/llms.txt](/llms.txt) and say what the talk is about.\n\n- **An agent** (Claude Code and the like): *"Write a Slidetake deck about X in talk/deck.md, following slidetake.com/llms.txt"*, then `npx slidetake talk/deck.md`. The deck reloads as it edits.\n- **A chat**: ask for one markdown block, then paste it into **\u270E Editor** here.\n- **Images**: beside the file for an agent; full URLs in a chat.\n\n### A prompt to copy\n\nPaste this into any AI and change the first line:\n\n```text\nWrite a Slidetake deck about <topic>, a 10-minute talk.\nFollow https://slidetake.com/llms.txt.\nA # title card, then 4\u20136 ## sections of 1\u20133 ### cards.\n<!-- steps --> before lists; a ```dot or ```d2 diagram\nwhere a picture helps. Reply with one markdown block.\n```\n\n## 2\uFE0F\u20E3 Write a deck\n\nA deck is an ordinary markdown file. **Every heading becomes a card**, and a heading branches off the nearest shallower heading above it.\n\n```md\n# Product \u2190 the first card\nIntro text.\n\n## Pricing \u2190 from Product\n### Enterprise \u2190 from Pricing\n## Roadmap {#plan} \u2190 from Product, id "plan"\n\nSee the [roadmap](#plan).\n```\n\n### Cards\n\n- Text before the first heading becomes a card of its own.\n- Headings inside fenced code blocks are ignored.\n- A card\'s id is its heading slugified (`## Moving around` \u2192 `moving-around`), or set one with `{#id}` at the end of the heading.\n- A link to `#id` flies to that card.\n- Cards widen for wide tables, columns, diagrams and embeds; anything wider still is scaled to fit.\n\n### What a card can hold\n\nPlain markdown, and the layout follows from what\'s on the card. [See every one in the showcase \u2192](/showcase)\n\n| Write | Get |\n|---|---|\n| `<!-- steps -->` | what follows, one press each, to the end of the card or a `<!-- steps: off -->` |\n| ` ```dot `, ` ```d2 ` | a Graphviz or D2 diagram, in the deck\'s colours |\n| ` ```echarts ` with JSON options | a chart, in the deck\'s colours |\n| ` ```svg ` | an SVG drawing: `currentColor` and `var(--text)`, `var(--accent)` follow dark and light |\n| a YouTube link alone on a line | the video: the next press plays it |\n| `<!-- view: full -->` | a 16:9 card for a big image |\n\nThe first and last cards animate in on their own.\n\n### Images\n\nThe layout follows from where the images are. The alt text is the caption.\n\n| Write | Get |\n|---|---|\n| an image alone | an image card, laid out by its shape: phone, landscape or 16:9 |\n| an image and text | a split card, the image on the side written first |\n| a list of images, diagrams or charts | a gallery; after `<!-- steps -->`, a carousel |\n| images in one paragraph | a grid, up to four a row |\n| `![](drawing.svg)` | an SVG image, as drawn |\n\n### Deck settings\n\nAn optional block at the top of the file:\n\n```yaml\n---\ntitle: My talk \u2190 page and video title\nduration: 10m \u2190 for the timer\naccent: "#3b82f6" \u2190 the deck\'s colour\nmode: light \u2190 open in light mode\nbrand: example.com \u2190 top-right corner text\nbrand_style: chip \u2190 the brand as a pill\nlogo: https://\u2026/l.png \u2190 image beside it\nbase: https://\u2026/deck/ \u2190 where images live\nsite: https://\u2026/ \u2190 where /images live\n---\n```\n\n`accent` is one colour; Slidetake makes it bright for dark mode and deep enough to read on white for light mode, and uses it for text accents, lines, charts and diagrams. Camera and recording settings are in [step 4](#4-record-a-video).\n\n### Decks from elsewhere\n\n**reveal.js** decks open as they are: `---` starts a slide and `--` a vertical one beneath it. Fragments (`fade-up`, `grow`, \u2026), `r-stack`, `<!-- .element: \u2026 -->`, `<section>` slides, `data-autoslide`, `data-gsap` entrances and `title-scramble` all work.\n\n**Older `+++` decks**, with `id`, `parent`, `x`, `y` frontmatter, still load.\n\n## 3\uFE0F\u20E3 Present\n\nClick a card to fly to it. Drag to pan; scroll or pinch to zoom. On a touch screen, the bottom bar adds \u2190 \u2192 buttons.\n\n| Key | Does |\n|---|---|\n| \u2192 \u2190 Space | next / previous step, in document order (PgDn and PgUp too: what clickers send) |\n| Home End | first / last slide |\n| \u2193 \u2191 | first child / parent |\n| O | the whole map; **O** again or Esc goes back |\n| F | fullscreen; **F** again or Esc leaves |\n| K, / or ? | these keys; again closes them |\n| 1 2 3 4 | focus, path, radial, tree |\n| + \u2212 | bigger / smaller slides (remembered; = works for +) |\n| E \xB7 L | editor \xB7 light / dark |\n| C \xB7 V | camera \xB7 camera layouts |\n| R \xB7 S | record \xB7 Studio |\n| P \xB7 D | in Studio: preview \xB7 download |\n\n### Layouts\n\n**Focus** doesn\'t travel at all: the next slide fades in where the last one was.\n\n**Path**, the default, is made for presenting and video: a staircase in presenting order. Each section is a row, and the next one starts just below where the last ended, so every move is a short step right or down.\n\n**Radial** rings out from the first card, and **tree** is a top-down chart.\n\nThe layout you pick is remembered in this browser, for every deck.\n\n### On screen\n\nText keeps one size within a section and only changes when the section does; charts and diagrams are fitted on their own.\n\n`<!-- view: overview -->` on a slide pulls back to the whole map for a beat before flying in: a good start to a chapter.\n\n### Progress and timer\n\nIn fullscreen the cursor and controls hide after two seconds without the mouse moving, and a thin bar along the bottom fills with every press.\n\nWith `duration: 10m` (or `90s`, `1h`, `12:30`), a lighter layer of the same colour grows behind it with the clock: if it shows past the solid fill, you\'re behind; if it reaches the end, the bar pulses. The timer is for you, so recordings show progress only, unless the deck says `timer: always`. `progress: off` hides the bar.\n\n## 4\uFE0F\u20E3 Record a video\n\nTwo modes, both slide by slide, so there\'s no timeline to edit afterwards. **\u25CF Record** in the bottom bar (or **R**) starts a take: the first time it opens Setup, then it records the slides without a take. **\u25CF Studio** (or **S**) is for picking takes and redoing slides; its \u2699 Setup switches between the modes.\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 330" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n </defs>\n\n <!-- lanes -->\n <rect x="10" y="20" width="940" height="140" rx="18" style="fill:var(--accent);fill-opacity:.04"/>\n <rect x="10" y="176" width="940" height="140" rx="18" style="fill:var(--accent);fill-opacity:.04"/>\n <text x="30" y="80" font-size="20" font-weight="700" style="fill:var(--accent)">Easy mode</text>\n <text x="30" y="104" font-size="13" style="fill:var(--text-muted)">needs nothing</text>\n <text x="30" y="122" font-size="13" style="fill:var(--text-muted)">to install</text>\n <text x="30" y="236" font-size="20" font-weight="700" style="fill:var(--accent)">Pro mode</text>\n <text x="30" y="260" font-size="13" style="fill:var(--text-muted)">needs OBS</text>\n <text x="30" y="278" font-size="13" style="fill:var(--text-muted)">and ffmpeg</text>\n\n <g font-size="15" font-weight="600" text-anchor="middle" fill="currentColor">\n <rect x="180" y="50" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="255" y="84">Chrome or Edge</text>\n <rect x="374" y="50" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="449" y="84">records the</text><text x="449" y="104">16:9 frame</text>\n <rect x="568" y="50" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="643" y="84">takes kept</text><text x="643" y="104">in the browser</text>\n <rect x="762" y="50" width="150" height="80" rx="14" style="fill:var(--node-bg)"/>\n <rect x="762" y="50" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="837" y="84">\u2193 Download</text><text x="837" y="104" font-weight="400" font-size="13" style="fill:var(--text-muted)">one MP4</text>\n\n <rect x="180" y="206" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="255" y="240">any browser</text><text x="255" y="260" font-weight="400" font-size="13" style="fill:var(--text-muted)">Safari, Firefox too</text>\n <rect x="374" y="206" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="449" y="240">OBS records</text><text x="449" y="260">the screen</text>\n <rect x="568" y="206" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="643" y="240">one recording,</text><text x="643" y="260">every take in it</text>\n <rect x="762" y="206" width="150" height="80" rx="14" style="fill:var(--node-bg)"/>\n <rect x="762" y="206" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="837" y="240">\u29C9 ffmpeg</text><text x="837" y="260" font-weight="400" font-size="13" style="fill:var(--text-muted)">the frame-exact cut</text>\n </g>\n <g fill="none" style="stroke:var(--accent)" stroke-width="2.5" marker-end="url(#head)">\n <path d="M332 90 H372"/><path d="M526 90 H566"/><path d="M720 90 H760"/>\n <path d="M332 246 H372"/><path d="M526 246 H566"/><path d="M720 246 H760"/>\n </g>\n</svg>\n```\n\n### Which mode?\n\n| | Easy mode: in the browser | Pro mode: with OBS |\n|---|---|---|\n| Install | nothing | [OBS Studio](https://obsproject.com) and [ffmpeg](https://ffmpeg.org), both free; a virtual display if your screen isn\'t 16:9 |\n| Browser | Chrome, Edge or another Chromium browser | any: Safari and Firefox too |\n| Screen | any shape: the deck is recorded in a 16:9 frame | a 16:9 screen, physical or virtual |\n| Quality | 1080p, or 720p on a smaller screen | whatever OBS records |\n| Final video | **Download** joins the picked takes, in the browser | an ffmpeg command |\n\n### Easy mode: record in the browser\n\n1. **\u25CF Record** (R) the first time opens **\u2699 Setup**: pick your camera (or **No camera**, and **Mirror** if you want it flipped; off, it shows you as others see you) and microphone. Recording turns the camera on and off by itself.\n2. **\u25CF Record** again, and share **this tab** when the browser asks. Only the 16:9 frame is recorded: slides and camera.\n3. Next time, **\u25CF Record** carries on with the slides that have no take yet. When every slide has one, it records from the slide on screen to the end.\n\nFor 1080p the frame needs 1920\xD71080 real pixels (a Retina laptop has them); 1280\xD7720 makes 720p. Smaller: use pro mode.\n\n### Retake slides later\n\nTick slides (shift-click for a range): **\u25CF Record** records just those, then stops.\n\nA take starts with the move in from the slide before it. So when you edit a slide, its takes and the next slide\'s are marked *outdated*: kept, but not picked until you record them again.\n\nTo drop a slide, delete it, then record the slide after it again.\n\n### Takes stay in this browser\n\nEach take is a file in this browser\'s private storage until you purge it, in \u2699 Setup \u2192 Files:\n\n| Purge | Removes |\n|---|---|\n| **Unused takes** | takes the video doesn\'t use |\n| **All takes** | this deck\'s takes |\n| **Every deck\'s takes\u2026** | everything Slidetake keeps here; it says how much first |\n\n### Pro mode: set up OBS\n\n1. In OBS: Tools \u2192 WebSocket Server Settings, turn it on.\n2. In Studio\'s **\u2699 Setup**, turn on **Pro** (top right), enter OBS\'s host, port and password, and **Connect**. Tick *Remember*.\n3. Present on a 16:9 screen, physical or virtual (say 1920\xD71080). Setup checks it.\n\nStudio opens in the mode you used last: its title says **Slidetake Studio Pro** in pro mode, with the size (`1080p`) beside it, and the camera and microphone a take uses on the right.\n\n### A 16:9 screen\n\nYouTube is 16:9. If your screen isn\'t (a MacBook is 16:10, an ultrawide 21:9), add a virtual 1920\xD71080 display, present there with **F**, and point OBS at it:\n\n| System | Virtual display |\n|---|---|\n| macOS | [BetterDisplay](https://github.com/waydabber/BetterDisplay) |\n| Windows | [Virtual Display Driver](https://github.com/VirtualDrivers/Virtual-Display-Driver) |\n| Linux | `xrandr` (X11), or a dummy HDMI plug |\n\nA dummy HDMI plug works on any system.\n\n### Connect from the address\n\n`?obs=localhost:4455` (or `?obs=localhost:4455:password`) in the address connects to OBS as the page opens. OBS runs on the same computer as the deck.\n\n### Add your camera\n\n**C** (or **Camera**) turns your webcam on in its box while presenting. A recording doesn\'t depend on it: it turns on the camera chosen for the deck (or none) by itself. It stays as you left it when the page reloads. While it\'s off, the deck\'s camera settings are ignored, so readers get slides using the whole screen, except a slide with the camera behind it, which shows its layout over an empty frame.\n\n```yaml\n---\npip: bottom-right \u2190 corner, or none\npip_size: 24% \u2190 box width\npip_shape: rect \u2190 or circle\npip_mirror: yes \u2190 mirror the webcam (until you choose in Setup)\ncamera: 24%, full, off \u2190 what V cycles\n---\n```\n\nSlides are always placed clear of the brand and the camera box.\n\n### Move the camera per slide\n\nA comment in a slide changes the camera from that slide on:\n\n```md\n## Intro\n<!-- camera: full --> \u2190 fills the screen\n\n## Pricing\n<!-- camera: 18% flip --> \u2190 small, other side\n```\n\nWords you can combine: `on`, `off`, `full`, `behind` (next), a size like `30%`, a corner, `flip`, `circle` / `rect`, `mirror` / `unmirror`. List them with commas to step through them on one slide: `full, on` opens on you, and the next \u2192 shrinks the camera to its corner and shows the slide.\n\n**V** steps through the deck\'s `camera:` list by hand.\n\n### Talk beside your slides\n\n`behind` fills the frame with you and puts the slide\'s words beside you, on a half see-through card:\n\n```md\n<!-- camera: behind --> \u2190 words on the left\n<!-- camera: behind right --> \u2190 or right, top, bottom\n<!-- camera: behind solid --> \u2190 split screen: you centred on the other side\n<!-- camera: behind bottom clear --> \u2190 no card, for a plain wall\n```\n\nIt stays on its slide; `pip: behind` makes it the whole deck\'s. With the camera off, the slide still shows this way, over an empty frame.\n\n### Take by take\n\n**\u25CF Record** (R) counts down and starts. From then on \u2192 drives everything: slides, reveals and camera moves (a Bluetooth clicker works).\n\n- **\u2190** takes the slide again. The deck goes back and replays the slide\'s entry, so whichever take you pick joins smoothly\n- **B** (or **.**, a clicker\'s blank-screen key) pauses and resumes\n- one press past the last step ends the take; **Esc** ends it early\n\n## 5\uFE0F\u20E3 Edit the video\n\nWhen the take ends you\'re back in **Slidetake Studio**, the same in both modes:\n\n- the player, with **\u25CF Record** and **\u25B6 Preview** under it\n- every slide and its takes on the right: click one to preview it\n- **\u29C9 Chapters** copies the chapters (`0:00 Intro`, one per section) for the YouTube description. YouTube needs at least three, each 10 seconds or more\n\n### Download (easy mode)\n\n**\u25B6 Preview** plays the picked takes back to back.\n\n**\u2193 Download** joins them into one MP4 in seconds, without re-encoding the video, in a folder you pick once: `deck 2026-10-30 20-04-49.mp4`. Pressed again with nothing changed, it says where the video already is.\n\n### The ffmpeg cut (pro mode)\n\nStudio shows the deck\'s latest OBS recording; recording again replaces it here (the old file stays in your OBS folder).\n\nPreviews come from the OBS file: open it once, or, in Chrome and Edge, pick your OBS folder and later recordings load by themselves.\n\n**\u29C9 ffmpeg** copies a command that cuts the picked takes, frame-exact. \u2699 Setup \u2192 Video sets how it encodes.\n\n### Sound\n\nIn \u2699 Setup \u2192 Microphone:\n\n| Setting | Does |\n|---|---|\n| **Voice** (default) | Chrome\'s noise suppression: fans, hum, steady noise |\n| **Raw** | the mic as it is: for a good mic in a quiet room |\n| **\u{1F50A} Volume boost** (on) | raises the voice to YouTube\'s \u221214 LUFS, never past a \u22121.5 dB peak |\n| **Peak limiter** (off) | catches the few loud peaks, so the boost goes all the way |\n\nYouTube turns loud videos down but not quiet ones up, so without the boost your voice sounds quiet. With OBS, Volume boost adds `loudnorm` to the ffmpeg command.\n\n## 6\uFE0F\u20E3 Share and keep\n\nEvery deck you open is **read-only**: Slidetake\'s own decks, templates, files on the web and shared links. Viewing one never changes anything.\n\n### Your copy\n\n**Type in a deck**, and it becomes your copy, at `/edit`. It lives in this browser, remembers where it came from, and is there whenever you come back: **Your copy \u2192** in the editor takes you to it.\n\n- There\'s one copy at a time; the editor bar says whose it is, and marks **edited** while it has changes you haven\'t saved or shared.\n- **Reset to original** throws your edits away.\n- Starting a new copy asks first if the old one has edits you haven\'t kept.\n\n### Save and share\n\n**Save** downloads the markdown. **Share** copies a link: the short link while your copy still matches an online original, otherwise a `/share#deflate:\u2026` link with the whole deck compressed inside it. That part of a link never reaches a server. **Open** loads a markdown file from your computer into your copy, and **\u21E3 Load** a deck from a link: a GitHub file, a gist or any markdown URL.\n\n### Address options\n\n| Option | Does |\n|---|---|\n| `?edit=1` | opens the editor |\n| `?layout=focus` (path, radial, tree) | picks the layout; path is the default |\n| `?mode=light` | light theme |\n| `?duration=10m` | talk length for the timer |\n| `#card-id` | opens at a card |\n\n## \u{1F512} Your data\n\nNo accounts, and no decks kept. Recording stays on your device.\n\nNext, everything that leaves your browser, and where it goes: **[Privacy \u2192](/privacy)**\n';
1401
1456
 
1402
1457
  // src/features.md
1403
- var features_default = "---\ntitle: Slidetake Features\ndescription: \"Every Slidetake feature, one line each: recording in the browser or with OBS, a map instead of a stack, the camera in the deck, plain markdown, your colours, and where it runs.\"\nbrand: slidetake\npip: none\n---\n\n# ![](/favicon.svg) Slide<span class=\"st-take\">take</span> Features\n\nThe complete list, one line each. Press \u2192 to walk it, **O** for the map.\n\n## \u270D\uFE0F Write in markdown, with AI\n\n| Feature | Advantage |\n|---|---|\n| **The AI loop** (`npx slidetake`) | an agent writes the file; the slide you're on redraws on save |\n| **One file** | any editor, versioned in git, reviewed like code |\n| **Steps, diagrams, charts** | Graphviz, D2, SVG and ECharts as text |\n| **Image cards** | laid out by shape: beside text, across the card, galleries, carousels, grids |\n| **Full-screen cards** (`view: full`) | a 16:9 frame for a big image |\n| **YouTube** | plays on the next press, pauses when you leave |\n| **reveal.js and `+++` decks** | open as they are |\n\n## \u{1F5FA}\uFE0F Present on a spatial canvas\n\n| Feature | Advantage |\n|---|---|\n| **Four layouts** | focus, path (the default), radial, tree |\n| **The map** (O) | the whole talk at a glance, and back |\n| **Map moments** (`view: overview`) | open a chapter on the big picture |\n| **Steady text** | one size per section, so slides don't jump |\n| **Short flights** | camera moves made to read well on video |\n| **Progress and timer** | a bar that fills, and a clock that tells you if you're behind |\n\n### The camera is part of the deck\n\n| Feature | Advantage |\n|---|---|\n| **Webcam in its box** | you and the slides in one recording, no compositing |\n| **Camera per slide** | corner, size, side, circle, full screen, behind the slide or off |\n| **Steps on one slide** | open on you, then reveal the slide |\n| **Camera layouts** (V) | try them live, without editing the deck |\n| **Off until you turn it on** | not shown to viewers: the slides get the whole screen |\n\n### Your colours\n\n| Feature | Advantage |\n|---|---|\n| **Dark and light** (L) | follows the reader, or your site |\n| **`accent:`** | one colour, shaded for both modes, charts and diagrams included |\n| **`brand:` and `logo:`** | your name on every frame |\n| **Site colours** | embedded decks wear your site's palette and header |\n\n## \u{1F534} Record slide by slide\n\nTwo modes, the same takes: **easy** in the browser, **pro** with OBS.\n\n| Feature | Advantage |\n|---|---|\n| **Takes per slide** (\u2190) | every attempt kept; recording never stops |\n| **Pause and resume** (B) | step away without a gap to cut |\n| **Clicker support** | any Bluetooth presenter remote moves the deck |\n\n### Easy mode: in the browser\n\nFor Chrome, Edge or another Chromium browser, on a screen with enough pixels: 1920\xD71080 for 1080p (a Retina laptop has them), 1280\xD7720 for 720p.\n\n| Feature | Advantage |\n|---|---|\n| **Nothing to install** | the deck records itself in a 16:9 frame, on a screen of any shape |\n| **Retake any slide later** | tick slides and record just those; an edited slide's takes are marked outdated |\n| **Takes kept in the browser** | every take, from every recording, until you purge them |\n\n### Pro mode: with OBS\n\nFor Safari, Firefox or any browser, a screen too small for easy mode, or whatever OBS can record.\n\n| Feature | Advantage |\n|---|---|\n| **[OBS](https://obsproject.com), driven by the deck** | it starts and stops for you; you only talk |\n| **16:9 check** | Setup warns before a video with bars; use a 16:9 screen, physical or virtual |\n\n## \u2702\uFE0F Edit by picking the best take\n\n| Feature | Advantage |\n|---|---|\n| **Slidetake Studio** | every slide's takes, Preview and Chapters, the same in both modes |\n| **Download** (easy mode) | the picked takes joined into one MP4 in seconds |\n| **Frame-exact [ffmpeg](https://ffmpeg.org) cut** (pro mode) | one command, no video editor |\n| **Volume boost** | your voice at YouTube's loudness (\u221214 LUFS), never clipped |\n| **YouTube chapters** | one click copies them, one per section |\n\n## \u{1F310} Run it anywhere\n\n| Where | Also gives you |\n|---|---|\n| **slidetake.com** | share links that carry the whole deck; your copy of any deck, kept in this browser |\n| **Your computer** | relative images, reload on save, browser edits saved to the file |\n| **Your website** | a clean viewer in your site's colours; the hugo-continuum theme with one frontmatter key |\n\n## \u{1F512} Private and open\n\n| Feature | Advantage |\n|---|---|\n| **No accounts, no stored decks** | nothing to sign up for or lose ([privacy](/privacy)) |\n| **Decks inside links** | the deck stays in the `#` part, never sent to a server |\n| **Analytics you can turn off** | one button on slidetake.com |\n| **Open source, Apache 2.0** | read it, host it, change it: [github.com/slidetake/slidetake](https://github.com/slidetake/slidetake) |\n\nNext, see them working: **[Showcase \u2192](/showcase)**\n";
1458
+ var features_default = "---\ntitle: Slidetake Features\ndescription: \"Every Slidetake feature, one line each: recording in the browser or with OBS, a map instead of a stack, the camera in the deck, plain markdown, your colours, and where it runs.\"\nbrand: slidetake\npip: none\n---\n\n# ![](/favicon.svg) Slide<span class=\"st-take\">take</span> Features\n\nThe complete list, one line each. Press \u2192 to walk it, **O** for the map.\n\n## \u270D\uFE0F Write in markdown, with AI\n\n| Feature | Advantage |\n|---|---|\n| **The AI loop** (`npx slidetake`) | an agent writes the file; the slide you're on redraws on save |\n| **One file** | any editor, versioned in git, reviewed like code |\n| **Steps, diagrams, charts** | Graphviz, D2, SVG and ECharts as text |\n| **Image cards** | laid out by shape: beside text, across the card, galleries, carousels, grids |\n| **Full-screen cards** (`view: full`) | a 16:9 frame for a big image |\n| **YouTube** | plays on the next press, pauses when you leave |\n| **reveal.js and `+++` decks** | open as they are |\n\n## \u{1F5FA}\uFE0F Present on a spatial canvas\n\n| Feature | Advantage |\n|---|---|\n| **Four layouts** | focus, path (the default), radial, tree |\n| **The map** (O) | the whole talk at a glance, and back |\n| **Map moments** (`view: overview`) | open a chapter on the big picture |\n| **Steady text** | one size per section, so slides don't jump |\n| **Short flights** | camera moves made to read well on video |\n| **Progress and timer** | a bar that fills, and a clock that tells you if you're behind |\n\n### The camera is part of the deck\n\n| Feature | Advantage |\n|---|---|\n| **Webcam in its box** | you and the slides in one recording, no compositing |\n| **Camera per slide** | corner, size, side, circle, full screen, behind the slide or off |\n| **Words around you** (`behind left`\u2026) | the slide's content beside, above or below you, on a see-through card, a solid one (split screen) or none |\n| **Smooth moves** | the camera glides between corner, full frame and split screen, and swaps sides with the words |\n| **Steps on one slide** | open on you, then reveal the slide |\n| **Camera layouts** (V) | try them live, without editing the deck |\n| **Off until you turn it on** | the slides get the whole screen; a slide built around you shows an empty frame; a reload remembers it |\n| **Mirror** (Setup) | off by default, so writing behind you reads the right way |\n\n### Your colours\n\n| Feature | Advantage |\n|---|---|\n| **Dark and light** (L) | follows the reader, or your site |\n| **`accent:`** | one colour, shaded for both modes, charts and diagrams included |\n| **`brand:` and `logo:`** | your name on every frame |\n| **Site colours** | embedded decks wear your site's palette and header |\n\n## \u{1F534} Record slide by slide\n\nTwo modes, the same takes: **easy** in the browser, **pro** with OBS.\n\n| Feature | Advantage |\n|---|---|\n| **Takes per slide** (\u2190) | every attempt kept; recording never stops |\n| **Pause and resume** (B) | step away without a gap to cut |\n| **Clicker support** | any Bluetooth presenter remote moves the deck |\n\n### Easy mode: in the browser\n\nFor Chrome, Edge or another Chromium browser, on a screen with enough pixels: 1920\xD71080 for 1080p (a Retina laptop has them), 1280\xD7720 for 720p.\n\n| Feature | Advantage |\n|---|---|\n| **Nothing to install** | the deck records itself in a 16:9 frame, on a screen of any shape |\n| **Retake any slide later** | tick slides and record just those; an edited slide's takes are marked outdated |\n| **Takes kept in the browser** | every take, from every recording, until you purge them |\n\n### Pro mode: with OBS\n\nFor Safari, Firefox or any browser, a screen too small for easy mode, or whatever OBS can record.\n\n| Feature | Advantage |\n|---|---|\n| **[OBS](https://obsproject.com), driven by the deck** | it starts and stops for you; you only talk |\n| **16:9 check** | Setup warns before a video with bars; use a 16:9 screen, physical or virtual |\n\n## \u2702\uFE0F Edit by picking the best take\n\n| Feature | Advantage |\n|---|---|\n| **Slidetake Studio** | every slide's takes, Preview and Chapters, the same in both modes |\n| **Download** (easy mode) | the picked takes joined into one MP4 in seconds |\n| **Frame-exact [ffmpeg](https://ffmpeg.org) cut** (pro mode) | one command, no video editor |\n| **Volume boost** | your voice at YouTube's loudness (\u221214 LUFS), never clipped |\n| **YouTube chapters** | one click copies them, one per section |\n\n## \u{1F310} Run it anywhere\n\n| Where | Also gives you |\n|---|---|\n| **slidetake.com** | share links that carry the whole deck; your copy of any deck, kept in this browser |\n| **Your computer** | relative images, reload on save, browser edits saved to the file |\n| **Your website** | a clean viewer in your site's colours; the hugo-continuum theme with one frontmatter key |\n\n## \u{1F512} Private and open\n\n| Feature | Advantage |\n|---|---|\n| **No accounts, no stored decks** | nothing to sign up for or lose ([privacy](/privacy)) |\n| **Decks inside links** | the deck stays in the `#` part, never sent to a server |\n| **Analytics you can turn off** | one button on slidetake.com |\n| **Open source, Apache 2.0** | read it, host it, change it: [github.com/slidetake/slidetake](https://github.com/slidetake/slidetake) |\n\nNext, see them working: **[Showcase \u2192](/showcase)**\n";
1404
1459
 
1405
1460
  // src/privacy.md
1406
1461
  var privacy_default = "---\ntitle: Slidetake Privacy\nbrand: slidetake\npip: none\n---\n\n# ![](/favicon.svg) Slide<span class=\"st-take\">take</span> Privacy\n\nSlidetake has no accounts and keeps no decks. This page lists everything that leaves your browser, and where it goes.\n\n*Last updated 31 October 2026.*\n\n## \u{1F4CA} What slidetake.com collects\n\nslidetake.com counts visits with **Google Analytics**: the page's address, your browser and screen, and roughly where you are. Google Analytics sets its own cookies (`_ga`) to tell visits apart.\n\nThe address it records leaves out the part after `#` and `?obs=`, so neither a deck carried in a link nor an OBS password reaches it.\n\n**You can turn it off:** the **Privacy & analytics** button in the header (the pulse icon) \u2192 *Turn analytics off*. Nothing more is sent from that browser, the `_ga` cookies are removed, and the tag isn't loaded on later visits. Cloudflare, which serves the site, still sees each request the way any web server does.\n\n> That is the only analytics. A copy of Slidetake you host yourself, the embed on your own site, and `npx slidetake` send none.\n\n## \u{1F3A5} Recording stays on your device\n\nYour camera, your microphone and the tab you share are read only by your browser, and only while you record. Nothing is uploaded:\n\n- **Easy mode** saves each take in this browser's private storage. **\u2193 Download** writes the video to a folder you pick.\n- **Pro mode** has OBS record on your computer; Slidetake only tells it when to start and stop.\n\n## \u{1F4BE} What stays in your browser\n\nKept in this browser's storage on your device, and never sent anywhere:\n\n| What | Why |\n|---|---|\n| Your copy of a deck | so it's there when you come back |\n| Theme, layout, slide size, editor width | your preferences |\n| Recorded takes | to cut the video, until you purge them |\n| Camera, mic and sound choices | your recording setup |\n| Folders you pick for videos | so Studio needn't ask again |\n| OBS host, port and password | only with *Remember*, as plain text |\n| Your analytics choice | so *off* stays off |\n\nClearing this site's data in your browser removes all of it, recorded takes included.\n\n## \u{1F310} Services a deck can reach\n\nOpening Slidetake, or a deck that uses these, loads files from other services. Each sees your IP address, as with any web request.\n\n| Service | When |\n|---|---|\n| Google Fonts | every page, for the typefaces |\n| cdnjs, jsDelivr | every page (animation, markdown), and for diagrams, charts, recording and OBS |\n| esm.sh | a deck with a D2 diagram |\n| GitHub | opening a GitHub file or gist |\n| YouTube (youtube-nocookie.com) | a deck with a YouTube link; YouTube's own cookies only once you play it |\n| The deck's own address | opening a deck from a link, and its images |\n\nOBS is reached only on the address you give it, normally your own computer.\n\n## \u{1F517} Decks in links\n\nA shared link carries the whole deck after `#`. Browsers never send that part of an address to a server, so the deck travels from you to whoever opens the link without passing through slidetake.com.\n\n## \u{1F4BB} On your computer\n\n`npx slidetake` runs on your machine, serves only the deck's folder, and listens only on `localhost`. It sends nothing to slidetake.com or anyone else. The deck's own diagrams, charts and fonts load from the services above as on the web.\n\n## \u2709\uFE0F Questions\n\nOpen an issue on [github.com/slidetake/slidetake](https://github.com/slidetake/slidetake/issues). Slidetake is open source, so everything above can be checked in its code.\n";
@@ -1415,7 +1470,7 @@
1415
1470
  var recording_default = "---\ntitle: Video title\nduration: 10m\npip: bottom-right\npip_size: 24%\ncamera: 24%, 40%, full, off\n---\n\n<!-- camera: full, on -->\n\n# Video title\n\nOpens full screen on you; the next press shows this slide with you in the corner.\n\n## \u{1F4CC} Disclaimer\n\n<!-- camera: off, on -->\n\nOpens without the camera, so the text has the whole screen; the next press brings you back.\n\n## \u{1F9ED} Contents\n\n- Part one\n- Part two\n- Part three\n\n## \u{1F539} Part one\n\n<!-- view: overview -->\n\nThe overview comment pulls back to the whole map first: a good start to a chapter.\n\n### A detail\n\nSlides you talk over in the corner.\n\n## \u{1F538} Part two\n\n### A detail\n\n## \u{1F537} Part three\n\n### A detail\n\n## \u{1F64F} Thanks for watching\n\n<!-- camera: on, full, on, off -->\n\nEnds on you full screen, then back to the slide, then without the camera.\n";
1416
1471
 
1417
1472
  // examples/showcase.md
1418
- var showcase_default = '---\ntitle: Slidetake Showcase\ndescription: "Everything a Slidetake deck can hold, working on screen: text, steps, code, Graphviz, D2, SVG, charts, image layouts, YouTube, the camera and the map."\nbrand: slidetake\nduration: 10m\n---\n\n# ![](https://slidetake.com/favicon.svg) Slide<span class="st-take">take</span> Showcase\n\nEverything a deck can hold, written in plain markdown and working on screen. Open **\u270E Editor** to see the source of any card. Press \u2192 to walk it, **O** for the map.\n\n## \u270D\uFE0F Text\n\nParagraphs, **bold**, *italic*, `code`, [links](https://slidetake.com) and lists, as markdown writes them.\n\n- One point\n- Another point\n - A detail under it\n\n### Steps\n\nPut `<!-- steps -->` before a list and it reveals one item per press. Everything after it on the card steps too, so a closing line waits its turn:\n\n<!-- steps -->\n- First, the problem\n- Then, the idea\n- Finally, the result\n\n> The conclusion comes last. `<!-- steps: off -->` ends the steps early.\n\n### Quotes and tables\n\n> A quote stands out from the text around it.\n\n| Plan | Price | Users |\n|---|---:|---:|\n| Starter | \u20B90 | 1 |\n| Team | \u20B9499 | 10 |\n\n### Code\n\n```python\ndef take(slide):\n return slide.best_attempt()\n```\n\n### Links between cards\n\n`{#charts}` at the end of a heading gives its card an id, and a link to `#charts` flies there: [see the charts](#charts).\n\n## \u{1F4D0} Diagrams\n\nWrite the diagram in a fenced block named after its language.\n\n### Graphviz\n\n```dot\ndigraph {\n rankdir=LR\n node [shape=box style=rounded]\n Markdown -> Deck -> Takes -> Video\n}\n```\n\n### D2\n\n```d2\ndirection: right\nwrite: Write {shape: rectangle}\npresent: Present\nrecord: Record\nwrite -> present -> record: one session\n```\n\n### SVG\n\nDrawn inline, so `currentColor` and `var(--accent)` follow the deck\'s colours. Press **L** and watch it switch.\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 130">\n <rect x="10" y="10" width="90" height="80" rx="10" style="fill:var(--accent)"/>\n <rect x="115" y="10" width="90" height="80" rx="10" style="fill:var(--accent);opacity:.6"/>\n <rect x="220" y="10" width="90" height="80" rx="10" fill="none" stroke="currentColor" stroke-width="2"/>\n <text x="160" y="120" text-anchor="middle" font-size="14" fill="currentColor">accent, faded, outlined</text>\n</svg>\n```\n\n### One at a time\n\nDiagrams or charts in a row after `<!-- steps -->` become a carousel: one per press.\n\n<!-- steps -->\n\n```dot\ndigraph { rankdir=LR; node [shape=box style=rounded]; Idea -> Markdown -> Deck -> Takes }\n```\n\n```dot\ndigraph { rankdir=LR; node [shape=box style=rounded]; Takes -> Studio -> Video -> YouTube }\n```\n\n## \u{1F4CA} Charts {#charts}\n\nECharts, as a fenced `echarts` block of JSON options.\n\n### A bar chart\n\n```echarts\n{\n "xAxis": {"type": "category", "data": ["Jan", "Feb", "Mar", "Apr", "May"]},\n "yAxis": {"type": "value"},\n "series": [{"type": "bar", "data": [12, 19, 15, 24, 30]}]\n}\n```\n\n### A donut\n\n```echarts\n{\n "series": [{"type": "pie", "radius": ["45%", "70%"],\n "data": [{"name": "Equity", "value": 85}, {"name": "Debt", "value": 5}, {"name": "Gold", "value": 10}]}]\n}\n```\n\n## \u{1F5BC}\uFE0F Images\n\nThe layout comes from what\'s on the slide; the alt text is the caption.\n\n### One image\n\n![An image alone fills the card edge to edge](https://slidetake.com/og.jpg)\n\n### A tall image\n\n![A square or tall image sits beside its heading](https://slidetake.com/apple-touch-icon.png)\n\n### Image and text\n\n![Written first, so it sits on the left](https://slidetake.com/og.jpg)\n\nAn image beside text makes a split card. Write the text first and the image moves to the right.\n\n### A gallery\n\nA list of images is a gallery. With `<!-- steps -->` it becomes a carousel: one image at a time, the next on each press. Diagrams and charts work the same, and after `<!-- steps -->` two or more of them in a row are a carousel without the list.\n\n<!-- steps -->\n- ![The logo](https://slidetake.com/favicon.svg)\n- ![The home-screen icon](https://slidetake.com/apple-touch-icon.png)\n- ![The link preview](https://slidetake.com/og.jpg)\n\n### A grid\n\nSeveral images in one paragraph sit side by side, up to four a row:\n\n![Logo](https://slidetake.com/favicon.svg) ![Icon](https://slidetake.com/apple-touch-icon.png) ![Preview](https://slidetake.com/og.jpg)\n\n### Full screen\n\n<!-- view: full -->\n\n![A card tagged view: full is a 16:9 frame for a big image](https://slidetake.com/og.jpg)\n\n## \u25B6\uFE0F YouTube\n\nhttps://www.youtube.com/watch?v=jNQXAC9IVRw\n\nA YouTube link alone on a line becomes the video: the next press plays it, leaving the slide pauses it.\n\n## \u{1F3A5} Camera\n\n<!-- camera: on, full, on -->\n\nTry it: press **C** to turn on your camera, then \u2192. This card puts you in the corner, then full screen, then back, from one comment: `<!-- camera: on, full, on -->`.\n\n## \u{1F5FA}\uFE0F Layouts and the map\n\n<!-- view: overview -->\n\nThis card began by pulling back to the whole map: `<!-- view: overview -->` does that. Try it: press **1** to **4** for focus, path (the default), radial and tree, and **O** to zoom out and back.\n\n### Progress and timer\n\nPress **F**: in fullscreen a thin bar along the bottom fills as you go. This deck says `duration: 10m`, so a lighter clock layer grows behind it; if it shows past the fill, you\'re behind.\n\n## \u{1F3A8} Colours\n\nTry it: press **L** now. Dark and light switch, charts and diagrams included.\n\nA deck sets its own colour with one line, `accent: "#3b82f6"`, shaded for both modes. See it in [blue](/share#deflate:ZVJNa9wwEL3rV0y1hzZGTummn6YENodCoYVCAjksC9Zak5VY1zKacXZN2Gt-QH9if0kl2aSBnPTGevPmjZ_KshTsuMUKvnewbQcUummw4wrk4mL7eXn3UYoyksTiiSBurCMw2OzBagLfIeCRg4bWRagZ2CKw7xXUL7RqBbozgPcYRrau28Gdb1t_oAo4iqisQSpLNFYHzvRUGad3Qf8-h18BiaAofhRFnAKECFvPFshqg3QenS7gmrEnIb6-KkughKEsL0UZu658a4pCwToO2tPmzVuy_tBowrM8yaI20RUB6z1OLnzrhxB7rz0YjzR5n3b1Xab0mm0krGanIa2lgx_mmlpnEEY_vA6pJRtcTdsJUdc1ZkjiQR5XR0eyggfJY48RyEYz7nwYpQJpNOv4bS1_-i7VNwOm4xZNruyQjm_Byc0pgvGF1r2O6cmTEiAJg8N0u_5_vdXh-ZT3Cj4p-KDgi4J3y81pc0peZ_NzGNm-WQrjAjbsfFfF5XeWxSE4RigvoY9hxReQYKT4YKr8XihGGOlPile62QuxTkfKNP-1ORf4-_jnWUyLKQ86E_8A), [coral](/share#deflate:ZVJNa9wwEL3rV0y1hzZGSkn6EWJKYHMoFFooJNDDsrATa7IS61pGI2fXhL32B-Qn9pdUkk0TyElvrDdv3vhJay2iiy3V8K2DxgdsBTYNdbEGubi_vPhw9lkKnVhi8cwQt9YxGGp2YJHBdwR0iAGhdQlihGgJou8VbF6JbRRgZ4AeKIzRum4L975t_Z5riElEFQ1WRaKxGGKh58o43Ab8fQo_AzFDVX2vqjQFmAjufLTAFg3xabK6gJtIPQvx5Y3WwBmD1ldCp65r35qqUrBKg3a8fveerd83yHRSJllCk1wxRNzR5MK3fgip98aD8cST92lX3xVKj9EmwnJ2GvJaGPww19w6QzD64W3ILcXgctpOiM1mQwWyeJSH5cGxrOFRxrGnBGSDkbY-jFKBNBgxfVvJH77L9e1A-fhFplR2yMfX4OT6mMD4SusB29RxVAIkU3CUb1fP13cYXk75qOBCwScFlwrOztfH9TF7nc3PYRT75lwYF6iJznd1Wn5ro9gHFwn0FfQprPQCMkwUH0xd3gunCBP9v-I1NjshVvnImZa_NucCf_88vYhpMeXBJ-If) or [violet](/share#deflate:ZVJNa9wwEL3rV0y1hzZGTmlo-mFKYHMoFFooJJDDsmCtNVmJdS2jGe-uCXvtD-hP7C-pJJt0ISe9sd68eeOnsiwFO26xgm8d7J1vkYVuGuy4Arn4tLluHj9IUUaaWJxRxL11BAabHVhN4DsEPHLQ0LoINQNbBPa9gvqFWq1AdwZwj2Fk67otPPq29QeqgKOIyhqkskRjdeBMT5Vxehv0r0v4GZAIiuJ7UcQpQIiw8WyBrDZIl9HrAu4YexLiy6uyBEoYyvJGlLHr1remKBSs4qAdrd-8JesPjSa8yJMsahNdEbDe4eTCt34IsffOg_FIk_dpV99lSq_ZRsJydhrSWjr4Ya6pdQZh9MPrkFqyweW0nRB1XWOGJJ7kcXl0JCt4kjz2GIFsNOPWh1EqkEazjt9W8ofvUn0_YDoe0OTKDun4GpxcnyIYX2jtdRs7TkqAJAwO0-3q__VGh_Mp7xV8VHCt4LOCd1fr0_qUvM7m5zCyfXMljAvYsPNdFZffWhaH4BihvIE-hhVfQIKR4oOp8nuhGGGkPyve6mYnxCodKdP81-Zc4O_vP2cxLaY86EL8Aw).\n\n## \u2702\uFE0F Record a video\n\nTry it: press **\u25CF Record** in the bottom bar, or **R**. Stumble on a slide, press \u2190, say it again; then pick the best take of each. Step by step: [Docs \u2192 Record a video](/docs#4-record-a-video).\n\n## \u{1F310} Open from anywhere\n\nTry it: this deck is a file on GitHub, and opens from there too: **[slidetake.com/gh/slidetake/slidetake/examples/showcase.md](/gh/slidetake/slidetake/examples/showcase.md)**. Gists, any markdown URL, and a link with the deck inside it open the same way, and `npx slidetake deck.md` opens one from your computer.\n\n## \u{1F680} Start your own\n\nOpen **\u270E Editor** and press **New** for a template (blank, talk or recording), or type in this deck to make it your copy.\n\nThe templates and this deck live in [examples/](https://github.com/slidetake/slidetake/tree/main/examples) on GitHub.\n\nNext, how it all works, step by step: **[Docs \u2192](/docs)**\n';
1473
+ var showcase_default = '---\ntitle: Slidetake Showcase\ndescription: "Everything a Slidetake deck can hold, working on screen: text, steps, code, Graphviz, D2, SVG, charts, image layouts, YouTube, the camera and the map."\nbrand: slidetake\nduration: 10m\n---\n\n# ![](https://slidetake.com/favicon.svg) Slide<span class="st-take">take</span> Showcase\n\nEverything a deck can hold, written in plain markdown and working on screen. Open **\u270E Editor** to see the source of any card. Press \u2192 to walk it, **O** for the map.\n\n## \u270D\uFE0F Text\n\nParagraphs, **bold**, *italic*, `code`, [links](https://slidetake.com) and lists, as markdown writes them.\n\n- One point\n- Another point\n - A detail under it\n\n### Steps\n\nPut `<!-- steps -->` before a list and it reveals one item per press. Everything after it on the card steps too, so a closing line waits its turn:\n\n<!-- steps -->\n- First, the problem\n- Then, the idea\n- Finally, the result\n\n> The conclusion comes last. `<!-- steps: off -->` ends the steps early.\n\n### Quotes and tables\n\n> A quote stands out from the text around it.\n\n| Plan | Price | Users |\n|---|---:|---:|\n| Starter | \u20B90 | 1 |\n| Team | \u20B9499 | 10 |\n\n### Code\n\n```python\ndef take(slide):\n return slide.best_attempt()\n```\n\n### Links between cards\n\n`{#charts}` at the end of a heading gives its card an id, and a link to `#charts` flies there: [see the charts](#charts).\n\n## \u{1F4D0} Diagrams\n\nWrite the diagram in a fenced block named after its language.\n\n### Graphviz\n\n```dot\ndigraph {\n rankdir=LR\n node [shape=box style=rounded]\n Markdown -> Deck -> Takes -> Video\n}\n```\n\n### D2\n\n```d2\ndirection: right\nwrite: Write {shape: rectangle}\npresent: Present\nrecord: Record\nwrite -> present -> record: one session\n```\n\n### SVG\n\nDrawn inline, so `currentColor` and `var(--accent)` follow the deck\'s colours. Press **L** and watch it switch.\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 130">\n <rect x="10" y="10" width="90" height="80" rx="10" style="fill:var(--accent)"/>\n <rect x="115" y="10" width="90" height="80" rx="10" style="fill:var(--accent);opacity:.6"/>\n <rect x="220" y="10" width="90" height="80" rx="10" fill="none" stroke="currentColor" stroke-width="2"/>\n <text x="160" y="120" text-anchor="middle" font-size="14" fill="currentColor">accent, faded, outlined</text>\n</svg>\n```\n\n### One at a time\n\nDiagrams or charts in a row after `<!-- steps -->` become a carousel: one per press.\n\n<!-- steps -->\n\n```dot\ndigraph { rankdir=LR; node [shape=box style=rounded]; Idea -> Markdown -> Deck -> Takes }\n```\n\n```dot\ndigraph { rankdir=LR; node [shape=box style=rounded]; Takes -> Studio -> Video -> YouTube }\n```\n\n## \u{1F4CA} Charts {#charts}\n\nECharts, as a fenced `echarts` block of JSON options.\n\n### A bar chart\n\n```echarts\n{\n "xAxis": {"type": "category", "data": ["Jan", "Feb", "Mar", "Apr", "May"]},\n "yAxis": {"type": "value"},\n "series": [{"type": "bar", "data": [12, 19, 15, 24, 30]}]\n}\n```\n\n### A donut\n\n```echarts\n{\n "series": [{"type": "pie", "radius": ["45%", "70%"],\n "data": [{"name": "Equity", "value": 85}, {"name": "Debt", "value": 5}, {"name": "Gold", "value": 10}]}]\n}\n```\n\n## \u{1F5BC}\uFE0F Images\n\nThe layout comes from what\'s on the slide; the alt text is the caption.\n\n### One image\n\n![An image alone fills the card edge to edge](https://slidetake.com/og.jpg)\n\n### A tall image\n\n![A square or tall image sits beside its heading](https://slidetake.com/apple-touch-icon.png)\n\n### Image and text\n\n![Written first, so it sits on the left](https://slidetake.com/og.jpg)\n\nAn image beside text makes a split card. Write the text first and the image moves to the right.\n\n### A gallery\n\nA list of images is a gallery. With `<!-- steps -->` it becomes a carousel: one image at a time, the next on each press. Diagrams and charts work the same, and after `<!-- steps -->` two or more of them in a row are a carousel without the list.\n\n<!-- steps -->\n- ![The logo](https://slidetake.com/favicon.svg)\n- ![The home-screen icon](https://slidetake.com/apple-touch-icon.png)\n- ![The link preview](https://slidetake.com/og.jpg)\n\n### A grid\n\nSeveral images in one paragraph sit side by side, up to four a row:\n\n![Logo](https://slidetake.com/favicon.svg) ![Icon](https://slidetake.com/apple-touch-icon.png) ![Preview](https://slidetake.com/og.jpg)\n\n### Full screen\n\n<!-- view: full -->\n\n![A card tagged view: full is a 16:9 frame for a big image](https://slidetake.com/og.jpg)\n\n## \u25B6\uFE0F YouTube\n\nhttps://www.youtube.com/watch?v=jNQXAC9IVRw\n\nA YouTube link alone on a line becomes the video: the next press plays it, leaving the slide pauses it.\n\n## \u{1F3A5} Camera\n\n<!-- camera: on, full, on -->\n\nTry it: press **C** to turn on your camera, then \u2192. This card puts you in the corner, then full screen, then back, from one comment: `<!-- camera: on, full, on -->`. The cards after it put the words beside you.\n\n### Behind the slide\n\n<!-- camera: behind -->\n\nWith the camera on, you fill the frame and this slide\'s words sit beside you: a talking head with slides. One comment does it: `<!-- camera: behind -->`, or `pip: behind` for a whole deck. They go on the left, on a half see-through card; `right`, `top` or `bottom` put them elsewhere.\n\n### Words around you\n\n<!-- camera: behind left, behind right, behind top, behind bottom -->\n\nPress \u2192 and these words move around you: `left`, `right`, `top`, `bottom`. One comment, one press each.\n\n### Split screen\n\n<!-- camera: behind solid, behind right solid, behind top solid, behind bottom solid -->\n\nAdd `solid` and the card hides the camera behind it: a split screen, with the camera moved to the other side and you centred there.\n\n### Clear\n\n<!-- camera: behind clear, behind bottom clear -->\n\n`clear` takes the card away: the words sit straight on the camera. Best over a plain wall or a green screen.\n\n### A picture beside you\n\n<!-- camera: behind right, behind left, behind bottom -->\n\n![The link preview, beside you](https://slidetake.com/og.jpg)\n\n### A Graphviz diagram beside you\n\n<!-- camera: behind left, behind left solid -->\n\nTalk through the flow while it sits beside you.\n\n```dot\ndigraph {\n rankdir=LR\n node [shape=box style=rounded]\n Markdown -> Deck -> Takes -> Video\n}\n```\n\n### A D2 diagram beside you\n\n<!-- camera: behind right, behind top -->\n\n```d2\ndirection: right\nwrite: Write\npresent: Present\nrecord: Record\nwrite -> present -> record\n```\n\n### An SVG beside you\n\n<!-- camera: behind left, behind bottom solid -->\n\nDrawn in the deck\'s colours.\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 130">\n <rect x="10" y="10" width="90" height="80" rx="10" style="fill:var(--accent)"/>\n <rect x="115" y="10" width="90" height="80" rx="10" style="fill:var(--accent);opacity:.6"/>\n <rect x="220" y="10" width="90" height="80" rx="10" fill="none" stroke="currentColor" stroke-width="2"/>\n <text x="160" y="120" text-anchor="middle" font-size="14" fill="currentColor">accent, faded, outlined</text>\n</svg>\n```\n\n### A chart beside you\n\n<!-- camera: behind right, behind bottom -->\n\nViews a month, and growing.\n\n```echarts\n{\n "xAxis": {"type": "category", "data": ["Jan", "Feb", "Mar", "Apr", "May"]},\n "yAxis": {"type": "value"},\n "series": [{"type": "bar", "data": [12, 19, 15, 24, 30]}]\n}\n```\n\n## \u{1F5FA}\uFE0F Layouts and the map\n\n<!-- view: overview -->\n\nThis card began by pulling back to the whole map: `<!-- view: overview -->` does that. Try it: press **1** to **4** for focus, path (the default), radial and tree, and **O** to zoom out and back.\n\n### Progress and timer\n\nPress **F**: in fullscreen a thin bar along the bottom fills as you go. This deck says `duration: 10m`, so a lighter clock layer grows behind it; if it shows past the fill, you\'re behind.\n\n## \u{1F3A8} Colours\n\nTry it: press **L** now. Dark and light switch, charts and diagrams included.\n\nA deck sets its own colour with one line, `accent: "#3b82f6"`, shaded for both modes. See it in [blue](/share#deflate:ZVJNa9wwEL3rV0y1hzZGTummn6YENodCoYVCAjksC9Zak5VY1zKacXZN2Gt-QH9if0kl2aSBnPTGevPmjZ_KshTsuMUKvnewbQcUummw4wrk4mL7eXn3UYoyksTiiSBurCMw2OzBagLfIeCRg4bWRagZ2CKw7xXUL7RqBbozgPcYRrau28Gdb1t_oAo4iqisQSpLNFYHzvRUGad3Qf8-h18BiaAofhRFnAKECFvPFshqg3QenS7gmrEnIb6-KkughKEsL0UZu658a4pCwToO2tPmzVuy_tBowrM8yaI20RUB6z1OLnzrhxB7rz0YjzR5n3b1Xab0mm0krGanIa2lgx_mmlpnEEY_vA6pJRtcTdsJUdc1ZkjiQR5XR0eyggfJY48RyEYz7nwYpQJpNOv4bS1_-i7VNwOm4xZNruyQjm_Byc0pgvGF1r2O6cmTEiAJg8N0u_5_vdXh-ZT3Cj4p-KDgi4J3y81pc0peZ_NzGNm-WQrjAjbsfFfF5XeWxSE4RigvoY9hxReQYKT4YKr8XihGGOlPile62QuxTkfKNP-1ORf4-_jnWUyLKQ86E_8A), [coral](/share#deflate:ZVJNa9wwEL3rV0y1hzZGSkn6EWJKYHMoFFooJNDDsrATa7IS61pGI2fXhL32B-Qn9pdUkk0TyElvrDdv3vhJay2iiy3V8K2DxgdsBTYNdbEGubi_vPhw9lkKnVhi8cwQt9YxGGp2YJHBdwR0iAGhdQlihGgJou8VbF6JbRRgZ4AeKIzRum4L975t_Z5riElEFQ1WRaKxGGKh58o43Ab8fQo_AzFDVX2vqjQFmAjufLTAFg3xabK6gJtIPQvx5Y3WwBmD1ldCp65r35qqUrBKg3a8fveerd83yHRSJllCk1wxRNzR5MK3fgip98aD8cST92lX3xVKj9EmwnJ2GvJaGPww19w6QzD64W3ILcXgctpOiM1mQwWyeJSH5cGxrOFRxrGnBGSDkbY-jFKBNBgxfVvJH77L9e1A-fhFplR2yMfX4OT6mMD4SusB29RxVAIkU3CUb1fP13cYXk75qOBCwScFlwrOztfH9TF7nc3PYRT75lwYF6iJznd1Wn5ro9gHFwn0FfQprPQCMkwUH0xd3gunCBP9v-I1NjshVvnImZa_NucCf_88vYhpMeXBJ-If) or [violet](/share#deflate:ZVJNa9wwEL3rV0y1hzZGTmlo-mFKYHMoFFooJJDDsmCtNVmJdS2jGe-uCXvtD-hP7C-pJJt0ISe9sd68eeOnsiwFO26xgm8d7J1vkYVuGuy4Arn4tLluHj9IUUaaWJxRxL11BAabHVhN4DsEPHLQ0LoINQNbBPa9gvqFWq1AdwZwj2Fk67otPPq29QeqgKOIyhqkskRjdeBMT5Vxehv0r0v4GZAIiuJ7UcQpQIiw8WyBrDZIl9HrAu4YexLiy6uyBEoYyvJGlLHr1remKBSs4qAdrd-8JesPjSa8yJMsahNdEbDe4eTCt34IsffOg_FIk_dpV99lSq_ZRsJydhrSWjr4Ya6pdQZh9MPrkFqyweW0nRB1XWOGJJ7kcXl0JCt4kjz2GIFsNOPWh1EqkEazjt9W8ofvUn0_YDoe0OTKDun4GpxcnyIYX2jtdRs7TkqAJAwO0-3q__VGh_Mp7xV8VHCt4LOCd1fr0_qUvM7m5zCyfXMljAvYsPNdFZffWhaH4BihvIE-hhVfQIKR4oOp8nuhGGGkPyve6mYnxCodKdP81-Zc4O_vP2cxLaY86EL8Aw).\n\n## \u2702\uFE0F Record a video\n\nTry it: press **\u25CF Record** in the bottom bar, or **R**. Stumble on a slide, press \u2190, say it again; then pick the best take of each. Step by step: [Docs \u2192 Record a video](/docs#4-record-a-video).\n\n## \u{1F310} Open from anywhere\n\nTry it: this deck is a file on GitHub, and opens from there too: **[slidetake.com/gh/slidetake/slidetake/examples/showcase.md](/gh/slidetake/slidetake/examples/showcase.md)**. Gists, any markdown URL, and a link with the deck inside it open the same way, and `npx slidetake deck.md` opens one from your computer.\n\n## \u{1F680} Start your own\n\nOpen **\u270E Editor** and press **New** for a template (blank, talk or recording), or type in this deck to make it your copy.\n\nThe templates and this deck live in [examples/](https://github.com/slidetake/slidetake/tree/main/examples) on GitHub.\n\nNext, how it all works, step by step: **[Docs \u2192](/docs)**\n';
1419
1474
 
1420
1475
  // src/core/text.js
1421
1476
  function slugify(s) {
@@ -1751,27 +1806,40 @@
1751
1806
 
1752
1807
  // src/core/steps.js
1753
1808
  var CORNERS = ["top-left", "top-right", "bottom-left", "bottom-right"];
1809
+ var PLACES = ["left", "right", "top", "bottom"];
1754
1810
  var clampPipSize = (v) => Math.max(8, Math.min(60, v));
1755
1811
  function applyPreset(st, preset) {
1756
1812
  String(preset || "").toLowerCase().split(/\s+/).forEach((t) => {
1757
1813
  if (!t) return;
1758
- if (t === "off" || t === "hide") {
1814
+ if (t === "solid") {
1815
+ st.card = 100;
1816
+ st.used = true;
1817
+ } else if (t === "clear") {
1818
+ st.card = 0;
1819
+ st.used = true;
1820
+ } else if (t === "off" || t === "hide") {
1759
1821
  st.off = true;
1760
1822
  } else if (t === "on" || t === "pip" || t === "show") {
1761
1823
  st.off = false;
1762
1824
  st.full = false;
1763
1825
  st.behind = false;
1826
+ st.place = "";
1764
1827
  st.used = true;
1765
1828
  } else if (t === "full" || t === "fullscreen") {
1766
1829
  st.full = true;
1767
1830
  st.behind = false;
1831
+ st.place = "";
1768
1832
  st.off = false;
1769
1833
  st.used = true;
1770
1834
  } else if (t === "behind" || t === "under") {
1771
1835
  st.full = true;
1772
1836
  st.behind = true;
1837
+ st.place = "left";
1773
1838
  st.off = false;
1774
1839
  st.used = true;
1840
+ } else if (PLACES.includes(t)) {
1841
+ st.place = t;
1842
+ st.used = true;
1775
1843
  } else if (/^\d+(\.\d+)?%?$/.test(t)) {
1776
1844
  st.size = clampPipSize(parseFloat(t));
1777
1845
  st.used = true;
@@ -2637,7 +2705,12 @@
2637
2705
  return list.length ? list : ["on", "full", "off"];
2638
2706
  }
2639
2707
  function cameraSteps(n) {
2640
- return !cameraOff && n ? cameraPresets(n.camera) : [];
2708
+ if (!n) return [];
2709
+ const steps = cameraPresets(n.camera);
2710
+ return !cameraOff || steps.some(isBehind) ? steps : [];
2711
+ }
2712
+ function isBehind(preset) {
2713
+ return !!applyPreset({}, preset).behind;
2641
2714
  }
2642
2715
  var stepPos = 0;
2643
2716
  function slideSteps(n) {
@@ -2655,7 +2728,7 @@
2655
2728
  if (n && n.el && n.el.classList.contains("card-full")) return "off";
2656
2729
  for (let i = order.indexOf(currentId) - 1; i >= 0; i--) {
2657
2730
  const steps = cameraSteps(nodes.get(order[i]));
2658
- if (steps.length) return steps[steps.length - 1];
2731
+ if (steps.length) return applyPreset({}, steps[steps.length - 1]).behind ? null : steps[steps.length - 1];
2659
2732
  }
2660
2733
  return null;
2661
2734
  }
@@ -2667,15 +2740,18 @@
2667
2740
  corner: (deck.pip || "none").toLowerCase(),
2668
2741
  size: clampPipSize(parseFloat(deck.pip_size) || 24),
2669
2742
  circle: (deck.pip_shape || "").toLowerCase() === "circle",
2670
- mirror: !/^(no|false|off)$/i.test(deck.pip_mirror || ""),
2743
+ mirror: cameraMirrored(),
2671
2744
  full: false,
2672
2745
  off: false,
2673
2746
  flip: false,
2674
- used: false
2747
+ used: false,
2748
+ card: 50
2749
+ // with behind, the words sit on a half see-through card unless the deck or slide says otherwise
2675
2750
  };
2676
- if (st.corner === "behind" || st.corner === "under") {
2751
+ if (/^(behind|under)\b/.test(st.corner)) {
2752
+ const words = st.corner;
2677
2753
  st.corner = "bottom-right";
2678
- applyPreset(st, "behind");
2754
+ applyPreset(st, words);
2679
2755
  }
2680
2756
  applyPreset(st, slideCameraPreset());
2681
2757
  if (camManual && !/\b(off|hide)\b/i.test(camManual)) st.off = false;
@@ -2688,12 +2764,25 @@
2688
2764
  function applyPipState() {
2689
2765
  const first = !pipEl.hidden && pipEl.offsetWidth ? pipEl.getBoundingClientRect() : null;
2690
2766
  const st = pipState = computePipState();
2767
+ if (st.behind && (!currentId || mapTimer)) {
2768
+ st.full = false;
2769
+ st.behind = false;
2770
+ }
2691
2771
  const valid = CORNERS.includes(st.corner);
2692
- pipEl.className = valid ? [st.corner, st.circle && "circle", cameraStream && "live", st.mirror && "mirror", st.full && "full", st.behind && "behind", pipEl.classList.contains("msg") && "msg"].filter(Boolean).join(" ") : "";
2693
- pipEl.style.width = st.size + "%";
2694
- pipEl.hidden = !valid || cameraOff || st.off;
2772
+ const empty = cameraOff && !!st.behind && !st.off;
2773
+ pipEl.className = valid ? [st.corner, st.circle && "circle", cameraStream && "live", st.mirror && "mirror", st.full && "full", st.behind && "behind", empty && "empty", pipEl.classList.contains("msg") && "msg"].filter(Boolean).join(" ") : "";
2774
+ pipEl.style.width = st.full ? "" : st.size + "%";
2775
+ pipEl.hidden = !valid || st.off || cameraOff && !empty;
2695
2776
  stageWrap.dataset.pip = pipEl.hidden || st.full ? "none" : st.corner;
2696
2777
  stageWrap.classList.toggle("cam-behind", !pipEl.hidden && !!st.behind);
2778
+ stageWrap.style.setProperty("--cam-card", String((st.card || 0) / 100));
2779
+ stageWrap.classList.toggle("cam-card", (st.card || 0) > 0);
2780
+ stageWrap.classList.toggle("cam-solid", (st.card || 0) >= 100);
2781
+ stageWrap.classList.toggle("cam-live", !pipEl.hidden && !!st.behind && !empty);
2782
+ const wasPlaced = !!camPlace;
2783
+ renderCamOverlay(!pipEl.hidden && st.behind ? st.place || "" : "");
2784
+ if (camPlace && !wasPlaced && first && !reduceMotion && camOverlay.animate)
2785
+ camOverlay.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 300, delay: 550, easing: "ease-out", fill: "backwards" });
2697
2786
  if (pipEl.hidden || reduceMotion || !pipEl.animate) return;
2698
2787
  const ease = "cubic-bezier(.65,0,.35,1)";
2699
2788
  if (!first) {
@@ -2702,11 +2791,96 @@
2702
2791
  }
2703
2792
  const last = pipEl.getBoundingClientRect();
2704
2793
  if (Math.abs(first.left - last.left) + Math.abs(first.top - last.top) + Math.abs(first.width - last.width) + Math.abs(first.height - last.height) < 2) return;
2705
- pipEl.animate([
2706
- { transformOrigin: "0 0", transform: "translate(" + (first.left - last.left) + "px," + (first.top - last.top) + "px) scale(" + first.width / last.width + "," + first.height / last.height + ")" },
2707
- { transformOrigin: "0 0", transform: "none" }
2708
- ], { duration: 600, easing: ease });
2794
+ const o = (pipEl.offsetParent || stageWrap).getBoundingClientRect();
2795
+ const box = (r) => ({ left: r.left - o.left + "px", top: r.top - o.top + "px", width: r.width + "px", height: r.height + "px", right: "auto", bottom: "auto", aspectRatio: "auto" });
2796
+ pipEl.animate([box(first), box(last)], { duration: 600, easing: ease });
2797
+ }
2798
+ var camOverlay = document.getElementById("cam-overlay");
2799
+ var camPlace = "";
2800
+ function renderCamOverlay(place) {
2801
+ const was = camPlace, wasBox = camOverlay.querySelector(".cam-box"), from = wasBox && wasBox.getBoundingClientRect();
2802
+ camPlace = place;
2803
+ stageWrap.dataset.place = place;
2804
+ camOverlay.innerHTML = "";
2805
+ const n = place && nodes.get(currentId);
2806
+ if (!n || !n.el) return;
2807
+ const body = n.el.querySelector(".body");
2808
+ const all = [...body.children].map((c) => c.cloneNode(true));
2809
+ const isMedia = (
2810
+ /** @param {Element} e */
2811
+ (e) => e.matches("figure.media, .diagram, .echarts-container, .gallery")
2812
+ );
2813
+ const boxes = [[place, all]];
2814
+ const cardWidth = body.clientWidth;
2815
+ boxes.forEach(([where, els]) => {
2816
+ if (!els.length) return;
2817
+ const box = document.createElement("div");
2818
+ box.className = "cam-box " + where;
2819
+ const part = (cls, kids) => {
2820
+ if (!kids.length) return;
2821
+ const wrap = document.createElement("div");
2822
+ wrap.className = cls;
2823
+ const card = document.createElement("section");
2824
+ card.className = "node";
2825
+ const inner = document.createElement("div");
2826
+ inner.className = "body";
2827
+ kids.forEach((e) => inner.appendChild(e));
2828
+ card.appendChild(inner);
2829
+ if (cls === "cam-media") card.style.width = cardWidth + "px";
2830
+ wrap.appendChild(card);
2831
+ box.appendChild(wrap);
2832
+ };
2833
+ part("cam-text", els.filter((e) => !isMedia(e)));
2834
+ part("cam-media", els.filter(isMedia));
2835
+ camOverlay.appendChild(box);
2836
+ });
2837
+ camOverlay.querySelectorAll("img").forEach((img) => {
2838
+ if (!img.complete) img.addEventListener("load", fitCamOverlay, { once: true });
2839
+ });
2840
+ fitCamOverlay();
2841
+ const nowBox = (
2842
+ /** @type {HTMLElement|null} */
2843
+ camOverlay.querySelector(".cam-box")
2844
+ );
2845
+ if (from && was && was !== place && nowBox && !reduceMotion && nowBox.animate) {
2846
+ const to = nowBox.getBoundingClientRect();
2847
+ if (Math.abs(from.width - to.width) < 2 && Math.abs(from.height - to.height) < 2)
2848
+ nowBox.animate(
2849
+ [{ transform: "translate(" + (from.left - to.left) + "px," + (from.top - to.top) + "px)" }, { transform: "none" }],
2850
+ { duration: 600, easing: "cubic-bezier(.65,0,.35,1)" }
2851
+ );
2852
+ }
2709
2853
  }
2854
+ function fitCamOverlay() {
2855
+ const most = stage.clientHeight / 240;
2856
+ camOverlay.querySelectorAll(".cam-media").forEach((box) => {
2857
+ const card = (
2858
+ /** @type {HTMLElement} */
2859
+ box.firstElementChild
2860
+ );
2861
+ const s = Math.min(box.clientWidth / card.offsetWidth, box.clientHeight / card.offsetHeight, most * 1.5);
2862
+ card.style.transform = "translate(-50%, -50%) scale(" + s + ")";
2863
+ });
2864
+ camOverlay.querySelectorAll(".cam-text").forEach((box) => {
2865
+ const card = (
2866
+ /** @type {HTMLElement} */
2867
+ box.firstElementChild
2868
+ );
2869
+ const bw = box.clientWidth, bh = box.clientHeight;
2870
+ let lo = 0.3, hi = most;
2871
+ for (let i = 0; i < 12; i++) {
2872
+ const s = (lo + hi) / 2;
2873
+ card.style.width = bw / s + "px";
2874
+ if (card.offsetHeight * s <= bh) lo = s;
2875
+ else hi = s;
2876
+ }
2877
+ card.style.width = bw / lo + "px";
2878
+ card.style.transform = "scale(" + lo + ")";
2879
+ });
2880
+ }
2881
+ new ResizeObserver(() => {
2882
+ if (camPlace) fitCamOverlay();
2883
+ }).observe(stageWrap);
2710
2884
  function pipRect() {
2711
2885
  const st = pipState;
2712
2886
  if (!st || pipEl.hidden || st.full) return null;
@@ -3333,13 +3507,18 @@
3333
3507
  div.textContent = "Chart data is not valid JSON.";
3334
3508
  return;
3335
3509
  }
3336
- echarts.init(div, theme, { renderer: "svg" }).setOption(Object.assign({ backgroundColor: "transparent", animation: !reduceMotion }, opt));
3510
+ const chart = echarts.init(div, theme, { renderer: "svg" });
3511
+ chart.on("finished", () => {
3512
+ if (camPlace && div.closest(".node") === (nodes.get(currentId) || {}).el) renderCamOverlay(camPlace);
3513
+ });
3514
+ chart.setOption(Object.assign({ backgroundColor: "transparent", animation: !reduceMotion }, opt));
3337
3515
  });
3338
3516
  } catch (e) {
3339
3517
  problems.push("charts");
3340
3518
  }
3341
3519
  }
3342
3520
  if (gen !== buildGen) return;
3521
+ if (camPlace) renderCamOverlay(camPlace);
3343
3522
  if (problems.length) statusErr.textContent = "Could not load the " + problems.join(" and ") + " renderer (offline?)";
3344
3523
  nodes.forEach(sizeCard);
3345
3524
  position();
@@ -3802,8 +3981,12 @@
3802
3981
  fitAll();
3803
3982
  mapTimer = setTimeout(() => {
3804
3983
  mapTimer = null;
3805
- if (currentId === id) focusOn(id);
3984
+ if (currentId === id) {
3985
+ applyPipState();
3986
+ focusOn(id);
3987
+ }
3806
3988
  }, 1900);
3989
+ applyPipState();
3807
3990
  } else focusOn(id, instant);
3808
3991
  updateActivePath();
3809
3992
  updateMinimap();
@@ -3832,6 +4015,7 @@
3832
4015
  leaveSlide();
3833
4016
  clearTimeout(autoTimer);
3834
4017
  currentId = null;
4018
+ applyPipState();
3835
4019
  updateActivePath();
3836
4020
  updateMinimap();
3837
4021
  fitAll();
@@ -3841,6 +4025,7 @@
3841
4025
  if (mapTimer) {
3842
4026
  clearTimeout(mapTimer);
3843
4027
  mapTimer = null;
4028
+ applyPipState();
3844
4029
  focusOn(currentId);
3845
4030
  return true;
3846
4031
  }
@@ -3860,6 +4045,7 @@
3860
4045
  if (mapTimer && dir > 0) {
3861
4046
  clearTimeout(mapTimer);
3862
4047
  mapTimer = null;
4048
+ applyPipState();
3863
4049
  focusOn(currentId);
3864
4050
  return;
3865
4051
  }
@@ -4373,6 +4559,7 @@
4373
4559
  }
4374
4560
  async function startCamPreview() {
4375
4561
  stopCamPreview();
4562
+ showMirror();
4376
4563
  const token = camPreviewToken, id = recCam.value;
4377
4564
  camNone.hidden = id !== "none" && !!id;
4378
4565
  camNone.textContent = "No camera";
@@ -4460,6 +4647,24 @@
4460
4647
  startMeter();
4461
4648
  setupSummary();
4462
4649
  };
4650
+ var recMirror = (
4651
+ /** @type {HTMLInputElement} */
4652
+ document.getElementById("rec-mirror")
4653
+ );
4654
+ function cameraMirrored() {
4655
+ const chosen = load("slidetake:mirror");
4656
+ return chosen ? chosen === "on" : /^(yes|true|on)$/i.test(deck.pip_mirror || "");
4657
+ }
4658
+ function showMirror() {
4659
+ recMirror.checked = cameraMirrored();
4660
+ camPreview.parentElement.classList.toggle("mirror", recMirror.checked);
4661
+ }
4662
+ recMirror.onchange = () => {
4663
+ save("slidetake:mirror", recMirror.checked ? "on" : "off");
4664
+ showMirror();
4665
+ applyPipState();
4666
+ };
4667
+ showMirror();
4463
4668
  recCam.onchange = () => {
4464
4669
  setCamChoice(recCam.value);
4465
4670
  if (recCam.value !== "none" && cameraStream) {
@@ -6159,6 +6364,7 @@
6159
6364
  function setCameraEnabled(on, quiet) {
6160
6365
  if (on && !RECORDING_UI) return;
6161
6366
  cameraOff = !on;
6367
+ if (!quiet) save("slidetake:camera", on ? "on" : "off");
6162
6368
  if (cameraOff) {
6163
6369
  stopWebcam();
6164
6370
  hidePipMsg();
@@ -6560,6 +6766,7 @@
6560
6766
  nodes.forEach(sizeCard);
6561
6767
  position();
6562
6768
  navigate(nodes.has(startId) ? startId : order[0], true);
6769
+ if (RECORDING_UI && load("slidetake:camera") === "on") setCameraEnabled(true, true);
6563
6770
  });
6564
6771
  })();
6565
6772
  </script>