@b3os/cli 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/README.md +87 -7
  2. package/assets/b3os-run.py +137 -0
  3. package/assets/skill/b3os/SKILL.md +111 -0
  4. package/dist/commands/_agents.d.ts +14 -0
  5. package/dist/commands/_agents.js +33 -0
  6. package/dist/commands/_agents.js.map +1 -0
  7. package/dist/commands/_common.js +6 -2
  8. package/dist/commands/_common.js.map +1 -1
  9. package/dist/commands/_context.d.ts +49 -0
  10. package/dist/commands/_context.js +260 -0
  11. package/dist/commands/_context.js.map +1 -0
  12. package/dist/commands/_next.d.ts +39 -0
  13. package/dist/commands/_next.js +77 -0
  14. package/dist/commands/_next.js.map +1 -0
  15. package/dist/commands/agent.d.ts +42 -0
  16. package/dist/commands/agent.js +218 -0
  17. package/dist/commands/agent.js.map +1 -0
  18. package/dist/commands/app.d.ts +2 -0
  19. package/dist/commands/app.js +559 -54
  20. package/dist/commands/app.js.map +1 -1
  21. package/dist/commands/auth.d.ts +88 -2
  22. package/dist/commands/auth.js +354 -44
  23. package/dist/commands/auth.js.map +1 -1
  24. package/dist/commands/docs.d.ts +54 -0
  25. package/dist/commands/docs.js +202 -0
  26. package/dist/commands/docs.js.map +1 -0
  27. package/dist/commands/doctor.d.ts +23 -0
  28. package/dist/commands/doctor.js +313 -0
  29. package/dist/commands/doctor.js.map +1 -0
  30. package/dist/commands/init.d.ts +38 -1
  31. package/dist/commands/init.js +259 -60
  32. package/dist/commands/init.js.map +1 -1
  33. package/dist/commands/listen.d.ts +30 -0
  34. package/dist/commands/listen.js +194 -0
  35. package/dist/commands/listen.js.map +1 -0
  36. package/dist/commands/manifest.d.ts +13 -1
  37. package/dist/commands/manifest.js +81 -18
  38. package/dist/commands/manifest.js.map +1 -1
  39. package/dist/commands/mcp.d.ts +25 -2
  40. package/dist/commands/mcp.js +120 -11
  41. package/dist/commands/mcp.js.map +1 -1
  42. package/dist/commands/sandbox.d.ts +35 -6
  43. package/dist/commands/sandbox.js +208 -9
  44. package/dist/commands/sandbox.js.map +1 -1
  45. package/dist/commands/setup.d.ts +39 -0
  46. package/dist/commands/setup.js +203 -0
  47. package/dist/commands/setup.js.map +1 -0
  48. package/dist/commands/tool.d.ts +154 -0
  49. package/dist/commands/tool.js +785 -0
  50. package/dist/commands/tool.js.map +1 -0
  51. package/dist/config.d.ts +30 -6
  52. package/dist/config.js +39 -8
  53. package/dist/config.js.map +1 -1
  54. package/dist/ctx.d.ts +5 -45
  55. package/dist/ctx.js +25 -160
  56. package/dist/ctx.js.map +1 -1
  57. package/dist/docs/index.json +1 -0
  58. package/dist/docs/pages/actions/call.md +300 -0
  59. package/dist/docs/pages/actions/catalog/airtable.md +737 -0
  60. package/dist/docs/pages/actions/catalog/arxiv.md +166 -0
  61. package/dist/docs/pages/actions/catalog/chainalysis-sanctions.md +125 -0
  62. package/dist/docs/pages/actions/catalog/coingecko.md +1558 -0
  63. package/dist/docs/pages/actions/catalog/deps-dev.md +465 -0
  64. package/dist/docs/pages/actions/catalog/dexscreener.md +568 -0
  65. package/dist/docs/pages/actions/catalog/discord.md +784 -0
  66. package/dist/docs/pages/actions/catalog/finnhub.md +776 -0
  67. package/dist/docs/pages/actions/catalog/frankfurter.md +438 -0
  68. package/dist/docs/pages/actions/catalog/github.md +1853 -0
  69. package/dist/docs/pages/actions/catalog/gmail.md +575 -0
  70. package/dist/docs/pages/actions/catalog/google-calendar.md +654 -0
  71. package/dist/docs/pages/actions/catalog/google-drive.md +502 -0
  72. package/dist/docs/pages/actions/catalog/google-sheets.md +700 -0
  73. package/dist/docs/pages/actions/catalog/hacker-news.md +542 -0
  74. package/dist/docs/pages/actions/catalog/http.md +824 -0
  75. package/dist/docs/pages/actions/catalog/hyperliquid.md +942 -0
  76. package/dist/docs/pages/actions/catalog/jira.md +920 -0
  77. package/dist/docs/pages/actions/catalog/kalshi.md +917 -0
  78. package/dist/docs/pages/actions/catalog/linear.md +1030 -0
  79. package/dist/docs/pages/actions/catalog/markets.md +21 -0
  80. package/dist/docs/pages/actions/catalog/morpho.md +247 -0
  81. package/dist/docs/pages/actions/catalog/notion.md +1077 -0
  82. package/dist/docs/pages/actions/catalog/nws.md +485 -0
  83. package/dist/docs/pages/actions/catalog/open-meteo.md +559 -0
  84. package/dist/docs/pages/actions/catalog/polymarket.md +1523 -0
  85. package/dist/docs/pages/actions/catalog/pushbullet.md +220 -0
  86. package/dist/docs/pages/actions/catalog/resend.md +307 -0
  87. package/dist/docs/pages/actions/catalog/s3.md +513 -0
  88. package/dist/docs/pages/actions/catalog/sec-edgar.md +487 -0
  89. package/dist/docs/pages/actions/catalog/slack.md +2629 -0
  90. package/dist/docs/pages/actions/catalog/stripe.md +1405 -0
  91. package/dist/docs/pages/actions/catalog/wikipedia.md +379 -0
  92. package/dist/docs/pages/actions/catalog.md +46 -0
  93. package/dist/docs/pages/actions/limits.md +50 -0
  94. package/dist/docs/pages/actions/model-tools.md +225 -0
  95. package/dist/docs/pages/actions/packs.md +148 -0
  96. package/dist/docs/pages/actions/settings.md +69 -0
  97. package/dist/docs/pages/actions/tools.md +244 -0
  98. package/dist/docs/pages/actions/triggers.md +149 -0
  99. package/dist/docs/pages/actions.md +88 -0
  100. package/dist/docs/pages/compat/anthropic.md +168 -0
  101. package/dist/docs/pages/compat/e2b.md +194 -0
  102. package/dist/docs/pages/compat/firecrawl.md +138 -0
  103. package/dist/docs/pages/compat/openai.md +168 -0
  104. package/dist/docs/pages/concepts/auth.md +151 -0
  105. package/dist/docs/pages/concepts/beta.md +55 -0
  106. package/dist/docs/pages/concepts/glossary.md +71 -0
  107. package/dist/docs/pages/concepts/ids.md +98 -0
  108. package/dist/docs/pages/concepts/jobs.md +229 -0
  109. package/dist/docs/pages/concepts/latency.md +138 -0
  110. package/dist/docs/pages/concepts/limits.md +191 -0
  111. package/dist/docs/pages/concepts/stack.md +59 -0
  112. package/dist/docs/pages/concepts/timing.md +86 -0
  113. package/dist/docs/pages/concepts/usage.md +110 -0
  114. package/dist/docs/pages/design/b3os-yaml.md +370 -0
  115. package/dist/docs/pages/design/deploy-from-github.md +122 -0
  116. package/dist/docs/pages/design/observability.md +134 -0
  117. package/dist/docs/pages/errors.md +1824 -0
  118. package/dist/docs/pages/infer/chat.md +570 -0
  119. package/dist/docs/pages/infer/limits.md +55 -0
  120. package/dist/docs/pages/infer/messages.md +185 -0
  121. package/dist/docs/pages/infer/responses.md +173 -0
  122. package/dist/docs/pages/infer/settings.md +154 -0
  123. package/dist/docs/pages/infer/speech.md +323 -0
  124. package/dist/docs/pages/infer.md +154 -0
  125. package/dist/docs/pages/introduction.md +162 -0
  126. package/dist/docs/pages/platform/addresses.md +174 -0
  127. package/dist/docs/pages/platform/call-log.md +99 -0
  128. package/dist/docs/pages/platform/custom-domains.md +104 -0
  129. package/dist/docs/pages/platform/keys.md +79 -0
  130. package/dist/docs/pages/platform/limits.md +57 -0
  131. package/dist/docs/pages/platform/members.md +101 -0
  132. package/dist/docs/pages/platform/requests.md +116 -0
  133. package/dist/docs/pages/platform/settings.md +129 -0
  134. package/dist/docs/pages/platform/webhooks.md +68 -0
  135. package/dist/docs/pages/platform.md +67 -0
  136. package/dist/docs/pages/quickstart/mcp.md +94 -0
  137. package/dist/docs/pages/quickstart/sandbox-agent.md +205 -0
  138. package/dist/docs/pages/quickstart/scrape.md +134 -0
  139. package/dist/docs/pages/quickstart.md +45 -0
  140. package/dist/docs/pages/render/inspections.md +162 -0
  141. package/dist/docs/pages/render/limits.md +72 -0
  142. package/dist/docs/pages/render/screenshots.md +179 -0
  143. package/dist/docs/pages/render/settings.md +431 -0
  144. package/dist/docs/pages/render/styles.md +342 -0
  145. package/dist/docs/pages/render/videos.md +272 -0
  146. package/dist/docs/pages/render.md +118 -0
  147. package/dist/docs/pages/routines/callables.md +174 -0
  148. package/dist/docs/pages/routines/definitions.md +361 -0
  149. package/dist/docs/pages/routines/limits.md +117 -0
  150. package/dist/docs/pages/routines/runs.md +328 -0
  151. package/dist/docs/pages/routines/settings.md +104 -0
  152. package/dist/docs/pages/routines/triggers.md +339 -0
  153. package/dist/docs/pages/routines.md +216 -0
  154. package/dist/docs/pages/sandboxes/agents.md +217 -0
  155. package/dist/docs/pages/sandboxes/commands.md +272 -0
  156. package/dist/docs/pages/sandboxes/images.md +166 -0
  157. package/dist/docs/pages/sandboxes/limits.md +143 -0
  158. package/dist/docs/pages/sandboxes/ports.md +260 -0
  159. package/dist/docs/pages/sandboxes/settings.md +358 -0
  160. package/dist/docs/pages/sandboxes/snapshots.md +423 -0
  161. package/dist/docs/pages/sandboxes/swarms.md +146 -0
  162. package/dist/docs/pages/sandboxes/volumes.md +131 -0
  163. package/dist/docs/pages/sandboxes.md +231 -0
  164. package/dist/docs/pages/sdks/cli.md +121 -0
  165. package/dist/docs/pages/sdks/mcp.md +169 -0
  166. package/dist/docs/pages/sdks/python.md +146 -0
  167. package/dist/docs/pages/sdks/typescript.md +202 -0
  168. package/dist/docs/pages/sdks.md +282 -0
  169. package/dist/docs/pages/settings.md +33 -0
  170. package/dist/docs/pages/vault/limits.md +46 -0
  171. package/dist/docs/pages/vault.md +133 -0
  172. package/dist/docs/pages/vision/agent-browser.md +115 -0
  173. package/dist/docs/pages/vision/crawl.md +333 -0
  174. package/dist/docs/pages/vision/extract.md +152 -0
  175. package/dist/docs/pages/vision/fetcher.md +15 -0
  176. package/dist/docs/pages/vision/limits.md +79 -0
  177. package/dist/docs/pages/vision/profiles.md +111 -0
  178. package/dist/docs/pages/vision/proxy.md +131 -0
  179. package/dist/docs/pages/vision/scrape.md +356 -0
  180. package/dist/docs/pages/vision/sessions.md +311 -0
  181. package/dist/docs/pages/vision/settings.md +656 -0
  182. package/dist/docs/pages/vision.md +175 -0
  183. package/dist/errors.d.ts +129 -0
  184. package/dist/errors.js +326 -0
  185. package/dist/errors.js.map +1 -0
  186. package/dist/main.d.ts +1 -1
  187. package/dist/main.js +26 -13
  188. package/dist/main.js.map +1 -1
  189. package/dist/manifest/apply.d.ts +4 -0
  190. package/dist/manifest/apply.js +2 -0
  191. package/dist/manifest/apply.js.map +1 -1
  192. package/dist/manifest/domains.d.ts +50 -0
  193. package/dist/manifest/domains.js +159 -0
  194. package/dist/manifest/domains.js.map +1 -0
  195. package/dist/manifest/link.d.ts +20 -0
  196. package/dist/manifest/link.js +24 -0
  197. package/dist/manifest/link.js.map +1 -0
  198. package/dist/manifest/record.d.ts +1 -1
  199. package/dist/tool/archive.d.ts +33 -0
  200. package/dist/tool/archive.js +174 -0
  201. package/dist/tool/archive.js.map +1 -0
  202. package/dist/tool/calls.d.ts +46 -0
  203. package/dist/tool/calls.js +274 -0
  204. package/dist/tool/calls.js.map +1 -0
  205. package/dist/tool/checks.d.ts +21 -0
  206. package/dist/tool/checks.js +145 -0
  207. package/dist/tool/checks.js.map +1 -0
  208. package/dist/tool/elf.d.ts +19 -0
  209. package/dist/tool/elf.js +107 -0
  210. package/dist/tool/elf.js.map +1 -0
  211. package/dist/tool/predict.d.ts +8 -0
  212. package/dist/tool/predict.js +38 -0
  213. package/dist/tool/predict.js.map +1 -0
  214. package/dist/tool/ustar.d.ts +5 -0
  215. package/dist/tool/ustar.js +220 -0
  216. package/dist/tool/ustar.js.map +1 -0
  217. package/package.json +6 -5
@@ -0,0 +1,342 @@
1
+ # Styles and captions
2
+
3
+ > The style presets and overrides that frame screenshots and videos, the colors they take, and how render times and draws word-level captions.
4
+
5
+ Source: https://docs.beta.b3os.org/render/styles.md
6
+
7
+ Screenshots, videos and restyles take the same `style` object: one preset for each of five parts, plus `overrides` for anything a preset does not set.
8
+
9
+ ```json
10
+ {
11
+ "style": {
12
+ "background": "midnight",
13
+ "frame": "browser-dark",
14
+ "cursor": "arrow",
15
+ "captions": "default",
16
+ "click_effect": "ripple",
17
+ "overrides": { "padding": 48, "corner_radius": 16, "shadow": "float" }
18
+ }
19
+ }
20
+ ```
21
+
22
+ Every field is optional. A screenshot request without `style` is a plain screenshot: the capture as the page painted it. A `style` object, even `{}`, gets the B3OS look for whatever it leaves out: an `auto` background, no frame, padding that scales with the canvas's long edge (48 to 160 pixels), corner radius 14, and a contact and an ambient shadow tinted with the background's own hue. On a video the corners are 22 pixels at 1080p and the shadow is the layered `soft` one, as screen recorders draw a window. A dark page gets a light 1 pixel rim, and `mac`, `browser` and `windows` title bars follow the page's theme. The address pill shows the page's host and the `mac` bar its title, or its host when there is no title, unless `frame_url` or `frame_title` says otherwise.
23
+
24
+ A video's look is the same on the bare rounded window, with no title bar, as tall as screen recorders frame one and as wide as a desktop page needs (`window_shape: "tall"`): 8% of the frame's height above and below the window and, on a landscape frame, 6.5% of its width at each side, the window never wider than 2:1. At 1920x1080 that is a 1668x864 window, 80% of the frame's height, over the default 1440x746 viewport, so the page is drawn 1.16 times its CSS size, and captured at that scale, so its text is as sharp as the page; the window sits on even pixels, so its edges do not split the video's color samples. `window_shape: "wide"` gives the first look v2 frame instead, 9% of the long edge on every side. A frame preset adds a bar; a video's has no title, since it moves between pages: a `mac` bar shows the host. Burned-in captions sit in the margin under the window, which grows to hold them: see [captions](#captions).
25
+
26
+ ## Presets
27
+
28
+ `GET /v1/render/presets` lists every preset with a preview image, and `?kind=background` narrows it to one kind. A `style` that leaves a part out gets `auto` for the background, `none` for the frame, `arrow` for the cursor, `default` for captions and `ripple` for the click effect. Preset IDs are unique across kinds, so a frame name never works as a cursor.
29
+
30
+ ### Backgrounds
31
+
32
+ <a href="https://beta.b3os.org/gallery/render/bg-b3os-light/bea95281f0a98030.webp"><img src="https://beta.b3os.org/gallery/render/bg-b3os-light/bea95281f0a98030.webp" srcset="https://beta.b3os.org/gallery/render/bg-b3os-light/9c0e7440e5362292.webp 640w, https://beta.b3os.org/gallery/render/bg-b3os-light/41d1cb07b1ff8aeb.webp 1080w, https://beta.b3os.org/gallery/render/bg-b3os-light/bea95281f0a98030.webp 1636w" sizes="(max-width: 640px) calc(100vw - 60px), 254px" alt="B3OS light: image from the capture render/bg-b3os-light" width="1636" height="1140" loading="lazy" /></a>
33
+ <a href="https://beta.b3os.org/gallery/render/bg-b3os-dark/4ec0e861226a7399.webp"><img src="https://beta.b3os.org/gallery/render/bg-b3os-dark/4ec0e861226a7399.webp" srcset="https://beta.b3os.org/gallery/render/bg-b3os-dark/093d3401d414cea7.webp 640w, https://beta.b3os.org/gallery/render/bg-b3os-dark/87254daba8042438.webp 1080w, https://beta.b3os.org/gallery/render/bg-b3os-dark/4ec0e861226a7399.webp 1636w" sizes="(max-width: 640px) calc(100vw - 60px), 254px" alt="B3OS dark: image from the capture render/bg-b3os-dark" width="1636" height="1140" loading="lazy" /></a>
34
+ <a href="https://beta.b3os.org/gallery/render/bg-b3os-blue/c0b278aa6a036b0d.webp"><img src="https://beta.b3os.org/gallery/render/bg-b3os-blue/c0b278aa6a036b0d.webp" srcset="https://beta.b3os.org/gallery/render/bg-b3os-blue/7f69d10d5c3bfbb0.webp 640w, https://beta.b3os.org/gallery/render/bg-b3os-blue/0cc159baf553a19e.webp 1080w, https://beta.b3os.org/gallery/render/bg-b3os-blue/c0b278aa6a036b0d.webp 1636w" sizes="(max-width: 640px) calc(100vw - 60px), 254px" alt="B3OS blue: image from the capture render/bg-b3os-blue" width="1636" height="1140" loading="lazy" /></a>
35
+ <a href="https://beta.b3os.org/gallery/render/bg-midnight/c602e0cc46375cde.webp"><img src="https://beta.b3os.org/gallery/render/bg-midnight/c602e0cc46375cde.webp" srcset="https://beta.b3os.org/gallery/render/bg-midnight/d882be5397ee1d9f.webp 640w, https://beta.b3os.org/gallery/render/bg-midnight/30fb72d06a410902.webp 1080w, https://beta.b3os.org/gallery/render/bg-midnight/c602e0cc46375cde.webp 1636w" sizes="(max-width: 640px) calc(100vw - 60px), 254px" alt="Midnight: image from the capture render/bg-midnight" width="1636" height="1140" loading="lazy" /></a>
36
+ <a href="https://beta.b3os.org/gallery/render/bg-aurora/efc935548618f8f7.webp"><img src="https://beta.b3os.org/gallery/render/bg-aurora/efc935548618f8f7.webp" srcset="https://beta.b3os.org/gallery/render/bg-aurora/6b74d746b6e6ba79.webp 640w, https://beta.b3os.org/gallery/render/bg-aurora/3c26456000b9633d.webp 1080w, https://beta.b3os.org/gallery/render/bg-aurora/efc935548618f8f7.webp 1636w" sizes="(max-width: 640px) calc(100vw - 60px), 254px" alt="Aurora: image from the capture render/bg-aurora" width="1636" height="1140" loading="lazy" /></a>
37
+ <a href="https://beta.b3os.org/gallery/render/bg-sunset/e654e73d48823953.webp"><img src="https://beta.b3os.org/gallery/render/bg-sunset/e654e73d48823953.webp" srcset="https://beta.b3os.org/gallery/render/bg-sunset/7e131826ae1d0060.webp 640w, https://beta.b3os.org/gallery/render/bg-sunset/1ecd4a10e76c4639.webp 1080w, https://beta.b3os.org/gallery/render/bg-sunset/e654e73d48823953.webp 1636w" sizes="(max-width: 640px) calc(100vw - 60px), 254px" alt="Sunset: image from the capture render/bg-sunset" width="1636" height="1140" loading="lazy" /></a>
38
+ <a href="https://beta.b3os.org/gallery/render/bg-ocean/29a4ddbf5443bb2b.webp"><img src="https://beta.b3os.org/gallery/render/bg-ocean/29a4ddbf5443bb2b.webp" srcset="https://beta.b3os.org/gallery/render/bg-ocean/1ece4e00847ee222.webp 640w, https://beta.b3os.org/gallery/render/bg-ocean/2b83abbd20859a4c.webp 1080w, https://beta.b3os.org/gallery/render/bg-ocean/29a4ddbf5443bb2b.webp 1636w" sizes="(max-width: 640px) calc(100vw - 60px), 254px" alt="Ocean: image from the capture render/bg-ocean" width="1636" height="1140" loading="lazy" /></a>
39
+ <a href="https://beta.b3os.org/gallery/render/bg-arctic/e932d79670b58b46.webp"><img src="https://beta.b3os.org/gallery/render/bg-arctic/e932d79670b58b46.webp" srcset="https://beta.b3os.org/gallery/render/bg-arctic/cf2b4e19fa427982.webp 640w, https://beta.b3os.org/gallery/render/bg-arctic/195f737b341d33cd.webp 1080w, https://beta.b3os.org/gallery/render/bg-arctic/e932d79670b58b46.webp 1636w" sizes="(max-width: 640px) calc(100vw - 60px), 254px" alt="Arctic: image from the capture render/bg-arctic" width="1636" height="1140" loading="lazy" /></a>
40
+ <a href="https://beta.b3os.org/gallery/render/bg-dusk/ccd3e5414d2827f0.webp"><img src="https://beta.b3os.org/gallery/render/bg-dusk/ccd3e5414d2827f0.webp" srcset="https://beta.b3os.org/gallery/render/bg-dusk/3c7741e238bae728.webp 640w, https://beta.b3os.org/gallery/render/bg-dusk/06b43b3df78ceb8b.webp 1080w, https://beta.b3os.org/gallery/render/bg-dusk/ccd3e5414d2827f0.webp 1636w" sizes="(max-width: 640px) calc(100vw - 60px), 254px" alt="Dusk: image from the capture render/bg-dusk" width="1636" height="1140" loading="lazy" /></a>
41
+ <a href="https://beta.b3os.org/gallery/render/bg-forest/a84825cc397e7c90.webp"><img src="https://beta.b3os.org/gallery/render/bg-forest/a84825cc397e7c90.webp" srcset="https://beta.b3os.org/gallery/render/bg-forest/b59eb36d46ec61f1.webp 640w, https://beta.b3os.org/gallery/render/bg-forest/5db1e71a4eb53708.webp 1080w, https://beta.b3os.org/gallery/render/bg-forest/a84825cc397e7c90.webp 1636w" sizes="(max-width: 640px) calc(100vw - 60px), 254px" alt="Forest: image from the capture render/bg-forest" width="1636" height="1140" loading="lazy" /></a>
42
+ <a href="https://beta.b3os.org/gallery/render/bg-ember/3ee80dba2746a66e.webp"><img src="https://beta.b3os.org/gallery/render/bg-ember/3ee80dba2746a66e.webp" srcset="https://beta.b3os.org/gallery/render/bg-ember/f1ac958146644da5.webp 640w, https://beta.b3os.org/gallery/render/bg-ember/7f20eb5419f81773.webp 1080w, https://beta.b3os.org/gallery/render/bg-ember/3ee80dba2746a66e.webp 1636w" sizes="(max-width: 640px) calc(100vw - 60px), 254px" alt="Ember: image from the capture render/bg-ember" width="1636" height="1140" loading="lazy" /></a>
43
+ <a href="https://beta.b3os.org/gallery/render/bg-graphite/aa6faf6938d6c587.webp"><img src="https://beta.b3os.org/gallery/render/bg-graphite/aa6faf6938d6c587.webp" srcset="https://beta.b3os.org/gallery/render/bg-graphite/f69ee3f2ef5c5939.webp 640w, https://beta.b3os.org/gallery/render/bg-graphite/5337cbe8be93a1ce.webp 1080w, https://beta.b3os.org/gallery/render/bg-graphite/aa6faf6938d6c587.webp 1636w" sizes="(max-width: 640px) calc(100vw - 60px), 254px" alt="Graphite: image from the capture render/bg-graphite" width="1636" height="1140" loading="lazy" /></a>
44
+ <a href="https://beta.b3os.org/gallery/render/bg-paper/f59f128fcf495cf3.webp"><img src="https://beta.b3os.org/gallery/render/bg-paper/f59f128fcf495cf3.webp" srcset="https://beta.b3os.org/gallery/render/bg-paper/50ccc5ae033cb135.webp 640w, https://beta.b3os.org/gallery/render/bg-paper/5249bef8db0f352a.webp 1080w, https://beta.b3os.org/gallery/render/bg-paper/f59f128fcf495cf3.webp 1636w" sizes="(max-width: 640px) calc(100vw - 60px), 254px" alt="Paper: image from the capture render/bg-paper" width="1636" height="1140" loading="lazy" /></a>
45
+
46
+ <sub>Captured 2026-11-03 from commit `794650bb` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/bg-b3os-light`.</sub>
47
+
48
+ <sub>Captured 2026-11-03 from commit `794650bb` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/bg-b3os-dark`.</sub>
49
+
50
+ <sub>Captured 2026-11-03 from commit `794650bb` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/bg-b3os-blue`.</sub>
51
+
52
+ <sub>Captured 2026-11-03 from commit `794650bb` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/bg-midnight`.</sub>
53
+
54
+ <sub>Captured 2026-11-03 from commit `794650bb` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/bg-aurora`.</sub>
55
+
56
+ <sub>Captured 2026-11-03 from commit `794650bb` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/bg-sunset`.</sub>
57
+
58
+ <sub>Captured 2026-11-03 from commit `794650bb` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/bg-ocean`.</sub>
59
+
60
+ <sub>Captured 2026-11-03 from commit `794650bb` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/bg-arctic`.</sub>
61
+
62
+ <sub>Captured 2026-11-03 from commit `794650bb` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/bg-dusk`.</sub>
63
+
64
+ <sub>Captured 2026-11-03 from commit `794650bb` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/bg-forest`.</sub>
65
+
66
+ <sub>Captured 2026-11-03 from commit `794650bb` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/bg-ember`.</sub>
67
+
68
+ <sub>Captured 2026-11-03 from commit `794650bb` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/bg-graphite`.</sub>
69
+
70
+ <sub>Captured 2026-11-03 from commit `794650bb` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/bg-paper`.</sub>
71
+
72
+ ### Frames
73
+
74
+ <a href="https://beta.b3os.org/gallery/render/frame-mac/cfdee9a240b34ced.webp"><img src="https://beta.b3os.org/gallery/render/frame-mac/cfdee9a240b34ced.webp" srcset="https://beta.b3os.org/gallery/render/frame-mac/125833f2bbb7273e.webp 640w, https://beta.b3os.org/gallery/render/frame-mac/946f18a6effde48a.webp 1080w, https://beta.b3os.org/gallery/render/frame-mac/cfdee9a240b34ced.webp 1568w" sizes="(max-width: 640px) calc(100vw - 60px), 190px" alt="macOS window: image from the capture render/frame-mac" width="1568" height="1060" loading="lazy" /></a>
75
+ <a href="https://beta.b3os.org/gallery/render/frame-mac-dark/08b84a75e739ab51.webp"><img src="https://beta.b3os.org/gallery/render/frame-mac-dark/08b84a75e739ab51.webp" srcset="https://beta.b3os.org/gallery/render/frame-mac-dark/3f01d42dd3b4fc70.webp 640w, https://beta.b3os.org/gallery/render/frame-mac-dark/0e23069dbf733ec5.webp 1080w, https://beta.b3os.org/gallery/render/frame-mac-dark/08b84a75e739ab51.webp 1568w" sizes="(max-width: 640px) calc(100vw - 60px), 190px" alt="macOS window (dark): image from the capture render/frame-mac-dark" width="1568" height="1060" loading="lazy" /></a>
76
+ <a href="https://beta.b3os.org/gallery/render/frame-browser/76ea1624c55e04cb.webp"><img src="https://beta.b3os.org/gallery/render/frame-browser/76ea1624c55e04cb.webp" srcset="https://beta.b3os.org/gallery/render/frame-browser/1cf021021cf2b54f.webp 640w, https://beta.b3os.org/gallery/render/frame-browser/090d8060fecbff50.webp 1080w, https://beta.b3os.org/gallery/render/frame-browser/76ea1624c55e04cb.webp 1568w" sizes="(max-width: 640px) calc(100vw - 60px), 190px" alt="Browser: image from the capture render/frame-browser" width="1568" height="1072" loading="lazy" /></a>
77
+ <a href="https://beta.b3os.org/gallery/render/frame-browser-dark/0fb7d695c7bd35e1.webp"><img src="https://beta.b3os.org/gallery/render/frame-browser-dark/0fb7d695c7bd35e1.webp" srcset="https://beta.b3os.org/gallery/render/frame-browser-dark/281f4fd918e476fd.webp 640w, https://beta.b3os.org/gallery/render/frame-browser-dark/b6477670d42be470.webp 1080w, https://beta.b3os.org/gallery/render/frame-browser-dark/0fb7d695c7bd35e1.webp 1568w" sizes="(max-width: 640px) calc(100vw - 60px), 190px" alt="Browser (dark): image from the capture render/frame-browser-dark" width="1568" height="1072" loading="lazy" /></a>
78
+ <a href="https://beta.b3os.org/gallery/render/frame-windows/f9ae574c4d40fedb.webp"><img src="https://beta.b3os.org/gallery/render/frame-windows/f9ae574c4d40fedb.webp" srcset="https://beta.b3os.org/gallery/render/frame-windows/56b483d65fad9944.webp 640w, https://beta.b3os.org/gallery/render/frame-windows/a4e11d18da845618.webp 1080w, https://beta.b3os.org/gallery/render/frame-windows/f9ae574c4d40fedb.webp 1568w" sizes="(max-width: 640px) calc(100vw - 60px), 190px" alt="Windows window: image from the capture render/frame-windows" width="1568" height="1060" loading="lazy" /></a>
79
+ <a href="https://beta.b3os.org/gallery/render/frame-windows-dark/bcf16a3ed6e9a65d.webp"><img src="https://beta.b3os.org/gallery/render/frame-windows-dark/bcf16a3ed6e9a65d.webp" srcset="https://beta.b3os.org/gallery/render/frame-windows-dark/81460a3c87cd04e5.webp 640w, https://beta.b3os.org/gallery/render/frame-windows-dark/c2dfb93745043577.webp 1080w, https://beta.b3os.org/gallery/render/frame-windows-dark/bcf16a3ed6e9a65d.webp 1568w" sizes="(max-width: 640px) calc(100vw - 60px), 190px" alt="Windows window (dark): image from the capture render/frame-windows-dark" width="1568" height="1060" loading="lazy" /></a>
80
+ <img src="https://beta.b3os.org/gallery/render/frame-phone/1a0f6818bf55a380.webp" alt="Phone: image from the capture render/frame-phone" width="542" height="996" loading="lazy" />
81
+ <img src="https://beta.b3os.org/gallery/render/frame-tablet/74065e03bf33dd47.webp" alt="Tablet: image from the capture render/frame-tablet" width="988" height="1348" loading="lazy" />
82
+
83
+ <sub>Captured 2026-11-01 from commit `617e5c05` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/frame-mac`.</sub>
84
+
85
+ <sub>Captured 2026-11-01 from commit `617e5c05` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/frame-mac-dark`.</sub>
86
+
87
+ <sub>Captured 2026-11-01 from commit `617e5c05` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/frame-browser`.</sub>
88
+
89
+ <sub>Captured 2026-11-01 from commit `617e5c05` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/frame-browser-dark`.</sub>
90
+
91
+ <sub>Captured 2026-11-01 from commit `617e5c05` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/frame-windows`.</sub>
92
+
93
+ <sub>Captured 2026-11-01 from commit `617e5c05` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/frame-windows-dark`.</sub>
94
+
95
+ <sub>Captured 2026-11-01 from commit `617e5c05` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/frame-phone`.</sub>
96
+
97
+ <sub>Captured 2026-11-01 from commit `617e5c05` on the host the node runs on, one call, label `live-recorded` (recorded from production). Case `render/frame-tablet`.</sub>
98
+
99
+ `window` is a macOS window with a unified title bar: 28 pixels tall at 1080p, the three traffic lights and nothing else, no title and no address. The bar takes the page's own top color (read from a screenshot's page, or a video's first frame), so it reads as the page's toolbar, and its lights follow that color's tone. A faint line under the bar marks it off only when the bar differs from the page's top, as `window-dark` on a light page does. A video has no frame by default: the bare rounded window. `window-dark` keeps a dark bar whatever the page, as `overrides.theme` does for both. Their previews are in `GET /v1/render/presets?kind=frame`.
100
+
101
+ `laptop`, `laptop-dark` and `desktop` put the page on a device: a laptop screen on the front edge of its deck (silver or space gray), or a monitor on a stand. Their shadows follow the device's outline, not a rectangle, so the canvas beside the lid or the stand stays clear. A viewport of 1440x900 or wider suits them; the frame wraps whatever size the page has. Their previews are in `GET /v1/render/presets?kind=frame`.
102
+
103
+ ### Cursors
104
+
105
+ <img src="https://beta.b3os.org/assets/presets/arrow.webp" alt="Preview of the Arrow cursor preset" width="960" height="600" loading="lazy" />
106
+ <img src="https://beta.b3os.org/assets/presets/arrow-light.webp" alt="Preview of the Arrow (light) cursor preset" width="960" height="600" loading="lazy" />
107
+ <img src="https://beta.b3os.org/assets/presets/dot.webp" alt="Preview of the Dot cursor preset" width="960" height="600" loading="lazy" />
108
+
109
+ <sub>The cursor presets with the preview images GET /v1/render/presets links (preview_url).</sub>
110
+
111
+ ### Captions
112
+
113
+ A video's captions sit in the margin under the window, centered between the window and the frame's edge with at least 32 pixels (at 1080p) on each side, so they never cover the page. At 1920x1080 the margin under the window is 130 pixels with the default captions, where it is 86 above it; larger captions grow it. A cue of two lines is drawn on one line when that line fits, unless the request sets `max_chars_per_line` or `max_lines`; when a cue does not fit on one line, as on a portrait video, it takes two lines, and the margin grows to hold them when it must. The video decides once, so its captions never jump: when they are too large for a margin of at most a fifth of the frame's height, or a fixed `padding` is too small for them, every caption sits over the page instead, near the window's foot. `caption_position: "top"` puts them in the margin above the window. Captions keep that place for the whole video: a cue never jumps to the other edge, and the camera keeps every element it frames, and the cursor, at least 24 pixels (at 1080p) clear of the pill. Where the window lies under a caption, when the camera zooms in until the page fills the frame or when the captions sit over the page, the caption never cuts a line of text: the window's pixels from 120 pixels (at 1080p) above the caption's box to the frame's edge are blurred, from nothing at the top to a 16 pixel blur at the box's edge and below it, and light content there is darkened by up to 6%, so the text beside, above and below the caption dissolves (`caption_backdrop`). The wallpaper, the caption and the cursor stay sharp, and where the caption lies on the wallpaper, as at rest, nothing changes. The blur keeps its own time, so the picture under the captions does not change between two lines: it stays through a pause of 1 s or less between two lines on one page while the page lies under the caption at both ends of it, and only the pill fades; it fades in and out over 200 ms before the first line, after the last, at a page change and across a longer pause. `default` is a small near-black pill (96%, and opaque where it lies over the window) with a 1 pixel inside edge of white at 10% and a soft shadow under it (6 pixels down, 24 pixels of blur, 35% black), so nothing shows through it on a light page; what little shows through is grey, never the background's hue. Where the darkest 30% of what it covers is darker than luma 24, such as a dark terminal or a dark code panel beside light text, its fill is lifted to at least 18 levels above that and its edge to white at 20%, so it still reads as a pill. It fades in over the 150 ms before a cue starts, so its first word reads when it is spoken, and out over its last 150 ms; a cue that starts within 0.3 s of the one before it keeps the pill, its text crossfading over 120 ms while the pill's width follows over 200 ms. A cue stays at least 1.2 s when the next one starts late enough, and one that would still show under 0.8 s joins the next when they fit one cue. It stays up until 0.2 s after its last word and 0.3 s after the last step of its beat is done, so a line never leaves before the click it names; one still up when a click loads a new page ends 0.1 s after that page first shows, or 0.2 s after its last word when that is later. Its karaoke keeps time with the narration: the words already spoken are white, the word being spoken is lit in a color taken from the background (`caption_highlight: "auto"`), and the words still to come are at 55% (`caption_upcoming`). A preset background carries its own accent, the color it is most known by (the orange of an orange field); any other image or a gradient gives its most saturated color, and a flat or grey background gives #9CB0FF, B3 blue mixed toward white. Whatever the source, the color is lightened or darkened, its hue kept, until it reads at 4.5:1 or more on the pill, stands well apart from the white of the words already spoken and is at least 10 points of CIELAB lightness brighter than the words still to come, so the word being spoken is never the dimmest one in the pill; the video keeps it from its first word to its last. That is what `auto` guarantees: a color you set with `caption_highlight` is drawn as you set it. Each word lights over 80 ms, centred on when it is spoken, as the word before it settles to white (`caption_fade_ms`), and only colors change, so the line never moves. `bold` is a large dark pill whose karaoke word is yellow; `minimal` is outlined text with no box; `light` is dark text on a white box. The previews show each on the `ocean` background.
114
+
115
+ <img src="https://beta.b3os.org/assets/presets/default.webp" alt="Preview of the Default captions preset" width="960" height="600" loading="lazy" />
116
+ <img src="https://beta.b3os.org/assets/presets/bold.webp" alt="Preview of the Bold captions preset" width="960" height="600" loading="lazy" />
117
+ <img src="https://beta.b3os.org/assets/presets/minimal.webp" alt="Preview of the Minimal captions preset" width="960" height="600" loading="lazy" />
118
+ <img src="https://beta.b3os.org/assets/presets/light.webp" alt="Preview of the Light captions preset" width="960" height="600" loading="lazy" />
119
+
120
+ <sub>The captions presets with the preview images GET /v1/render/presets links (preview_url).</sub>
121
+
122
+ ### Click effects
123
+
124
+ <img src="https://beta.b3os.org/assets/presets/ripple.webp" alt="Preview of the Ripple click effect preset" width="960" height="600" loading="lazy" />
125
+ <img src="https://beta.b3os.org/assets/presets/ring.webp" alt="Preview of the Ring click effect preset" width="960" height="600" loading="lazy" />
126
+
127
+ <sub>The click effect presets with the preview images GET /v1/render/presets links (preview_url).</sub>
128
+
129
+ Four values are not presets and have no preview: `none` (any part: draw nothing, so `captions: "none"` drops burned-in captions on a restyle), and `auto`, `studio` and `transparent` for `background`.
130
+
131
+ - `auto` draws one of 24 library images chosen for the page, on videos and on styled screenshots alike. They are the ones `GET /v1/render/backgrounds?tag=video` lists (a node's `[render.library] video_backgrounds` can name others): macOS-style waves, calm blue and teal fields, warm amber and peach fields, soft pastels, deep dark fields, a grey grain and five soft photographs. Other library images are drawn by `background_ref`. On a video the image is drawn a little soft, and softer as the camera zooms in, as any image background is unless `camera.background_blur` is `false`; a screenshot draws it sharp. How one is chosen is described in [the auto background](#the-auto-background) below. When no image suits the page's edges, or the node has no images, `auto` draws the studio pick, unless the project, the organization or the node pins an image: then it draws that image (step 1 below). If the render node cannot load the image in time, the video or screenshot draws the studio pick and `warnings` says so (`background_fallback`); a restyle tries again. The node waits up to 2 seconds for an image it has on disk, half a second for one it must fetch, and not at all while the image store is failing: for a minute after it fails, or as long as its `Retry-After` asks, from one second to ten minutes. A restyle without a style of a video made before 2026-11-11 (its timeline has no `look`) draws the studio pick it drew then: in that look the first frame is read in its own pixels, as production read it.
132
+ - `studio` is the studio pick by name, on screenshots and videos alike: what `auto` drew on both before 2026-11-11.
133
+ - `transparent` leaves the background transparent in PNG and WebP output, and JPEG fills it with the `matte` color.
134
+
135
+ ### The auto background
136
+
137
+ `auto` picks in four steps, from the page: a video's first frame, or a screenshot's capture.
138
+
139
+ 1. **Pinned.** An image named by `auto_background.pin` in the request is drawn as is. One named by the project's, the organization's or the node's setting, in that order, is drawn where it clears the page's edges by the rule in step 3. On a page it does not clear, the next steps pick instead, and `warnings` names the pin (`auto_background_pin`). When no image of the set clears that page either, the pin is drawn after all, without a warning.
140
+ 2. **Kept for the site.** The node keeps the model's pick, one per organization and site. The site is the page's registrable domain: `app.linear.app` and `linear.app/blog` are both `linear.app`, while `foo.github.io` is its own site, and `localhost` or an IP address is its own host. When the site already has a pick, the video or screenshot draws it again, so a site's videos and screenshots match. The kept pick survives restarts of the node. A page whose edges the kept image does not suit (a dark page on a light site, say) gets its own pick, and the site keeps its pick.
141
+ 3. **Vision.** Only images at least 12 L* from the page all along just outside the window's edges compete, and a dark page needs one at least 20 L* lighter outside its dark edges, so the window always reads clearly. A small vision model, `b3os/qwen3.5-9b`, then looks at the page and one labelled sheet of the images that compete, and picks the one that best matches the app's look and brand. The node runs this call itself; it is not billed to you. Its answer must name one of those images.
142
+ 4. **Color rules.** When the model is off or unavailable, does not answer within 4 seconds, or answers with something else, when one image competes, and for an `html` source, which has no site, the color rules pick: the image whose hue suits the page's accent color, analogous or complementary, and whose tone sits behind the page, deeper behind a light page and airier behind a dark one. Near ties go by the page's host.
143
+
144
+ Only the model's picks are kept. A color-rules pick is drawn for its own video or screenshot, and the site's next one asks the model again. When two videos of a new site start at once, the first pick kept wins and both draw it. The pick reads the page in CSS pixels, so it does not depend on the device scale.
145
+
146
+ The result says what was drawn, in `auto_background` on the video's `result` and on the screenshot:
147
+
148
+ ```json
149
+ {"ref": "gradient-blur-collection/gradbg-045", "chosen_by": "vision", "key": "duolingo.com",
150
+ "reason": "The app uses a bright, friendly green on a light page. A soft, airy sky blue background gently complements this without clashing, maintaining a calm and approachable mood."}
151
+ ```
152
+
153
+ That is the answer for `https://www.duolingo.com/` in a check on 2026-11-09; `https://blog.duolingo.com/` then drew the same image with `"chosen_by": "stored"`.
154
+
155
+ `chosen_by` is `vision`, `heuristic` (the color rules), `pinned` or `stored` (the pick kept for the site). On a video the timeline's `style` names the image in `overrides.background_ref`, and its `look` records it with how it was chosen, so a restyle without a style draws it again. Each of the 24 images has its own accent color, so the karaoke word of the `default` captions (`caption_highlight: auto`) starts from it; the timeline's `captions.highlight` records the color drawn. A restyle without a style draws the same image and the same word color without asking the model again; a restyle that brings a style fits the word to the background it draws.
156
+
157
+ `auto_background` on a video or screenshot request changes the pick for that request:
158
+
159
+ | Field | Meaning |
160
+ |---|---|
161
+ | `pin` | Draw this library image (an image in a pack `GET /v1/render/backgrounds` marks `auto`) instead of picking, on any page |
162
+ | `repick` | Ask the model again for this site and keep its answer in place of the old pick |
163
+ | `vision` | `false` picks with the color rules alone, without the model or the site's kept pick. `true` does not turn the model on where the node has turned it off |
164
+
165
+ A project or organization can set `pin` and `vision` for all its requests; in the beta the node operator sets them (`[render.auto_background]`), and `b3os.yaml` declares them as `render.auto_background`. Such a pin covers light and dark pages alike, so it gives way on a page whose edges its image does not clear, as step 1 says.
166
+ ## Overrides
167
+
168
+ `overrides` is a closed set of keys; anything else is refused. Lengths are CSS pixels, scaled with the capture's device pixel ratio for screenshots and with the output size for videos.
169
+
170
+ | Key | Value |
171
+ |---|---|
172
+ | `padding` | A number from 0 to 400, or `{x, y}`. Left out, 6% of the canvas's long edge on a screenshot (48 to 160 pixels), and on a video what `window_shape` gives (by default 86 pixels above the window and 126 at each side at 1920x1080, the window on even pixels), with room for the captions under the window |
173
+ | `corner_radius` | 0 to 64. Left out, 14 on a screenshot and 22 at 1080p on a video |
174
+ | `shadow` | A preset, `{x, y, blur, spread, color}`, or a list of up to 6 of those; see [shadows](#shadows) |
175
+ | `border` | `none`, or `{width, color}` with a width from 0 to 16; by default a hairline matched to the background |
176
+ | `background_color` | A color, for a solid background |
177
+ | `background_gradient` | `{angle, stops}` for a linear gradient, or `{kind: "radial", stops}`; stops are colors or `{color, at}` |
178
+ | `background_ref` | A library background, `<pack>/<slug>`: CSS gradient backgrounds, our 24 studio meshes (for example `studio/lagoon`) and the curated images of ScreenFramed's library (soft gradient fields, glass, cosmic fluids, textures, florals, scenes). [`GET /v1/render/backgrounds`](https://docs.beta.b3os.org/api/get-v1-render-backgrounds) lists them with thumbnails, filtered by pack, theme, tag or kind. `auto` picks the image that fits the captured page or a video's first frame; see [library backgrounds](#library-backgrounds) |
179
+ | `background_tokens` | New colors for a CSS library background's color tokens, such as `{"accent": "#2f43ff"}`; studio and image backgrounds have none |
180
+ | `aspect_ratio` | `auto`, `16:9`, `16:10`, `4:3`, `3:2`, `1:1`, `4:5`, `3:4`, `9:16` or `21:9`; a screenshot's canvas grows to it |
181
+ | `canvas` | `{width, height}`, a fixed screenshot size from 16 to 7680 a side; the page is fitted by `fit` |
182
+ | `fit` | `contain` (the default) or `cover`, which fills the width and crops the bottom |
183
+ | `layout` | `default`, or `bottom-cropped` for a hero with the window running off the bottom edge (screenshots); see [hero layout](#hero-layout) |
184
+ | `frame_title`, `frame_url` | Text for the window's title bar and address pill, up to 200 characters, drawn by the compositor and never parsed as HTML; a `mac` bar with no title shows `frame_url` |
185
+ | `theme` | `light` or `dark`: flips the frame and the `auto` background |
186
+ | `cursor_size`, `cursor_zoom` | A scale from 0.5 to 3 (1 by default). On a video, 1 is an arrow 48 px tall on a 1080p frame, as Screen Studio draws it, and it grows with the camera's zoom; on a screenshot, and with `look: 1`, 1 is the 22 px arrow on the page's scale. `cursor_zoom: false` keeps the cursor's size while the camera zooms |
187
+ | `cursor_press_scale` | How small a click makes the cursor, 0.5 to 1 (0.8 by default; 1 turns it off): it shrinks over 70 ms and springs back over 220 ms after the release, with no overshoot. With `look: 1`, the instant 0.88 of before |
188
+ | `click_color`, `click_duration_ms` | The click effect's color, and how long it lasts: 100 to 2000 ms, 450 ms by default. Left out, the color is B3 blue, and on a video white at 45% where the page under the click is darker than luma 100 or more saturated than 0.6, such as a blue button, so the ring shows there (not with `look: 1`) |
189
+ | `caption_size`, `caption_color`, `caption_highlight`, `caption_background`, `caption_position` | Caption text size in pixels at 1080p (12 to 120, 34 by default; `bold` starts at 42, `minimal` at 40 and `light` at 44), colors (hex, `rgb()` or a CSS color name such as `orange`; `caption_highlight` is the karaoke word being spoken, `auto` on the `default` captions: from the background), and `bottom` or `top`. A caption's box keeps at least 48 pixels (at 1080p) from each side of a video's frame: a cue too wide for that wraps between its words, and a word too wide for it alone draws that cue smaller (not with `look: 1`) |
190
+ | `caption_backdrop` | `blur` (the default) or `none`: what a video draws around a caption where the window lies under it. `blur` blurs the window's pixels from 120 pixels (at 1080p) above the caption's box to the frame's edge, progressively up to a 16 pixel blur at the box's edge, and darkens light content there by up to 6%, so no line of text reads as cut by the caption; it stays through a pause of 1 s or less between two lines on one page and fades over 200 ms before the first line, after the last, at a page change and across a longer pause. `none` leaves the page as it is. Never with `look: 1` |
191
+ | `caption_upcoming`, `caption_fade_ms` | Karaoke: how bright the words still to come are, as an opacity of `caption_color` from 0 to 1, and how long a word takes to light, 0 to 400 ms, as the word before it settles to `caption_color`. 0.55 and 80 for the `default` captions; 1 and 0 for the other presets, which draw the words to come like the spoken ones and light each word at once |
192
+ | `window_shape` | A video's window proportions under the default `padding`: `tall` (the default), 8% of the frame's height above and below the window and 6.5% of its width at each side on a landscape frame, a 1668x864 window at 1920x1080; or `wide`, 9% of the long edge on every side, a 1568x734 window at 1920x1080 |
193
+ | `motion_blur` | On by default: what moves is filmed with a half-frame shutter, as a camera would. On every frame of a zoom or pan that moves faster than `motion_blur_onset`, the window, page and background smear along their motion (the background by its own, slower motion). A moving cursor stays a sharp arrow on every frame, over a faint trail behind it of its own motion across the shutter, and of the camera's only as much as the page smears, at most three quarters of the arrow long. Every held frame is sharp and exactly as captured, and so is a frame the camera moves through more slowly than `motion_blur_onset`, or than `motion_blur_peak` of its move's top speed when the request sets one. With `look: 1` only the cursor's trail shows, where its smear did before |
194
+ | `motion_blur_shutter` | How long the shutter stays open, 0.1 to 1 frames, centered on each frame's time: 0.5 by default (half a frame at the default 60 fps); 1 is Screen Studio's whole frame (1/60 s at 60 fps), twice as long a smear |
195
+ | `motion_blur_onset` | How fast what the camera shows must move at the frame's edge, on average and with the zoom's own rate, before the window, page and background smear, 0 to 20 of the frame's short sides a second, whatever the frame rate: 0.45 by default, about 8 pixels a frame at 1080p and 60 fps, so slower frames stay sharp and a faster one smears by `motion_blur_shutter` of the motion past it, up to `motion_blur_max`. Read at the edge, a zoom about the middle of the frame blurs like one into a corner. 0 smears every frame of a move from its first pixel. The cursor's trail shows its own motion whatever this is |
196
+ | `motion_blur_max` | The longest smear a camera move leaves at the frame's edge, on average, 1 to 200 pixels at 1080p: 6.5 by default, so the fastest frames of every zoom soften alike (to about a quarter of the sharpness at rest) and a paused one still reads; 200 lifts the limit |
197
+ | `motion_blur_peak` | How close to its camera move's top speed a frame must be to smear, 0 to 1: 0 by default, no such gate; 0.9 smears only the two or three fastest frames of a move. `{"motion_blur_shutter": 1, "motion_blur_onset": 0, "motion_blur_max": 200}` smears every camera move by the whole frame, as Screen Studio does |
198
+ | `matte` | The color behind transparent pixels when the output is JPEG; white by default |
199
+ | `look` | `1` draws a video in production's look from before 2026-11-11: its frame and layout (`padding`, 64 pixels at 1080p by default, on every side, and the default viewport of then, 1440x730 at 1920x1080 in the browser frame), the captions over the page near the window's foot, the 60% black caption pill, `bold` as 52-pixel outlined text, the studio background for `auto`, 14-pixel corners, the old default shadow and a cursor shown from the start. A new video gets a page-only camera, which zooms the page inside a window that stands still, capped at 1.6x by default (`max_zoom` sets another; no `background_motion` or `background_blur`), with today's move timings, and makes the poster the whole window after the last step. With `"frame": "browser"` it is a video's old look; `shadow: "soft"` is then the old black two-layer shadow, on a screenshot too. A restyle keeps the camera its video was recorded with, and draws today's cursor, a sharp arrow over a faint trail, where production stamped copies of it. `2`, the default, is the current look |
200
+ | `text` | Screenshots: a badge, a title and a subtitle above or below the window; see [text](#text-on-a-screenshot) |
201
+ | `perspective`, `perspective_intensity`, `camera`, `tilt_x`, `tilt_y`, `roll`, `camera_offset`, `frame_scale` | Screenshots: the window in 3D; see [camera](#camera-and-depth-of-field) |
202
+ | `depth_blur`, `depth_blur_type`, `depth_blur_angle`, `depth_blur_position`, `depth_blur_band`, `depth_blur_width` | Screenshots: depth of field over the whole image; see [depth of field](#camera-and-depth-of-field) |
203
+
204
+ Colors are written `#rgb`, `#rgba`, `#rrggbb`, `#rrggbbaa`, `rgb(r,g,b)`, `rgba(r,g,b,a)`, `rgb(r g b / a)`, or the names `white`, `black` and `transparent`.
205
+
206
+ ### Shadows
207
+
208
+ Left out, the shadow is the default look's, tinted with the background's own hue so it never reads as a gray halo: the layered `soft` shadow on a video, and on a screenshot a contact and an ambient shadow that fade out 48 to 64 pixels below the window.
209
+
210
+ | Preset | What it draws |
211
+ |---|---|
212
+ | `subtle` | The layered shadow at about two thirds the depth and reach of `soft`: for busy backgrounds and small windows |
213
+ | `classic` | The contact and ambient shadow that fades out 48 to 64 pixels below the window, tinted like the default: a screenshot's default, and a video's before 2026-11-11 |
214
+ | `soft` | A layered shadow in three layers: a main shadow 44 pixels down with a 120 pixel blur, a key light 14 pixels down and a 1 pixel contact shadow, at 1080p. It is directional, as screen recorders draw a window: deep under the window and along its sides, faint above it. The video default |
215
+ | `deep` | The layered shadow about a quarter deeper and wider than `soft`: a window that floats higher |
216
+ | `float`, `hard`, `glow` | Black (or, for `glow`, B3OS blue) shadows that ignore the background's hue: a three-layer float, a hard drop of 10 pixels and a blue glow |
217
+ | `none` | No shadow |
218
+
219
+ `subtle`, `soft` and `deep` are tinted like the default. Where the background under the window's bottom edge is deep they come in a deeper shade, up to 1.6 times as strong below L* 30, since a deeper background shows less of the same shadow, all but the crisp contact edge. The shadow is faint above the window, about half the darkening below it at the edge, so its top edge does not read as a halo. A truly dark background adds a faint white glow so the window's edge still reads. Your own shadows are CSS box shadows in style pixels.
220
+
221
+ ### Library backgrounds
222
+
223
+ `background_ref` names a library background in place of the preset's. The image backgrounds are lossless WebP files up to 3840 px on the long edge, so a screenshot at `dpr: 2` keeps their detail; each is drawn to cover the canvas, centered. A render node fetches an image from B3OS's storage the first time it draws it and keeps it, so later renders with it cost what any background costs. If a node cannot load the image the request fails with `503` [`background_unavailable`](https://docs.beta.b3os.org/errors#background_unavailable) and a `Retry-After`; nothing is billed.
224
+
225
+ ```json
226
+ { "style": { "frame": "mac", "overrides": { "background_ref": "gradient-blur-collection/gradbg-020" } } }
227
+ ```
228
+
229
+ `"background_ref": "auto"` reads the captured page (a video's first frame) and picks from the quiet, bold and soft-photo images, quiet ones first: one in the page's light or dark theme (or `theme`'s), so a white page gets a light, soft field and a dark page a dark one, with clear lightness separation from the page, a hue that matches or complements the page's accent color, and little detail where it shows around the window. The hand-picked images only win a near tie. The same page gets the same background, and the screenshot's `background_ref`, or the video timeline's `style`, names the one drawn. `style: {}` and `background: "auto"` already draw a library image on screenshots and videos alike, one of the 24 tagged `video`, as [the auto background](#the-auto-background) picks it; `background_ref: "auto"` picks from the whole library instead, by these rules alone. If the image is not loaded within 2 seconds, the screenshot or video keeps the style's own background (the studio pick, unless `background` names a preset) and its `warnings` says so (`background_fallback`).
230
+
231
+ A style that does not validate is refused with `422` [`style_invalid`](https://docs.beta.b3os.org/errors#style_invalid), and `errors[]` lists every problem at once, each with a pointer such as `/style/overrides/padding/x`, so one fix-and-retry covers them all. Style values are drawn by the compositor in Rust and escaped before they reach any HTML or CSS.
232
+
233
+ ### Text on a screenshot
234
+
235
+ `text` sets a block in Geist above (the default) or below the window: an optional `badge` pill, a `title` in Geist Bold and a `subtitle` in a softer shade of the title's color. The compositor draws it, so it is never parsed as HTML. The canvas grows to hold it, or on a fixed `canvas` the page shrinks.
236
+
237
+ Titles wrap into balanced lines (a two-line title gets two lines of about the same length, never one word alone on the last) and display sizes are tracked tighter. Characters Geist lacks are set from the node's Noto fonts: Chinese, Japanese, Korean, Greek, Cyrillic, Arabic (joined forms), Hebrew, symbols and color emoji. Scripts that need a shaping engine, such as Devanagari and Thai, are not set yet: their characters are left out and the screenshot's `warnings` names them (`text_glyph_missing`), rather than drawing conjuncts, vowel signs and tone marks wrong. A character no font has is left out the same way, never drawn as a box.
238
+
239
+ ```json
240
+ {
241
+ "style": {
242
+ "background": "midnight",
243
+ "overrides": {
244
+ "text": {
245
+ "badge": "New",
246
+ "title": "Every styled screenshot from one API call",
247
+ "subtitle": "Backgrounds, frames and text set by the compositor",
248
+ "title_size": 96,
249
+ "title_lines": 1,
250
+ "autofit": true
251
+ }
252
+ }
253
+ }
254
+ }
255
+ ```
256
+
257
+ | Field | Value |
258
+ |---|---|
259
+ | `title`, `subtitle`, `badge` | Up to 200, 300 and 40 characters; at least one of them |
260
+ | `position`, `align` | `above` or `below`; `left`, `center` or `right` (left and right line up with the window's edge) |
261
+ | `color`, `badge_color` | Colors; the text is near-black on a light background and near-white on a dark one by default |
262
+ | `title_size`, `subtitle_size` | 12 to 160 and 10 to 96 CSS pixels; 48 and 22 by default |
263
+ | `max_width`, `gap` | The wrapping width (the window's by default) and the space between the text and the window (40) |
264
+ | `title_lines` | The most lines the title wraps to: 1, 2 or 3 (the default). A line that does not fit ends with an ellipsis |
265
+ | `autofit` | `true` sets the title at the largest size from `title_size` down to `fit_min` that fits in `title_lines` lines with no word broken or cut, in steps of 0.25 px. The subtitle and badge shrink with it. A title that does not fit even at `fit_min` is set at `fit_min` with an ellipsis |
266
+ | `fit_min` | The smallest size autofit may use: half of `title_size` by default, at least 12 |
267
+
268
+ Autofit is how a batch of pages with titles of different lengths gets one line each at the largest size that fits.
269
+
270
+ ### Hero layout
271
+
272
+ `layout: "bottom-cropped"` turns a screenshot into a launch hero: the text block centered at the top and the window rising from the bottom edge, so the top of the app shows and the window's bottom corners do not. It is a preset you ask for, not the default.
273
+
274
+ ```json
275
+ {
276
+ "url": "https://beta.b3os.org/demo/",
277
+ "viewport": { "width": 1440, "height": 900 },
278
+ "dpr": 2,
279
+ "style": {
280
+ "background": "midnight",
281
+ "frame": "browser",
282
+ "overrides": {
283
+ "canvas": { "width": 2400, "height": 1350 },
284
+ "layout": "bottom-cropped",
285
+ "text": {
286
+ "badge": "New",
287
+ "title": "Plan every launch on one board",
288
+ "subtitle": "Tasks, owners and dates in one place"
289
+ }
290
+ }
291
+ }
292
+ }
293
+ ```
294
+
295
+ - The window is four fifths of the canvas wide, with equal margins on both sides.
296
+ - With `text`, the window's top edge sits between 0.28 and 0.34 of the canvas height from the top and the text block is centered in the space above it. A block too tall for that space shrinks as one. The title defaults to at most 2 lines with `autofit` on; the text object's own `title_lines` and `autofit` win.
297
+ - Without `text`, the space above the window equals the side margins.
298
+ - On a fixed `canvas` the page is scaled to the window and the text sizes scale with it, so the result looks the same at `dpr` 1 or 2 (use 2 for sharp text when the window is wider than the viewport). Without a `canvas` the page keeps its own pixels and the canvas is built around it, at `aspect_ratio` (16:9 by default).
299
+ - `padding` and `fit` do not apply. `text.position: "below"` and a `camera` or `perspective` are refused with `style_invalid`. Videos refuse `layout: "bottom-cropped"` too.
300
+
301
+ ### Camera and depth of field
302
+
303
+ `perspective` tilts the window with one of eight presets (`tilt-left`, `tilt-right`, `tilt-up`, `tilt-down`, `tilt-left-strong`, `tilt-right-strong`, `iso-left`, `iso-right`), scaled by `perspective_intensity` (0 to 100, 50 by default). `camera` is a preset of tilt, offset, scale and depth blur: `hero`, `dashboard`, `flat`, `cinematic` or `detail`. `tilt_x`, `tilt_y` and `roll` (degrees, -30 to 30), `camera_offset` (`{x, y}` in CSS pixels) and `frame_scale` (0.5 to 2) override either one. The window is drawn as CSS `perspective: 1000px` would draw it, and its shadows fall from its tilted outline.
304
+
305
+ `depth_blur` blurs the whole composed image (background, window, shadows and text) where the mask says, so one part stays in focus. Its value is the Gaussian sigma in CSS pixels where the blur is full, from 0 to 40.
306
+
307
+ | `depth_blur_type` | In focus | Shape fields |
308
+ |---|---|---|
309
+ | `dir` (the default) | Everything before `depth_blur_position` (0.35) along `depth_blur_angle`; the blur grows toward the far edge | `depth_blur_angle`: 0 up, 90 right, 180 down (the default), 270 left; `depth_blur_position` from 0 to 1 |
310
+ | `tilt` | A band `depth_blur_band` wide (0.25 of the axis) centered at `depth_blur_position` (0.5); both sides blur | `depth_blur_angle` is the axis across the band; `depth_blur_band` from 0 to 1 |
311
+ | `radial` | The center, out to 0.18 of the half-diagonal; the corners blur | none |
312
+ | `lens` | A circle of radius `depth_blur_width` (0.3 of the half-diagonal) | `depth_blur_width` from 0 to 1 |
313
+
314
+ ```json
315
+ {
316
+ "style": {
317
+ "background": "midnight",
318
+ "frame": "browser-dark",
319
+ "overrides": { "camera": "hero", "depth_blur": 10, "depth_blur_position": 0.6 }
320
+ }
321
+ }
322
+ ```
323
+
324
+ The `hero` and `dashboard` cameras bring a blur of 6 from 0.7 down, `cinematic` 38 from 0.45 and `detail` 4 from 0.3, as in ScreenFramed; `depth_blur: 0` turns a camera's blur off. A shape field for another type, or one without a blur, is refused. Text, cameras and depth blur are for screenshots: a video with any of them is refused with `style_invalid`.
325
+
326
+ ## Captions
327
+
328
+ A video's `captions` decides how the narration appears on screen:
329
+
330
+ | Field | Meaning |
331
+ |---|---|
332
+ | `burn_in` | `none` (only the caption files), `static` (draw each cue) or `karaoke` (draw each cue in step with the narration: the word being spoken is lit, held through pauses). Left out, `karaoke` on a narrated video and `static` on a silent one, whose word times are only estimated |
333
+ | `sidecars` | Caption files to produce: `vtt`, `srt` or both |
334
+ | `max_chars_per_line`, `max_lines`, `max_chars_per_second` | Line limits: 42 characters, 2 lines and 20 characters per second by default |
335
+
336
+ The timing comes from the speech model's word timestamps, so each cue starts on its first word. Cues follow the usual subtitle rules for English: one sentence per cue, at most 7 seconds on screen, a pause of 700 ms or more ends a cue, and a cue that would be read too fast stretches into the silence after it. Lines break after punctuation and before conjunctions and prepositions, never after an article or inside a name, and a two-line cue keeps the longer line at the bottom. The look comes from the `captions` preset and the `caption_*` overrides.
337
+
338
+ Restyling a video can change the caption preset, the overrides and the line limits without recording again; see [restyle a video](https://docs.beta.b3os.org/render/videos#restyle-a-video).
339
+
340
+ ## Voices
341
+
342
+ Narration uses the node's speech model. `GET /v1/infer/audio/voices` lists the voices, each with a `sample_url` you can play before you choose. [Videos](https://docs.beta.b3os.org/render/videos#voices) has every English voice with its sample; see also [speech](https://docs.beta.b3os.org/infer/speech).