@fleox/agent3d 0.0.0-stage → 0.2.1

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 (455) hide show
  1. package/LICENSE +143 -0
  2. package/README.md +396 -2
  3. package/changelog.json +68 -0
  4. package/dist/agent/agent3d.mjs +11242 -0
  5. package/dist/agent/chunks/assets-BUUM9TUB.mjs +2448 -0
  6. package/dist/agent/chunks/browser-t_JL_B82.mjs +226 -0
  7. package/dist/agent/chunks/cdp-Bdtm4fBN.mjs +178 -0
  8. package/dist/agent/chunks/check-CBO3Ekx1.mjs +971 -0
  9. package/dist/agent/chunks/export-BCI8vKw8.mjs +1130 -0
  10. package/dist/agent/chunks/gif-DQznzHTL.mjs +319 -0
  11. package/dist/agent/chunks/gltf-f_f0-OiV.mjs +207 -0
  12. package/dist/agent/chunks/imageCodec-Dz9PFxi9.mjs +101 -0
  13. package/dist/agent/chunks/jsonPath-DUCe1JpS.mjs +155 -0
  14. package/dist/agent/chunks/meshoptimizer-C-tN9jn5.mjs +1165 -0
  15. package/dist/agent/chunks/mp4-aOALfp3s.mjs +130 -0
  16. package/dist/agent/chunks/objects-DBAws7uf.mjs +53 -0
  17. package/dist/agent/chunks/optimizeSizing-CkZ3fZRp.mjs +540 -0
  18. package/dist/agent/chunks/package-BOIyp_2B.mjs +75 -0
  19. package/dist/agent/chunks/png-DXfSGJZt.mjs +91 -0
  20. package/dist/agent/chunks/render-CN4mgGLQ.mjs +1511 -0
  21. package/dist/agent/chunks/rolldown-runtime-ebOQtxsr.mjs +18 -0
  22. package/dist/agent/chunks/scene-BgajNvBf.mjs +444 -0
  23. package/dist/agent/chunks/server-CACCerkZ.mjs +237 -0
  24. package/dist/agent/chunks/suggest-Cpcgv1RP.mjs +46 -0
  25. package/dist/agent/chunks/tools-DT2tetIK.mjs +1412 -0
  26. package/dist/agent/chunks/tree-BrNYGui2.mjs +75 -0
  27. package/dist/agent/chunks/webpAnim-qaq9YgKl.mjs +132 -0
  28. package/dist/runtime/agent3d-runtime.js +373 -0
  29. package/dist/runtime/agent3d-runtime.single.js +7360 -0
  30. package/dist/runtime/chunks/BufferGeometryUtils-XmME4f7Z.js +1 -0
  31. package/dist/runtime/chunks/EXRLoader-CBdIpBMT.js +1 -0
  32. package/dist/runtime/chunks/FontLoader-dVu9WH2X.js +2 -0
  33. package/dist/runtime/chunks/GLTFLoader-Z9Inv-Xm.js +1 -0
  34. package/dist/runtime/chunks/GroundedSkybox-g1ASZWNu.js +1 -0
  35. package/dist/runtime/chunks/HDRLoader-DBOMWa7O.js +5 -0
  36. package/dist/runtime/chunks/OrbitControls-BIpWXK4x.js +1 -0
  37. package/dist/runtime/chunks/RectAreaLightUniformsLib-4ZzgX9vp.js +1 -0
  38. package/dist/runtime/chunks/RoomEnvironment-CXgfLJdO.js +1 -0
  39. package/dist/runtime/chunks/RoundedBoxGeometry-BViRogcJ.js +1 -0
  40. package/dist/runtime/chunks/SVGLoader-CV0U1EIF.js +1 -0
  41. package/dist/runtime/chunks/SkeletonUtils-DHlReJx3.js +1 -0
  42. package/dist/runtime/chunks/Sky-DGJXlPb_.js +243 -0
  43. package/dist/runtime/chunks/audio-DbVNbf-r.js +1 -0
  44. package/dist/runtime/chunks/catalog-DL6sgPay.js +1 -0
  45. package/dist/runtime/chunks/easing-CXSz2e6P.js +1 -0
  46. package/dist/runtime/chunks/extrude-D6WnITQq.js +1 -0
  47. package/dist/runtime/chunks/game-BoEiyZrL.js +20 -0
  48. package/dist/runtime/chunks/generators-D5JUo0jp.js +331 -0
  49. package/dist/runtime/chunks/materials-Dn-bYrZd.js +107 -0
  50. package/dist/runtime/chunks/meshGradient.glsl-BMatplLA.js +88 -0
  51. package/dist/runtime/chunks/meshopt_decoder.module-DXTYc6wn.js +1 -0
  52. package/dist/runtime/chunks/model-BCVF3QzB.js +1 -0
  53. package/dist/runtime/chunks/params-C2uoUDJ0.js +1 -0
  54. package/dist/runtime/chunks/physicsHost-ChPgysMQ.js +1 -0
  55. package/dist/runtime/chunks/postfx-UgKCbmZs.js +1527 -0
  56. package/dist/runtime/chunks/postfx-i_J5Vf-l.js +1 -0
  57. package/dist/runtime/chunks/random-eeej60NW.js +1 -0
  58. package/dist/runtime/chunks/shaders-Dw6zHdu_.js +443 -0
  59. package/dist/runtime/chunks/svg-CmlFY_8O.js +1 -0
  60. package/dist/runtime/chunks/text-D1EQpdSU.js +2 -0
  61. package/dist/runtime/chunks/three.module-DnaBiDAJ.js +4225 -0
  62. package/dist/runtime/chunks/toon-BsvVk_nK.js +6 -0
  63. package/dist/runtime/chunks/util-CyaW1fcW.js +1 -0
  64. package/dist/studio/assets/BufferGeometryUtils-CAlXAboW.js +1 -0
  65. package/dist/studio/assets/EXRLoader-BKkzlNd8.js +1 -0
  66. package/dist/studio/assets/FontLoader-Bzjx8mXt.js +2 -0
  67. package/dist/studio/assets/GLTFLoader-1Zd9N406.js +1 -0
  68. package/dist/studio/assets/GroundedSkybox-BEMqNCBD.js +1 -0
  69. package/dist/studio/assets/HDRLoader-DxB0kxPH.js +5 -0
  70. package/dist/studio/assets/OrbitControls-MlE9XiCg.js +1 -0
  71. package/dist/studio/assets/RectAreaLightUniformsLib-ClHrtYY6.js +1 -0
  72. package/dist/studio/assets/RoomEnvironment-MJ-jIEC8.js +1 -0
  73. package/dist/studio/assets/SVGLoader-CIYl0nEy.js +1 -0
  74. package/dist/studio/assets/SkeletonUtils-CG5akqME.js +1 -0
  75. package/dist/studio/assets/Sky-DNMfpp92.js +243 -0
  76. package/dist/studio/assets/audio-JD1kyX0A.js +1 -0
  77. package/dist/studio/assets/camera-7sEn13L-.js +2 -0
  78. package/dist/studio/assets/editor-CnbvVkhU.js +53 -0
  79. package/dist/studio/assets/extrude-9bG8hr2C.js +1 -0
  80. package/dist/studio/assets/game-B04KGAK0.js +19 -0
  81. package/dist/studio/assets/generators-LSni1Yfc.js +331 -0
  82. package/dist/studio/assets/index-3LL5NEIH.js +479 -0
  83. package/dist/studio/assets/index-BQT0otii.css +1 -0
  84. package/dist/studio/assets/meshopt_decoder.module-DXTYc6wn.js +1 -0
  85. package/dist/studio/assets/meshoptimizer-BCSwHBL3.js +1 -0
  86. package/dist/studio/assets/model-CNddhwmA.js +2 -0
  87. package/dist/studio/assets/physicsHost-hMU_SDiX.js +1 -0
  88. package/dist/studio/assets/postfx-BcCZS0Bq.js +1527 -0
  89. package/dist/studio/assets/runtime-DY_KqD1x.js +572 -0
  90. package/dist/studio/assets/shaders-BhMCstyv.js +443 -0
  91. package/dist/studio/assets/svg-CNKK-h7H.js +2 -0
  92. package/dist/studio/assets/text-BSPI7dk1.js +3 -0
  93. package/dist/studio/assets/three.module-CnI50X0U.js +4225 -0
  94. package/dist/studio/index.html +16 -0
  95. package/library/LICENSES.md +77 -0
  96. package/library/fonts/LICENSES.md +42 -0
  97. package/library/fonts/anton.typeface.json +1 -0
  98. package/library/fonts/bebas-neue.typeface.json +1 -0
  99. package/library/fonts/display.typeface.json +1 -0
  100. package/library/fonts/inter-black.typeface.json +1 -0
  101. package/library/fonts/lobster.typeface.json +1 -0
  102. package/library/fonts/mono.typeface.json +1 -0
  103. package/library/fonts/montserrat-extrabold.typeface.json +1 -0
  104. package/library/fonts/pacifico.typeface.json +1 -0
  105. package/library/fonts/sans-bold.typeface.json +1 -0
  106. package/library/fonts/sans.typeface.json +1 -0
  107. package/library/fonts/serif-bold.typeface.json +1 -0
  108. package/library/fonts/serif.typeface.json +1 -0
  109. package/library/fonts/space-grotesk-bold.typeface.json +1 -0
  110. package/library/hdri/beach.hdr +0 -0
  111. package/library/hdri/beach.jpg +0 -0
  112. package/library/hdri/city.hdr +0 -0
  113. package/library/hdri/city.jpg +0 -0
  114. package/library/hdri/forest.hdr +0 -0
  115. package/library/hdri/forest.jpg +0 -0
  116. package/library/hdri/night-city.hdr +0 -0
  117. package/library/hdri/night-city.jpg +0 -0
  118. package/library/hdri/night.hdr +0 -0
  119. package/library/hdri/night.jpg +0 -0
  120. package/library/hdri/sky.hdr +0 -0
  121. package/library/hdri/sky.jpg +0 -0
  122. package/library/hdri/softbox.hdr +0 -0
  123. package/library/hdri/softbox.jpg +0 -0
  124. package/library/hdri/studio.hdr +0 -0
  125. package/library/hdri/studio.jpg +0 -0
  126. package/library/hdri/sunset.hdr +0 -0
  127. package/library/hdri/sunset.jpg +0 -0
  128. package/library/hdri/warehouse.hdr +0 -0
  129. package/library/hdri/warehouse.jpg +0 -0
  130. package/library/index.json +5510 -0
  131. package/library/models/animals/fish.glb +0 -0
  132. package/library/models/animals/fox.glb +0 -0
  133. package/library/models/buildings/castle.glb +0 -0
  134. package/library/models/buildings/house.glb +0 -0
  135. package/library/models/buildings/market.glb +0 -0
  136. package/library/models/buildings/tavern.glb +0 -0
  137. package/library/models/buildings/tower.glb +0 -0
  138. package/library/models/buildings/windmill.glb +0 -0
  139. package/library/models/characters/barbarian.glb +0 -0
  140. package/library/models/characters/knight.glb +0 -0
  141. package/library/models/characters/mage.glb +0 -0
  142. package/library/models/characters/mini-soldier.glb +0 -0
  143. package/library/models/characters/platformer-hero.glb +0 -0
  144. package/library/models/characters/robot.glb +0 -0
  145. package/library/models/characters/rogue.glb +0 -0
  146. package/library/models/characters/skeleton.glb +0 -0
  147. package/library/models/city/building-a.glb +0 -0
  148. package/library/models/city/building-b.glb +0 -0
  149. package/library/models/city/building-tall.glb +0 -0
  150. package/library/models/city/fire-hydrant.glb +0 -0
  151. package/library/models/city/road-corner.glb +0 -0
  152. package/library/models/city/road-crossing.glb +0 -0
  153. package/library/models/city/road-junction.glb +0 -0
  154. package/library/models/city/road-straight.glb +0 -0
  155. package/library/models/city/streetlight.glb +0 -0
  156. package/library/models/city/suburban-house.glb +0 -0
  157. package/library/models/city/traffic-light.glb +0 -0
  158. package/library/models/city/water-tower.glb +0 -0
  159. package/library/models/food/apple.glb +0 -0
  160. package/library/models/food/avocado.glb +0 -0
  161. package/library/models/food/baguette.glb +0 -0
  162. package/library/models/food/bread-loaf.glb +0 -0
  163. package/library/models/food/burger.glb +0 -0
  164. package/library/models/food/carrot.glb +0 -0
  165. package/library/models/food/cheese.glb +0 -0
  166. package/library/models/food/cookie.glb +0 -0
  167. package/library/models/food/croissant.glb +0 -0
  168. package/library/models/food/cupcake.glb +0 -0
  169. package/library/models/food/dinner-plate.glb +0 -0
  170. package/library/models/food/donut.glb +0 -0
  171. package/library/models/food/ketchup.glb +0 -0
  172. package/library/models/food/mug.glb +0 -0
  173. package/library/models/food/pain-au-chocolat.glb +0 -0
  174. package/library/models/food/stew.glb +0 -0
  175. package/library/models/food/tomato.glb +0 -0
  176. package/library/models/food/veggie-burger.glb +0 -0
  177. package/library/models/nature/bush.glb +0 -0
  178. package/library/models/nature/cactus.glb +0 -0
  179. package/library/models/nature/cloud.glb +0 -0
  180. package/library/models/nature/fir-tree.glb +0 -0
  181. package/library/models/nature/forest-patch.glb +0 -0
  182. package/library/models/nature/grass-small.glb +0 -0
  183. package/library/models/nature/grass.glb +0 -0
  184. package/library/models/nature/hex-grass.glb +0 -0
  185. package/library/models/nature/hex-water.glb +0 -0
  186. package/library/models/nature/hills.glb +0 -0
  187. package/library/models/nature/mountain.glb +0 -0
  188. package/library/models/nature/pine-autumn.glb +0 -0
  189. package/library/models/nature/pine-tree.glb +0 -0
  190. package/library/models/nature/pumpkin.glb +0 -0
  191. package/library/models/nature/rock-flat.glb +0 -0
  192. package/library/models/nature/rock.glb +0 -0
  193. package/library/models/nature/tree-dead.glb +0 -0
  194. package/library/models/nature/tree-slim.glb +0 -0
  195. package/library/models/nature/trees-cluster.glb +0 -0
  196. package/library/models/nature/waterlily.glb +0 -0
  197. package/library/models/platformer/blaster.glb +0 -0
  198. package/library/models/platformer/block-coin.glb +0 -0
  199. package/library/models/platformer/brick.glb +0 -0
  200. package/library/models/platformer/coin.glb +0 -0
  201. package/library/models/platformer/enemy-flying.glb +0 -0
  202. package/library/models/platformer/flag.glb +0 -0
  203. package/library/models/platformer/platform-falling.glb +0 -0
  204. package/library/models/platformer/platform-grass-round.glb +0 -0
  205. package/library/models/platformer/platform-large.glb +0 -0
  206. package/library/models/platformer/platform-medium.glb +0 -0
  207. package/library/models/platformer/platform.glb +0 -0
  208. package/library/models/platformer/target.glb +0 -0
  209. package/library/models/platformer/track-corner.glb +0 -0
  210. package/library/models/platformer/track-straight.glb +0 -0
  211. package/library/models/platformer/wall-low.glb +0 -0
  212. package/library/models/products/boombox.glb +0 -0
  213. package/library/models/products/iridescent-lamp.glb +0 -0
  214. package/library/models/products/lantern.glb +0 -0
  215. package/library/models/products/lounge-chair.glb +0 -0
  216. package/library/models/products/sneaker.glb +0 -0
  217. package/library/models/products/velvet-sofa.glb +0 -0
  218. package/library/models/products/water-bottle.glb +0 -0
  219. package/library/models/props/alarm-clock.glb +0 -0
  220. package/library/models/props/armchair.glb +0 -0
  221. package/library/models/props/barrel.glb +0 -0
  222. package/library/models/props/bench.glb +0 -0
  223. package/library/models/props/brass-vase.glb +0 -0
  224. package/library/models/props/chest.glb +0 -0
  225. package/library/models/props/coffee-table.glb +0 -0
  226. package/library/models/props/coin-stack.glb +0 -0
  227. package/library/models/props/coin.glb +0 -0
  228. package/library/models/props/couch.glb +0 -0
  229. package/library/models/props/crate.glb +0 -0
  230. package/library/models/props/flag.glb +0 -0
  231. package/library/models/props/gravestone.glb +0 -0
  232. package/library/models/props/key.glb +0 -0
  233. package/library/models/props/lamp.glb +0 -0
  234. package/library/models/props/lantern.glb +0 -0
  235. package/library/models/props/marble-bust.glb +0 -0
  236. package/library/models/props/modern-armchair.glb +0 -0
  237. package/library/models/props/potted-succulent.glb +0 -0
  238. package/library/models/props/rubber-duck.glb +0 -0
  239. package/library/models/props/shield.glb +0 -0
  240. package/library/models/props/sword-shield.glb +0 -0
  241. package/library/models/props/sword.glb +0 -0
  242. package/library/models/props/table.glb +0 -0
  243. package/library/models/props/tent.glb +0 -0
  244. package/library/models/props/torch.glb +0 -0
  245. package/library/models/props/trophy.glb +0 -0
  246. package/library/models/space/base-module.glb +0 -0
  247. package/library/models/space/lander.glb +0 -0
  248. package/library/models/space/landing-pad.glb +0 -0
  249. package/library/models/space/rocks.glb +0 -0
  250. package/library/models/space/solar-panel.glb +0 -0
  251. package/library/models/space/space-truck.glb +0 -0
  252. package/library/models/space/wind-turbine.glb +0 -0
  253. package/library/models/vehicles/car.glb +0 -0
  254. package/library/models/vehicles/hatchback.glb +0 -0
  255. package/library/models/vehicles/motorcycle.glb +0 -0
  256. package/library/models/vehicles/police-car.glb +0 -0
  257. package/library/models/vehicles/taxi.glb +0 -0
  258. package/library/models/vehicles/truck.glb +0 -0
  259. package/library/sources.json +2856 -0
  260. package/library/textures/brick-color.jpg +0 -0
  261. package/library/textures/brick-normal.jpg +0 -0
  262. package/library/textures/brick-roughness.jpg +0 -0
  263. package/library/textures/concrete-color.jpg +0 -0
  264. package/library/textures/concrete-normal.jpg +0 -0
  265. package/library/textures/concrete-roughness.jpg +0 -0
  266. package/library/textures/fabric-color.jpg +0 -0
  267. package/library/textures/fabric-normal.jpg +0 -0
  268. package/library/textures/fabric-roughness.jpg +0 -0
  269. package/library/textures/grass-ground-color.jpg +0 -0
  270. package/library/textures/grass-ground-normal.jpg +0 -0
  271. package/library/textures/grass-ground-roughness.jpg +0 -0
  272. package/library/textures/rusty-metal-color.jpg +0 -0
  273. package/library/textures/rusty-metal-normal.jpg +0 -0
  274. package/library/textures/rusty-metal-roughness.jpg +0 -0
  275. package/library/textures/wood-planks-color.jpg +0 -0
  276. package/library/textures/wood-planks-normal.jpg +0 -0
  277. package/library/textures/wood-planks-roughness.jpg +0 -0
  278. package/package.json +67 -4
  279. package/plugin/.claude-plugin/plugin.json +19 -0
  280. package/plugin/skills/agent3d-assets/SKILL.md +140 -0
  281. package/plugin/skills/agent3d-assets/references/sources.md +33 -0
  282. package/plugin/skills/agent3d-create/SKILL.md +141 -0
  283. package/plugin/skills/agent3d-create/references/art-direction.md +144 -0
  284. package/plugin/skills/agent3d-create/references/recipes.md +1357 -0
  285. package/plugin/skills/agent3d-edit/SKILL.md +121 -0
  286. package/plugin/skills/agent3d-edit/references/patch-ops.md +278 -0
  287. package/plugin/skills/agent3d-game/SKILL.md +111 -0
  288. package/plugin/skills/agent3d-game/references/game-patterns.md +262 -0
  289. package/plugin/skills/agent3d-game/references/script-api.md +211 -0
  290. package/plugin/skills/agent3d-publish/SKILL.md +161 -0
  291. package/plugin/skills/agent3d-publish/references/integrations.md +221 -0
  292. package/templates/banner-aurora-night/README.md +15 -0
  293. package/templates/banner-aurora-night/agent3d.json +8 -0
  294. package/templates/banner-aurora-night/preview.png +0 -0
  295. package/templates/banner-aurora-night/scene.json +327 -0
  296. package/templates/banner-aurora-night/template.json +24 -0
  297. package/templates/banner-data-bars/README.md +15 -0
  298. package/templates/banner-data-bars/agent3d.json +8 -0
  299. package/templates/banner-data-bars/preview.png +0 -0
  300. package/templates/banner-data-bars/scene.json +222 -0
  301. package/templates/banner-data-bars/template.json +25 -0
  302. package/templates/banner-floating-shapes/README.md +15 -0
  303. package/templates/banner-floating-shapes/agent3d.json +8 -0
  304. package/templates/banner-floating-shapes/preview.png +0 -0
  305. package/templates/banner-floating-shapes/scene.json +703 -0
  306. package/templates/banner-floating-shapes/template.json +24 -0
  307. package/templates/banner-gradient-blob/README.md +16 -0
  308. package/templates/banner-gradient-blob/agent3d.json +8 -0
  309. package/templates/banner-gradient-blob/preview.png +0 -0
  310. package/templates/banner-gradient-blob/scene.json +330 -0
  311. package/templates/banner-gradient-blob/template.json +21 -0
  312. package/templates/banner-liquid-chrome/README.md +16 -0
  313. package/templates/banner-liquid-chrome/agent3d.json +8 -0
  314. package/templates/banner-liquid-chrome/preview.png +0 -0
  315. package/templates/banner-liquid-chrome/scene.json +290 -0
  316. package/templates/banner-liquid-chrome/template.json +24 -0
  317. package/templates/banner-logo-extrude/README.md +24 -0
  318. package/templates/banner-logo-extrude/agent3d.json +8 -0
  319. package/templates/banner-logo-extrude/assets/logo.svg +6 -0
  320. package/templates/banner-logo-extrude/assets/manifest.json +13 -0
  321. package/templates/banner-logo-extrude/preview.png +0 -0
  322. package/templates/banner-logo-extrude/scene.json +332 -0
  323. package/templates/banner-logo-extrude/template.json +22 -0
  324. package/templates/banner-neon-title/README.md +18 -0
  325. package/templates/banner-neon-title/agent3d.json +8 -0
  326. package/templates/banner-neon-title/preview.png +0 -0
  327. package/templates/banner-neon-title/scene.json +494 -0
  328. package/templates/banner-neon-title/template.json +25 -0
  329. package/templates/banner-wave-grid/README.md +18 -0
  330. package/templates/banner-wave-grid/agent3d.json +8 -0
  331. package/templates/banner-wave-grid/preview.png +0 -0
  332. package/templates/banner-wave-grid/scene.json +217 -0
  333. package/templates/banner-wave-grid/template.json +23 -0
  334. package/templates/card-hover-3d/README.md +16 -0
  335. package/templates/card-hover-3d/agent3d.json +8 -0
  336. package/templates/card-hover-3d/preview.png +0 -0
  337. package/templates/card-hover-3d/scene.json +359 -0
  338. package/templates/card-hover-3d/template.json +21 -0
  339. package/templates/card-product-tilt/README.md +14 -0
  340. package/templates/card-product-tilt/agent3d.json +8 -0
  341. package/templates/card-product-tilt/preview.png +0 -0
  342. package/templates/card-product-tilt/scene.json +296 -0
  343. package/templates/card-product-tilt/template.json +23 -0
  344. package/templates/character-mascot-hero/README.md +19 -0
  345. package/templates/character-mascot-hero/agent3d.json +8 -0
  346. package/templates/character-mascot-hero/preview.png +0 -0
  347. package/templates/character-mascot-hero/scene.json +512 -0
  348. package/templates/character-mascot-hero/template.json +8 -0
  349. package/templates/character-showcase/README.md +27 -0
  350. package/templates/character-showcase/agent3d.json +8 -0
  351. package/templates/character-showcase/preview.png +0 -0
  352. package/templates/character-showcase/scene.json +440 -0
  353. package/templates/character-showcase/template.json +24 -0
  354. package/templates/diorama-city/README.md +21 -0
  355. package/templates/diorama-city/agent3d.json +8 -0
  356. package/templates/diorama-city/preview.png +0 -0
  357. package/templates/diorama-city/scene.json +432 -0
  358. package/templates/diorama-city/template.json +21 -0
  359. package/templates/game-basket/README.md +25 -0
  360. package/templates/game-basket/agent3d.json +8 -0
  361. package/templates/game-basket/preview.png +0 -0
  362. package/templates/game-basket/scene.json +640 -0
  363. package/templates/game-basket/scripts/basket.js +176 -0
  364. package/templates/game-basket/template.json +8 -0
  365. package/templates/game-coin-collector/README.md +28 -0
  366. package/templates/game-coin-collector/agent3d.json +8 -0
  367. package/templates/game-coin-collector/preview.png +0 -0
  368. package/templates/game-coin-collector/scene.json +900 -0
  369. package/templates/game-coin-collector/scripts/collector.js +210 -0
  370. package/templates/game-coin-collector/template.json +19 -0
  371. package/templates/game-maze/README.md +24 -0
  372. package/templates/game-maze/agent3d.json +8 -0
  373. package/templates/game-maze/preview.png +0 -0
  374. package/templates/game-maze/scene.json +315 -0
  375. package/templates/game-maze/scripts/maze.js +168 -0
  376. package/templates/game-maze/template.json +18 -0
  377. package/templates/game-physics-playground/README.md +30 -0
  378. package/templates/game-physics-playground/agent3d.json +8 -0
  379. package/templates/game-physics-playground/preview.png +0 -0
  380. package/templates/game-physics-playground/scene.json +1712 -0
  381. package/templates/game-physics-playground/scripts/playground.js +151 -0
  382. package/templates/game-physics-playground/template.json +19 -0
  383. package/templates/game-platformer/README.md +26 -0
  384. package/templates/game-platformer/agent3d.json +8 -0
  385. package/templates/game-platformer/preview.png +0 -0
  386. package/templates/game-platformer/scene.json +1063 -0
  387. package/templates/game-platformer/scripts/platformer.js +222 -0
  388. package/templates/game-platformer/template.json +8 -0
  389. package/templates/game-runner/README.md +30 -0
  390. package/templates/game-runner/agent3d.json +8 -0
  391. package/templates/game-runner/preview.png +0 -0
  392. package/templates/game-runner/scene.json +1317 -0
  393. package/templates/game-runner/scripts/runner.js +263 -0
  394. package/templates/game-runner/template.json +18 -0
  395. package/templates/game-tap-targets/README.md +21 -0
  396. package/templates/game-tap-targets/agent3d.json +8 -0
  397. package/templates/game-tap-targets/preview.png +0 -0
  398. package/templates/game-tap-targets/scene.json +924 -0
  399. package/templates/game-tap-targets/scripts/targets.js +159 -0
  400. package/templates/game-tap-targets/template.json +19 -0
  401. package/templates/hero-floating-island/README.md +18 -0
  402. package/templates/hero-floating-island/agent3d.json +8 -0
  403. package/templates/hero-floating-island/preview.png +0 -0
  404. package/templates/hero-floating-island/scene.json +658 -0
  405. package/templates/hero-floating-island/template.json +8 -0
  406. package/templates/hero-perfume-luxury/README.md +18 -0
  407. package/templates/hero-perfume-luxury/agent3d.json +8 -0
  408. package/templates/hero-perfume-luxury/preview.png +0 -0
  409. package/templates/hero-perfume-luxury/scene.json +529 -0
  410. package/templates/hero-perfume-luxury/template.json +27 -0
  411. package/templates/hero-product-turntable/README.md +16 -0
  412. package/templates/hero-product-turntable/agent3d.json +8 -0
  413. package/templates/hero-product-turntable/preview.png +0 -0
  414. package/templates/hero-product-turntable/scene.json +225 -0
  415. package/templates/hero-product-turntable/template.json +21 -0
  416. package/templates/hero-saas-globe/README.md +16 -0
  417. package/templates/hero-saas-globe/agent3d.json +8 -0
  418. package/templates/hero-saas-globe/preview.png +0 -0
  419. package/templates/hero-saas-globe/scene.json +318 -0
  420. package/templates/hero-saas-globe/template.json +24 -0
  421. package/templates/hero-scroll-story/README.md +26 -0
  422. package/templates/hero-scroll-story/agent3d.json +8 -0
  423. package/templates/hero-scroll-story/preview.png +0 -0
  424. package/templates/hero-scroll-story/scene.json +642 -0
  425. package/templates/hero-scroll-story/template.json +22 -0
  426. package/templates/hero-sneaker-showcase/README.md +19 -0
  427. package/templates/hero-sneaker-showcase/agent3d.json +8 -0
  428. package/templates/hero-sneaker-showcase/preview.png +0 -0
  429. package/templates/hero-sneaker-showcase/scene.json +523 -0
  430. package/templates/hero-sneaker-showcase/template.json +23 -0
  431. package/templates/hero-space-planet/README.md +17 -0
  432. package/templates/hero-space-planet/agent3d.json +8 -0
  433. package/templates/hero-space-planet/preview.png +0 -0
  434. package/templates/hero-space-planet/scene.json +330 -0
  435. package/templates/hero-space-planet/template.json +21 -0
  436. package/templates/landscape-island/README.md +21 -0
  437. package/templates/landscape-island/agent3d.json +8 -0
  438. package/templates/landscape-island/preview.png +0 -0
  439. package/templates/landscape-island/scene.json +716 -0
  440. package/templates/landscape-island/template.json +24 -0
  441. package/templates/landscape-night-galaxy/README.md +25 -0
  442. package/templates/landscape-night-galaxy/agent3d.json +8 -0
  443. package/templates/landscape-night-galaxy/preview.png +0 -0
  444. package/templates/landscape-night-galaxy/scene.json +403 -0
  445. package/templates/landscape-night-galaxy/template.json +8 -0
  446. package/templates/landscape-valley-sunset/README.md +20 -0
  447. package/templates/landscape-valley-sunset/agent3d.json +8 -0
  448. package/templates/landscape-valley-sunset/preview.png +0 -0
  449. package/templates/landscape-valley-sunset/scene.json +265 -0
  450. package/templates/landscape-valley-sunset/template.json +22 -0
  451. package/templates/scene-cozy-room/README.md +21 -0
  452. package/templates/scene-cozy-room/agent3d.json +8 -0
  453. package/templates/scene-cozy-room/preview.png +0 -0
  454. package/templates/scene-cozy-room/scene.json +728 -0
  455. package/templates/scene-cozy-room/template.json +8 -0
package/LICENSE ADDED
@@ -0,0 +1,143 @@
1
+ Copyright (c) 2026 Agent3D
2
+
3
+ This software is source-available under the PolyForm Noncommercial License 1.0.0
4
+ (reproduced in full below). Personal, hobbyist, educational, research, and other
5
+ noncommercial use is permitted free of charge.
6
+
7
+ Selling the software, hosting it as a paid service, or any other commercial use
8
+ requires explicit written authorization from the copyright holder. For commercial
9
+ licensing inquiries, open an issue at https://github.com/fleox/agentcrm
10
+
11
+ ================================================================================
12
+
13
+ PolyForm Noncommercial License 1.0.0
14
+
15
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
16
+
17
+ ## Acceptance
18
+
19
+ In order to get any license under these terms, you must agree
20
+ to them as both strict obligations and conditions to all
21
+ your licenses.
22
+
23
+ ## Copyright License
24
+
25
+ The licensor grants you a copyright license for the
26
+ software to do everything you might do with the software
27
+ that would otherwise infringe the licensor's copyright
28
+ in it for any permitted purpose. However, you may
29
+ only distribute the software according to [Distribution
30
+ License](#distribution-license) and make changes or new works
31
+ based on the software according to [Changes and New Works
32
+ License](#changes-and-new-works-license).
33
+
34
+ ## Distribution License
35
+
36
+ The licensor grants you an additional copyright license
37
+ to distribute copies of the software. Your license
38
+ to distribute covers distributing the software with
39
+ changes and new works permitted by [Changes and New Works
40
+ License](#changes-and-new-works-license).
41
+
42
+ ## Notices
43
+
44
+ You must ensure that anyone who gets a copy of any part of
45
+ the software from you also gets a copy of these terms or the
46
+ URL for them above, as well as copies of any plain-text lines
47
+ beginning with `Required Notice:` that the licensor provided
48
+ with the software. For example:
49
+
50
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
51
+
52
+ ## Changes and New Works License
53
+
54
+ The licensor grants you an additional copyright license to
55
+ make changes and new works based on the software for any
56
+ permitted purpose.
57
+
58
+ ## Patent License
59
+
60
+ The licensor grants you a patent license for the software that
61
+ covers patent claims the licensor can license, or becomes able
62
+ to license, that you would infringe by using the software.
63
+
64
+ ## Noncommercial Purposes
65
+
66
+ Any noncommercial purpose is a permitted purpose.
67
+
68
+ ## Personal Uses
69
+
70
+ Personal use for research, experiment, and testing for
71
+ the benefit of public knowledge, personal study, private
72
+ entertainment, hobby projects, amateur pursuits, or religious
73
+ observance, without any anticipated commercial application,
74
+ is use for a permitted purpose.
75
+
76
+ ## Noncommercial Organizations
77
+
78
+ Use by any charitable organization, educational institution,
79
+ public research organization, public safety or health
80
+ organization, environmental protection organization,
81
+ or government institution is use for a permitted purpose
82
+ regardless of the source of funding or obligations resulting
83
+ from the funding.
84
+
85
+ ## Fair Use
86
+
87
+ You may have "fair use" rights for the software under the
88
+ law. These terms do not limit them.
89
+
90
+ ## No Other Rights
91
+
92
+ These terms do not allow you to sublicense or transfer any of
93
+ your licenses to anyone else, or prevent the licensor from
94
+ granting licenses to anyone else. These terms do not imply
95
+ any other licenses.
96
+
97
+ ## Patent Defense
98
+
99
+ If you make any written claim that the software infringes or
100
+ contributes to infringement of any patent, your patent license
101
+ for the software granted under these terms ends immediately. If
102
+ your company makes such a claim, your patent license ends
103
+ immediately for work on behalf of your company.
104
+
105
+ ## Violations
106
+
107
+ The first time you are notified in writing that you have
108
+ violated any of these terms, or done anything with the software
109
+ not covered by your licenses, your licenses can nonetheless
110
+ continue if you come into full compliance with these terms,
111
+ and take practical steps to correct past violations, within
112
+ 32 days of receiving notice. Otherwise, all your licenses
113
+ end immediately.
114
+
115
+ ## No Liability
116
+
117
+ ***As far as the law allows, the software comes as is, without
118
+ any warranty or condition, and the licensor will not be liable
119
+ to you for any damages arising out of these terms or the use
120
+ or nature of the software, under any kind of legal claim.***
121
+
122
+ ## Definitions
123
+
124
+ The **licensor** is the individual or entity offering these
125
+ terms, and the **software** is the software the licensor makes
126
+ available under these terms.
127
+
128
+ **You** refers to the individual or entity agreeing to these
129
+ terms.
130
+
131
+ **Your company** is any legal entity, sole proprietorship,
132
+ or other kind of organization that you work for, plus all
133
+ organizations that have control over, are under the control of,
134
+ or are under common control with that organization. **Control**
135
+ means ownership of substantially all the assets of an entity,
136
+ or the power to direct its management and policies by vote,
137
+ contract, or otherwise. Control can be direct or indirect.
138
+
139
+ **Your licenses** are all the licenses granted to you for the
140
+ software under these terms.
141
+
142
+ **Use** means anything you do with the software requiring one
143
+ of your licenses.
package/README.md CHANGED
@@ -1,3 +1,397 @@
1
- # Temporary Holding Version
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/logo.png" width="160" height="160" alt="Agent3D">
3
+ </p>
2
4
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
5
+ <h1 align="center">Agent3D</h1>
6
+
7
+ <p align="center">
8
+ <strong>The 3D studio your AI agent can run.</strong><br>
9
+ Banners, heroes, product shots, characters, landscapes and mini games for any website.<br>
10
+ Everything runs locally: no server, no account, nothing that phones home.
11
+ </p>
12
+
13
+ <p align="center">
14
+ <a href="https://www.npmjs.com/package/@fleox/agent3d"><img src="https://img.shields.io/npm/v/@fleox/agent3d?color=3d6bff&label=npm" alt="npm version"></a>
15
+ <a href="https://github.com/fleox/agent3d/actions/workflows/ci.yml"><img src="https://github.com/fleox/agent3d/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
16
+ <a href="https://www.npmjs.com/package/@fleox/agent3d"><img src="https://img.shields.io/node/v/@fleox/agent3d?color=339933" alt="Node.js version"></a>
17
+ <a href="#claude-code"><img src="https://img.shields.io/badge/Claude%20Code-plugin-d97757" alt="Claude Code plugin"></a>
18
+ <a href="#mcp-server"><img src="https://img.shields.io/badge/MCP-server-0ea5e9" alt="MCP server"></a>
19
+ <a href="https://github.com/fleox/agent3d/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-PolyForm%20Noncommercial-6b7280" alt="License"></a>
20
+ </p>
21
+
22
+ <p align="center">
23
+ <a href="#quick-start">Quick start</a> ·
24
+ <a href="#features">Features</a> ·
25
+ <a href="#the-studio">Studio</a> ·
26
+ <a href="#templates">Templates</a> ·
27
+ <a href="#how-it-works">How it works</a> ·
28
+ <a href="#the-agent3d-cli">CLI</a> ·
29
+ <a href="#mcp-server">MCP</a> ·
30
+ <a href="https://github.com/fleox/agent3d/blob/main/docs/README.md">Docs</a> ·
31
+ <a href="https://github.com/fleox/agent3d/blob/main/changelog.json">Changelog</a>
32
+ </p>
33
+
34
+ <p align="center">
35
+ <a href="https://cdn.jsdelivr.net/gh/fleox/agent3d@main/.github/assets/agent3d-demo.mp4">
36
+ <img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/video-poster.jpg" width="900" alt="Watch the demo: real Claude Code sessions create a 3D banner, edit it and build a mini game, then a tour of the templates and the Studio">
37
+ </a>
38
+ <br><sub>▶️ <a href="https://cdn.jsdelivr.net/gh/fleox/agent3d@main/.github/assets/agent3d-demo.mp4">Watch the demo</a> (2 min 11 s): real Claude Code sessions build a 3D hero banner from one sentence, edit it and make a mini game (the agent's work sped up, labelled on screen), then live templates, the Studio and the export.</sub>
39
+ </p>
40
+
41
+ ---
42
+
43
+ ## Why Agent3D
44
+
45
+ <table>
46
+ <tr>
47
+ <td width="33%" valign="top">
48
+ <h3>🎬 Stunning by default</h3>
49
+ <p>One-line light rigs, physical skies, contact shadows, physically based materials (car paint, ceramic, glass, diamond…) and cinematic <b>looks</b> (bloom, ambient occlusion, depth of field, grading). Agents start from 31 templates and validated recipes, with art direction built into the skills.</p>
50
+ </td>
51
+ <td width="33%" valign="top">
52
+ <h3>🤖 Agent-native</h3>
53
+ <p>A scene is one JSON file, validated against a catalog with "did you mean" hints and edited with small atomic patches. The agent <b>renders it headless</b> with your own Chrome, <b>looks at the screenshots</b>, fixes what it sees and runs <code>check</code> on budgets and accessibility. Every action is a CLI command with JSON output, an MCP tool and a Studio action.</p>
54
+ </td>
55
+ <td width="33%" valign="top">
56
+ <h3>🌐 Made for the web, nothing to run</h3>
57
+ <p>The output is a Web Component and a few static files (or one HTML file) for any site: lazy start, pause off-screen, reduced motion, a poster without WebGL, no layout shift. No Agent3D server, account or subscription; no CDN, web fonts or analytics in the exports.</p>
58
+ </td>
59
+ </tr>
60
+ </table>
61
+
62
+ ## Quick start
63
+
64
+ ### With an AI agent
65
+
66
+ <a id="claude-code"></a>**Claude Code**
67
+
68
+ ```text
69
+ /plugin marketplace add fleox/agent3d
70
+ /plugin install agent3d@agent3d
71
+ ```
72
+
73
+ Then just ask:
74
+
75
+ > *Create an animated 3D hero banner for my bakery "Maison Lune": warm colours, a croissant, the title, subtle motion. Render it so I can see it, then export it for my website.*<br>
76
+ > *Make it more premium: golden-hour lighting, gold letters revealed one by one, and a click on the croissant that opens /shop.*<br>
77
+ > *Make a small 3D mini game for my sports brand site: an endless runner in black and neon yellow, playable on mobile.*
78
+
79
+ The agent picks a template or a starter, writes the scene, renders it, looks at the frames, fixes framing, colours and motion, checks budgets and exports the embed with the snippet to paste.
80
+
81
+ <p align="center">
82
+ <img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/demo-create.gif" width="820" alt="A real Claude Code session: from one request, the agent builds a 3D hero banner for the Maison Lune bakery, renders it, looks at the frames, fixes the scene, checks it and exports the embed; it ends on the agent's own render">
83
+ <br><sub>A real, unedited Claude Code session. The agent's work (about 5 minutes) is sped up ×32 (labelled); typing and the answer play in real time. It ends on the agent's own final render.</sub>
84
+ </p>
85
+
86
+ Once the scene exists, changing it is a conversation:
87
+
88
+ <p align="center">
89
+ <img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/demo-edit.gif" width="820" alt="A real Claude Code session: the agent makes the same banner more premium with golden-hour lighting, gold letters revealed one by one and a click on the croissant that opens /shop, renders it again and re-exports it">
90
+ <br><sub>Same project, a second request: lighting, a letter reveal and a click interaction, then a new render the agent looks at and a re-export. Sped up ×16 while the agent works (labelled).</sub>
91
+ </p>
92
+
93
+ <details>
94
+ <summary><b>And a third one: <i>"Make a small 3D mini game…"</i></b></summary>
95
+ <p align="center">
96
+ <img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/demo-game.gif" width="820" alt="A real Claude Code session: the agent builds an endless runner in black and neon yellow, playable on mobile, play-tests it headlessly with simulated input and exports it">
97
+ <br><sub>A playable game from one request: sandboxed script, HUD, touch controls, play-tested headlessly with simulated input. Sped up ×16 while the agent works (labelled).</sub>
98
+ </p>
99
+ </details>
100
+
101
+ | Agent | Setup |
102
+ |---|---|
103
+ | **Claude Code** | the plugin above: skills `agent3d-create`, `agent3d-edit`, `agent3d-assets`, `agent3d-game`, `agent3d-publish` |
104
+ | **Claude Desktop, Cursor, any MCP client** | the [MCP server](#mcp-server): `agent3d mcp --project <dir>` |
105
+ | **Hermes Agent** / Python agents | generated skills with a Python wrapper, see [hermes/](https://github.com/fleox/agent3d/tree/main/hermes) |
106
+ | **Codex, Windsurf, any other agent** | point it at [AGENTS.md](https://github.com/fleox/agent3d/blob/main/AGENTS.md) and the Markdown skills in [plugin/skills/](https://github.com/fleox/agent3d/tree/main/plugin/skills) |
107
+
108
+ ### Without an agent
109
+
110
+ ```bash
111
+ npx -y @fleox/agent3d@0.2.1 new bakery --target banner --title "Golden Crust"
112
+ npx -y @fleox/agent3d@0.2.1 studio --project bakery
113
+ ```
114
+
115
+ The first command creates a project folder with an attractive starter scene for its target (banner, hero, card, square, fullscreen, inline or game); add `--template <id>` to start from one of the [templates](#templates). The second opens the [Studio](#the-studio) on it. You need **Node.js 22+** and **Google Chrome** (or Chromium / Edge / Brave) for renders; `npx -y @fleox/agent3d@0.2.1 doctor` checks your setup with a test render.
116
+
117
+ The whole loop from a terminal:
118
+
119
+ ```bash
120
+ npx -y @fleox/agent3d@0.2.1 scene patch --project bakery '[{"op":"set","path":"objects#title.material","value":{"preset":"gold"}}]'
121
+ npx -y @fleox/agent3d@0.2.1 render --project bakery --sheet # → renders/…-sheet.png
122
+ npx -y @fleox/agent3d@0.2.1 check --project bakery
123
+ npx -y @fleox/agent3d@0.2.1 export --project bakery # → dist/embed/ + the snippet
124
+ ```
125
+
126
+ Step by step: [docs/getting-started.md](https://github.com/fleox/agent3d/blob/main/docs/getting-started.md).
127
+
128
+ ## Features
129
+
130
+ <table>
131
+ <tr>
132
+ <td width="50%"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/showcase-landscape-valley-sunset.jpg" alt="A low-poly mountain valley under a golden-hour sky, with a lake, a pine forest, god rays and fog"><p align="center"><b>Mountain valley at sunset</b>: physical sky, mirror lake, height fog</p></td>
133
+ <td width="50%"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/showcase-hero-perfume-luxury.jpg" alt="An amber glass perfume bottle with a gold cap on a marble pedestal, surrounded by diamonds"><p align="center"><b>Luxury perfume hero</b>: refractive glass, gems, rack focus</p></td>
134
+ </tr>
135
+ <tr>
136
+ <td width="50%"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/showcase-banner-neon-title.jpg" alt="A synthwave banner: a sunset-gradient 3D headline over a neon grid floor with bloom"><p align="center"><b>Neon title banner</b>: kerned 3D type, letter reveal, bloom</p></td>
137
+ <td width="50%"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/showcase-hero-sneaker-showcase.jpg" alt="A sneaker on a ceramic pedestal on a coral backdrop with a title, a price and a Shop now button"><p align="center"><b>Sneaker showcase</b>: product lighting, data-bound price, click to a detail view</p></td>
138
+ </tr>
139
+ <tr>
140
+ <td width="50%"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/showcase-character-mascot-hero.jpg" alt="A procedural fox mascot waving on a pastel pedestal next to a 3D speech bubble"><p align="center"><b>Mascot hero</b>: procedural character, eyes follow the pointer</p></td>
141
+ <td width="50%"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/showcase-diorama-city.jpg" alt="An isometric pastel city block on a floating slab with cars, trees and tilt-shift blur"><p align="center"><b>Isometric city diorama</b>: generators, tilt-shift, long shadows</p></td>
142
+ </tr>
143
+ <tr>
144
+ <td width="50%"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/showcase-game-basket.jpg" alt="A basketball game in a spotlit night arena with a hoop, a ball and a score HUD"><p align="center"><b>Hoop shot</b>: a playable game on rigid-body physics</p></td>
145
+ <td width="50%"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/showcase-hero-saas-globe.jpg" alt="A dotted-continent globe with glowing arcs between cities on a dark background"><p align="center"><b>SaaS globe hero</b>: globe generator, arcs, room for your headline</p></td>
146
+ </tr>
147
+ </table>
148
+
149
+ <p align="center">
150
+ <img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/showcase-loop.gif" width="900" alt="A loop of several Agent3D templates in motion: banners, heroes, a landscape, a product and a game">
151
+ <br><sub>Headless renders of the built-in templates, straight from <code>agent3d render</code>. Nothing was downloaded: everything is procedural or from the built-in library.</sub>
152
+ </p>
153
+
154
+ **Look**
155
+ - **Lighting and lookdev**: 10 one-line light rigs (softbox, studio three-point, golden hour, neon, moonlight…), physical skies with a matching sun, 20 built-in HDRIs, height fog, contact shadows, rect panel lights and volumetric spots, mesh-gradient backgrounds
156
+ - **Materials**: 38 presets from chrome, glass and car paint to velvet, diamond and soap bubble; physical parameters (clearcoat, sheen, iridescence, transmission, anisotropy, dispersion), 12 procedural textures (marble, wood, terrazzo, carbon…) at zero bytes, 17 shaders (aurora, liquid chrome, nebula, caustics…), cel shading that keeps brand colours true
157
+ - **Finishing**: `look` presets (cinematic, product, dreamy, neon, retro, clean) and 20 post effects: bloom, ambient occlusion, depth of field with rack focus, god rays, lens flare, tilt-shift, grading, vignette, film grain, FXAA / SMAA / TAA…; quality tiers drop costly passes on weak devices
158
+
159
+ **Motion**
160
+ - 29 **behaviours** (float, orbit, follow or look at the pointer, tilt, hover lift, spin on click, scroll parallax, spring, breathe…)
161
+ - A keyframe **timeline** with every easing, springs, per-letter and staggered multi-target tracks, colour blends in OKLCh, markers and **segments**
162
+ - **Interactions** (hover, click, key) that play segments, set properties or open links; **scroll-driven** timelines; cinematic **camera shots**, shake and look-at
163
+
164
+ **Content**
165
+ - 22 procedural **generators**: terrain (mountains, basins, valleys, islands), trees, rocks, grass, flowers, water with mirror reflections, clouds, birds, cities, roads, floating islands, globes, galaxies, crystals, 3D bar charts, mazes… deterministic from a seed
166
+ - A procedural **character** generator (humanoid, astronaut, robot, blob, cat, fox, bird, ghost) with animations such as wave, run, jump, dance and celebrate
167
+ - A built-in **library** of 179 assets usable offline (`library:<id>`): 128 models (rigged characters with clips, products, props), PBR textures and HDRIs; optional search and download from free CC0 sources (Poly Haven, ambientCG, Khronos samples) and Kenney / Quaternius pack import, with licences recorded
168
+ - 3D text in 13 kerned **fonts** with wrapping, outlines and letter-by-letter reveals; extruded **SVG logos** that keep their colours; 17 particle presets; 12 synth sounds
169
+
170
+ **Games**
171
+ - Sandboxed **scripts** (`ScriptApi`: input, spawning by cloning, events, sounds, saved best scores); `check` rejects network, DOM and storage globals before export
172
+ - Rigid-body **physics** (shapes, joints with motors, collision events, character controllers, moving platforms) in a lazy chunk
173
+ - A themable **HUD** (texts bound to the game state, bars, buttons, panels for game-over screens), keyboard, pointer and touch-swipe input, and an attract mode so the embed is alive before anyone plays
174
+
175
+ **Web**
176
+ - The `<agent3d-scene>` **Web Component**: lazy start when scrolled into view, pause off-screen, `prefers-reduced-motion`, pixel-ratio cap, a poster without WebGL or JavaScript, reserved aspect ratio, `aria-label`, methods and events
177
+ - **Data bindings**: `{data.title}` in the scene, filled per page with `data-*` attributes (one scene, many products)
178
+ - **Exports**: an embed folder (shared runtime, Subresource Integrity, `EMBED.md`, React / Vue / Svelte wrappers), a ZIP, a single HTML file, a poster, an MP4 / WebM video or a GIF; the export reports the real page weight a visitor downloads
179
+ - Works in plain HTML, WordPress, Webflow, Shopify, AgentCMS ([block](https://github.com/fleox/agent3d/tree/main/integrations/agentcms)), React / Next.js, Astro, Vue, Svelte; a strict Content-Security-Policy works without `unsafe-eval`
180
+
181
+ **Quality**
182
+ - **Headless renders** in your installed Chrome with a deterministic clock: frames and contact sheets are reproducible, and games are *played* with simulated keys, taps and swipes (`render --input`) with the script's state returned
183
+ - **`check`**: validation, missing files, the script sandbox, triangles and draw calls per frame across every pass against the target's aim, KB budgets, framing, accessibility settings, licences that need credit
184
+
185
+ ## The Studio
186
+
187
+ A visual editor for when you want to see and touch the scene yourself, on the same files and the same validated tools as the agent. Changes your agent makes in a terminal appear live in the open Studio.
188
+
189
+ ```bash
190
+ npx -y @fleox/agent3d@0.2.1 studio --project bakery
191
+ ```
192
+
193
+ <p align="center">
194
+ <picture>
195
+ <img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/studio-editor-dark.jpg" width="900" alt="The Agent3D Studio: a live viewport with a transform gizmo, the outliner on the left, the inspector on the right and the timeline below">
196
+ </picture>
197
+ </p>
198
+
199
+ <table>
200
+ <tr>
201
+ <td width="50%">
202
+ <picture>
203
+ <img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/studio-materials-dark.jpg" alt="The inspector editing an object's material preset and physical parameters">
204
+ </picture>
205
+ <p align="center"><b>Materials</b>: presets, physical parameters, procedural textures</p>
206
+ </td>
207
+ <td width="50%">
208
+ <picture>
209
+ <img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/studio-timeline-dark.jpg" alt="The timeline panel with keyframe tracks, segments and the playhead">
210
+ </picture>
211
+ <p align="center"><b>Timeline</b>: tracks, keyframes, easings, segments</p>
212
+ </td>
213
+ </tr>
214
+ <tr>
215
+ <td width="50%">
216
+ <picture>
217
+ <img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/studio-postfx-dark.jpg" alt="The post effects panel with a look preset, bloom and depth of field">
218
+ </picture>
219
+ <p align="center"><b>Post effects</b>: looks, bloom, depth of field, grading</p>
220
+ </td>
221
+ <td width="50%">
222
+ <picture>
223
+ <img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/studio-start-dark.jpg" alt="The Studio start screen with the templates gallery">
224
+ </picture>
225
+ <p align="center"><b>Start</b>: templates gallery and starters per target</p>
226
+ </td>
227
+ </tr>
228
+ </table>
229
+
230
+ Move / rotate / scale gizmos, an editor camera and the scene camera with framing guides, drag and drop from the catalog and the library, outliner, inspector, interactions, checks, render and export dialogs, undo / redo, in English or French. An optional assistant panel calls the Claude API from your browser with your own key, over the same tools. `serve --open` shows a live preview without the editor. Details: [docs/studio.md](https://github.com/fleox/agent3d/blob/main/docs/studio.md).
231
+
232
+ ## Templates
233
+
234
+ <p align="center">
235
+ <img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/templates-grid.jpg" width="900" alt="A grid of the 31 Agent3D templates: banners, heroes, landscapes, product cards, dioramas and games">
236
+ </p>
237
+
238
+ 31 starter projects, each a complete scene that passes `check --render`: 8 banners, 12 heroes and landscapes, 2 product cards, 2 square dioramas and 7 playable games. Start from one with `agent3d new my-scene --template <id>`; `agent3d templates list` lists them and `templates show <id>` describes one.
239
+
240
+ To see them all live in a browser, build the gallery from a clone (`npm install --legacy-peer-deps && npm run build:runtime && npm run build:agent`, then `node scripts/build-examples.mjs`) and serve `examples/site/` with any static server (for example `python3 -m http.server -d examples/site`): each card plays the real embed, with the brief the agent that built the template received.
241
+
242
+ <details>
243
+ <summary><b>All 31 templates</b></summary>
244
+
245
+ | Preview | Template | Kind | What it is |
246
+ |---|---|---|---|
247
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/banner-aurora-night/preview.png" width="160" alt="Aurora night banner"> | [**Aurora night banner**](https://github.com/fleox/agent3d/tree/main/templates/banner-aurora-night)<br>`banner-aurora-night` | banner · 4:1 | Night-sky 4:1 banner: animated northern-lights curtains over low-poly mountain silhouettes, twinkling stars, glowing cyan and violet crystal clusters in the snow and a white headline (data-bound) fading in letter by letter. |
248
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/banner-data-bars/preview.png" width="160" alt="Data bars banner"> | [**Data bars banner**](https://github.com/fleox/agent3d/tree/main/templates/banner-data-bars)<br>`banner-data-bars` | banner · 4:1 | Clean corporate 4:1 banner: a two-row 3D bar chart (your values) growing bar by bar in indigo on a white base plate, next to a data-bound headline and caption — reports, fintech, analytics and investor pages. |
249
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/banner-floating-shapes/preview.png" width="160" alt="Floating shapes banner"> | [**Floating shapes banner**](https://github.com/fleox/agent3d/tree/main/templates/banner-floating-shapes)<br>`banner-floating-shapes` | banner · 4:1 | Pastel 4:1 banner: a rounded 3D headline (data-bound) popping in letter by letter, framed by jelly, pearl, matte-pastel and gold shapes that spring in, float and shift with the pointer in depth layers over a drifting mesh-gradient backdrop. |
250
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/banner-gradient-blob/preview.png" width="160" alt="Gradient blob banner"> | [**Gradient blob banner**](https://github.com/fleox/agent3d/tree/main/templates/banner-gradient-blob)<br>`banner-gradient-blob` | banner · 3:1 | Minimal 3:1 banner for SaaS / product pages: a glossy iridescent morphing blob in brand colours with a small companion blob, a thin chrome orbit with beads and a drifting pastel mesh-gradient backdrop; the left two thirds stay empty for your HTML headline. |
251
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/banner-liquid-chrome/preview.png" width="160" alt="Liquid chrome banner"> | [**Liquid chrome banner**](https://github.com/fleox/agent3d/tree/main/templates/banner-liquid-chrome)<br>`banner-liquid-chrome` | banner · 4:1 | Abstract 4:1 banner: a flowing liquid-chrome backdrop softly out of focus, morphing holographic and chrome blobs, and a bold kerned title (data-bound) revealed letter by letter from the centre, with cinematic grading and grain. |
252
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/banner-logo-extrude/preview.png" width="160" alt="Extruded logo banner"> | [**Extruded logo banner**](https://github.com/fleox/agent3d/tree/main/templates/banner-logo-extrude)<br>`banner-logo-extrude` | banner · 4:1 | Brand 4:1 banner: your SVG logo extruded into clear-coated 3D (keeping its colours) inside a neon halo, a wordmark revealed letter by letter and a tagline (both data-bound), a light sweep across the logo; it tilts toward the pointer, spins on hover and bounces on click. |
253
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/banner-neon-title/preview.png" width="160" alt="Neon title banner"> | [**Neon title banner**](https://github.com/fleox/agent3d/tree/main/templates/banner-neon-title)<br>`banner-neon-title` | banner · 4:1 | Synthwave 4:1 banner: a tall condensed sunset-gradient 3D headline that drops in letter by letter from the centre, a flickering neon script tagline, neon tubes, a scrolling neon grid floor, a gradient sun, sparks and bloom (data-bound texts). |
254
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/banner-wave-grid/preview.png" width="160" alt="Wave grid banner"> | [**Wave grid banner**](https://github.com/fleox/agent3d/tree/main/templates/banner-wave-grid)<br>`banner-wave-grid` | banner · 4:1 | Dark tech / data 4:1 banner: a field of ~8,000 dots in a cyan-indigo-pink ramp undulating like a signal and rippling under the pointer, beneath a crisp Space Grotesk headline revealed letter by letter and a blinking mono kicker (data-bound). |
255
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/character-mascot-hero/preview.png" width="160" alt="Mascot hero"> | [**Mascot hero**](https://github.com/fleox/agent3d/tree/main/templates/character-mascot-hero)<br>`character-mascot-hero` | hero · 16:9 | Friendly brand-mascot hero (16:9): a procedural fox waving on a pastel pedestal with a 3D speech bubble (text from scene.data), its head and eyes following the pointer; click or tap it and it jumps into a celebration with confetti and a new line, then settles back. |
256
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/character-showcase/preview.png" width="160" alt="Character showcase"> | [**Character showcase**](https://github.com/fleox/agent3d/tree/main/templates/character-showcase)<br>`character-showcase` | hero · 16:9 | Cartoon character line-up (16:9) for mascots, kids' products, games or team pages: five procedural characters on pastel pedestals — an astronaut cheering in the centre, a dancing robot, a waving fox, a dancing kid with headphones and a jumping cat — heads following the pointer, falling confetti and a 'Meet the crew' 3D title (from scene.data). |
257
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-floating-island/preview.png" width="160" alt="Floating island hero"> | [**Floating island hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-floating-island)<br>`hero-floating-island` | hero · 16:9 | Dreamy 16:9 hero: a low-poly floating island with trees, flowers, a pond and a waterfall pouring into a sea of pastel clouds, two distant islets, flapping birds circling and magic glints, under a peach-to-blue sunset gradient — slow orbit, pointer parallax, soft dreamy look. |
258
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-perfume-luxury/preview.png" width="160" alt="Luxury perfume hero"> | [**Luxury perfume hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-perfume-luxury)<br>`hero-perfume-luxury` | hero · 16:9 | Dark luxury product hero: an amber glass perfume bottle (refractive lathe glass with liquid colour) and faceted gold cap on a black-and-gold marble pedestal, diamonds and a ruby catching the light, a slow push-in with a rack focus from a diamond to the bottle, and a gold serif name (data-bound). |
259
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-product-turntable/preview.png" width="160" alt="Product turntable hero"> | [**Product turntable hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-product-turntable)<br>`hero-product-turntable` | hero · 16:9 | Studio product hero: a realistic PBR boombox slowly turning on a terrazzo pedestal with a gold rim, softbox light rig, studio HDRI reflections, soft contact shadow, product look and drag-to-orbit. |
260
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-saas-globe/preview.png" width="160" alt="SaaS globe hero"> | [**SaaS globe hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-saas-globe)<br>`hero-saas-globe` | hero · 16:9 | Dark premium SaaS / network hero: a dotted-continent globe with a blue atmosphere slowly turning on the right, glowing arcs with light pulses travelling between world cities, faint orbit ring and stars; the left half stays empty for your HTML headline. |
261
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-scroll-story/preview.png" width="160" alt="Scroll story hero"> | [**Scroll story hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-scroll-story)<br>`hero-scroll-story` | hero · 16:9 | Scroll-driven 3D story: as the page scrolls, the camera glides across three chapters — Design, Build, Launch — each with its own object and a bold 3D title that pops in letter by letter, with markers that emit page events. |
262
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-sneaker-showcase/preview.png" width="160" alt="Sneaker showcase hero"> | [**Sneaker showcase hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-sneaker-showcase)<br>`hero-sneaker-showcase` | hero · 16:9 | E-commerce product hero: a real PBR sneaker spins onto a ceramic pedestal on a bold coral backdrop, with a data-bound title, tagline, price and Shop now button; click the shoe to glide the camera to a detail view. |
263
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-space-planet/preview.png" width="160" alt="Space planet hero"> | [**Space planet hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-space-planet)<br>`hero-space-planet` | hero · 21:9 | Cinematic 21:9 space hero: a ringed low-poly planet side-lit into a crescent, an orbiting moon, a drifting purple-blue nebula backdrop, twinkling stars, nebula dust and a comet, bloom + lens flare + film grade, drifting with the pointer — left half free for a headline. |
264
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/landscape-island/preview.png" width="160" alt="Tropical low-poly island"> | [**Tropical low-poly island**](https://github.com/fleox/agent3d/tree/main/templates/landscape-island)<br>`landscape-island` | hero · 16:9 | Sunny 16:9 procedural diorama: a tropical low-poly island (palm-lined beaches, round-canopy forest, rocky summit) in turquoise lagoon water with animated shore foam, puffy clouds and seabirds circling, cinematic grade, slow orbit + drag. |
265
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/landscape-night-galaxy/preview.png" width="160" alt="Night galaxy landscape"> | [**Night galaxy landscape**](https://github.com/fleox/agent3d/tree/main/templates/landscape-night-galaxy)<br>`landscape-night-galaxy` | hero · 16:9 | Calm 16:9 night hero: glowing crystal clusters (purple, cyan, pink) on dark low-poly hills under a vast rotating spiral galaxy, northern-lights aurora curtains, twinkling stars and drifting fireflies, bloom and a cool grade, slow 20 s camera drift + pointer parallax. |
266
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/landscape-valley-sunset/preview.png" width="160" alt="Mountain valley at sunset"> | [**Mountain valley at sunset**](https://github.com/fleox/agent3d/tree/main/templates/landscape-valley-sunset)<br>`landscape-valley-sunset` | hero · 21:9 | Atmospheric 21:9 landscape: a low-poly mountain valley closed by a snowy range, a pine forest and an animated lake under a physical golden-hour sky, the sun low at the edge of the frame with soft god rays, valley height fog, pink clouds and fireflies — cinematic grade, slow camera drift + pointer parallax. |
267
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/card-hover-3d/preview.png" width="160" alt="3D product card"> | [**3D product card**](https://github.com/fleox/agent3d/tree/main/templates/card-hover-3d)<br>`card-hover-3d` | card · 4:5 | Clean product card (4:5): a PBR water bottle turning over a glossy sage disc with a soft contact shadow, softbox lighting and product look; it lifts, tilts toward the pointer and grows on hover, with a data-bound name, price and link — drop it into any product grid. |
268
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/card-product-tilt/preview.png" width="160" alt="Product tilt card"> | [**Product tilt card**](https://github.com/fleox/agent3d/tree/main/templates/card-product-tilt)<br>`card-product-tilt` | card · 4:5 | Collectible-style product card (4:5): a glossy PBR rubber duck pops out of a holographic-foil card with a sun disc, tilting toward the pointer with a shifting rainbow glare; data-bound name, price, badge and link — drop it in any product grid. |
269
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/diorama-city/preview.png" width="160" alt="Isometric city diorama"> | [**Isometric city diorama**](https://github.com/fleox/agent3d/tree/main/templates/diorama-city)<br>`diorama-city` | square · 1:1 | A Townscaper-like isometric city block (1:1): pastel procedural buildings with lit windows, a park and street trees on a floating clay slab, library cars, a taxi and a police car driving the streets, low warm sun with long soft shadows, tilt-shift miniature blur and a cinematic grade, slow orbit. |
270
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/scene-cozy-room/preview.png" width="160" alt="Cozy room diorama"> | [**Cozy room diorama**](https://github.com/fleox/agent3d/tree/main/templates/scene-cozy-room)<br>`scene-cozy-room` | square · 1:1 | Isometric cozy living-room corner (1:1) at golden hour: photoreal Poly Haven props (modern armchair, round coffee table, potted succulents) on a wooden floor with a striped rug, a glowing floor lamp, a window area light with dust drifting in the light, framed art, soft VSM shadows, cinematic warm grade and a slow camera sway. |
271
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/game-basket/preview.png" width="160" alt="Hoop shot"> | [**Hoop shot**](https://github.com/fleox/agent3d/tree/main/templates/game-basket)<br>`game-basket` | game · 16:9 | Playable 45-second basketball shooting game (16:9) on real rigid-body physics: swipe or drag up to shoot (length = power, drift = aim) or hold Space to charge and release, the ball bounces off a trimesh rim and the backboard, swishes count only when falling through the net, a new spot after every shot, x2 / x3 streaks, best score saved, impact sounds, confetti, spotlit night arena, self-playing attract mode. |
272
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/game-coin-collector/preview.png" width="160" alt="Coin collector arena"> | [**Coin collector arena**](https://github.com/fleox/agent3d/tree/main/templates/game-coin-collector)<br>`game-coin-collector` | game · 16:9 | Playable 3D platformer arena (16:9): run and jump across a floating grass island and stepped platforms above a sea of clouds to collect 12 coins before the 45 s timer ends — physics, follow camera, best time, keyboard + touch, self-playing attract mode. |
273
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/game-maze/preview.png" width="160" alt="Marble maze"> | [**Marble maze**](https://github.com/fleox/agent3d/tree/main/templates/game-maze)<br>`game-maze` | game · 1:1 | Playable marble maze: roll a glossy ball through a procedural maze to the glowing exit against the clock — physics walls, best time, keyboard + touch, self-solving attract mode. |
274
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/game-physics-playground/preview.png" width="160" alt="Tower smash (physics)"> | [**Tower smash (physics)**](https://github.com/fleox/agent3d/tree/main/templates/game-physics-playground)<br>`game-physics-playground` | game · 16:9 | Rigid-body physics playground: click or tap to throw balls at a tower of wooden blocks that really tumbles, slides and stacks — knock it all off in as few throws as possible, impact sounds, best score, attract mode. |
275
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/game-platformer/preview.png" width="160" alt="Sky platformer"> | [**Sky platformer**](https://github.com/fleox/agent3d/tree/main/templates/game-platformer)<br>`game-platformer` | game · 16:9 | Playable side-scrolling platformer (16:9): a rigged KayKit knight runs and jumps (physics character controller with coyote time) across floating grass platforms, a sliding lift and an elevator lift, collects 13 coins and reaches the goal flag against a 90 s timer — 3 lives, checkpoints, best time saved, synth sounds, keyboard + touch (hold a side to run, tap the middle to jump), self-playing attract mode, floating islands and clouds behind. |
276
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/game-runner/preview.png" width="160" alt="Endless runner"> | [**Endless runner**](https://github.com/fleox/agent3d/tree/main/templates/game-runner)<br>`game-runner` | game · 16:9 | Playable endless runner: switch lanes and jump over barriers on a scrolling road, grab coins, speed ramps up, best score saved, game over + retry, synth sounds, keyboard + touch, self-playing attract mode. |
277
+ | <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/game-tap-targets/preview.png" width="160" alt="Tap the targets"> | [**Tap the targets**](https://github.com/fleox/agent3d/tree/main/templates/game-tap-targets)<br>`game-tap-targets` | game · 16:9 | Playable 30-second reflex game: targets pop out of nine holes, tap or click them, chain hits for a combo multiplier, golden targets score 5× — best score saved, touch + keyboard, attract mode. |
278
+
279
+ </details>
280
+
281
+ ## How it works
282
+
283
+ <p align="center">
284
+ <picture>
285
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/how-it-works-dark.png">
286
+ <img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/how-it-works-light.png" width="900" alt="You, in any browser, and your AI agent (Claude Code, Claude, Hermes, any MCP client) use four front doors: the Studio, the Studio assistant, the agent3d CLI and the MCP server. All of them call one engine (scene ops: validate, check, render, export) and the Three.js player, deterministic and rendered headless in your own Chrome so the agent looks at its work. The export goes on any website as a Web Component embed, one HTML file, a video, a GIF or a poster. Built in and offline: 128 models, 20 HDRIs, 18 textures, 13 fonts, 31 templates. No server of ours.">
287
+ </picture>
288
+ </p>
289
+
290
+ All the rules live in one engine. The Studio, the CLI, the MCP server and the Studio assistant are four front doors to it, so an agent can do exactly what you can do in the editor, with the same validation. The engine works on a plain **project folder** (`scene.json`, `assets/`, `scripts/`, `renders/`), which you can keep in git.
291
+
292
+ A scene is data: the runtime is a pure function of (scene, assets, time) in deterministic mode. That is what makes the loop work: the agent edits the JSON, `render` seeks exact times in your headless Chrome and writes PNGs and a contact sheet, the agent **looks** at them, fixes, and `check` measures what a reviewer would. The same runtime plays the scene on your website, loaded in lazy chunks so a scene only downloads the features it uses.
293
+
294
+ The network is used only for the optional CC0 asset search and download (files are saved once into the project with their licence, and exports never hotlink) and, if you enable it, the Studio assistant's calls to the Claude API with your own key. Game scripts are checked against a sandbox contract before export. See [architecture](https://github.com/fleox/agent3d/blob/main/docs/architecture.md) and [security](https://github.com/fleox/agent3d/blob/main/docs/security.md).
295
+
296
+ ```html
297
+ <script type="module" src="/agent3d/agent3d-runtime/agent3d-runtime.js"></script>
298
+ <agent3d-scene src="/agent3d/bakery/scene.json" poster="/agent3d/bakery/poster.webp"
299
+ aria-label="Golden Crust Bakery: a warm 3D title with floating pastries"></agent3d-scene>
300
+ ```
301
+
302
+ ## How Agent3D compares
303
+
304
+ | | Agent3D | Spline | A hand-coded Three.js page | Lottie or a video loop |
305
+ |---|---|---|---|---|
306
+ | What you get | interactive 3D scenes for web pages | interactive 3D scenes for web pages | anything you write | 2D vector animation / pre-rendered frames |
307
+ | How it is made | JSON scene written by an agent or in the Studio | visual editor in the browser | code | an animation tool / a video editor |
308
+ | Account or hosted service | ❌ none | a Spline account | ❌ none | ❌ none |
309
+ | AI agent loop (edit, render, look, check) | ✅ CLI, MCP, skills | — | ad hoc | — |
310
+ | Hover, click, scroll, mini games | ✅ declared in the scene, scripts for games | ✅ | ✅ you write it | limited / ❌ |
311
+ | Budget and accessibility checks before publishing | ✅ `check` (triangles, KB, framing, reduced motion, label) | — | you write them | — |
312
+ | Output | static files, a Web Component | Spline's viewer / runtime | your build | a JSON file and a player / a video file |
313
+
314
+ Pick Spline when a designer wants a hosted visual tool, hand-written Three.js when you need full control of every line, and Lottie or video for flat or non-interactive motion. Agent3D fits when an agent should produce and verify the 3D element, and the result must ship as plain static files.
315
+
316
+ ## The `agent3d` CLI
317
+
318
+ The same engine the agents use, by hand: `npx -y @fleox/agent3d@0.2.1 help`. Every command accepts `--json` and prints exactly one `{ ok, data }` or `{ ok: false, error }` object with an actionable hint, and commands that replace or overwrite something print a plan until you add `--yes`.
319
+
320
+ <p align="center">
321
+ <img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/demo-cli.gif" width="820" alt="Terminal running the agent3d CLI: a project from the gradient-blob template, its scene summary, a gold torus added, a behaviour patch rejected with an actionable error then fixed, and the pre-export check">
322
+ <br><sub>Create, inspect and patch a scene from a terminal or a script; mistakes come back with a hint.</sub>
323
+ </p>
324
+
325
+ Render it headless and look, then export:
326
+
327
+ <p align="center">
328
+ <img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/demo-render.gif" width="820" alt="Terminal running agent3d render on an island scene: frames at fixed times and a contact sheet, with triangle and draw-call stats, then the contact sheet itself">
329
+ <br><sub><code>render --sheet</code> in your own headless Chrome: the picture the agent looks at, with the stats <code>check</code> uses.</sub>
330
+ </p>
331
+
332
+ <p align="center">
333
+ <img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/demo-export.gif" width="820" alt="Terminal running agent3d export: the overwrite plan, --yes, the page weight and the snippet, then an MP4 teaser rendered frame by frame, and the exported demo page in a browser">
334
+ <br><sub><code>export</code>: a plan before overwriting, the real page weight, the snippet to paste, and a video teaser (its frame-by-frame render is sped up ×8, labelled).</sub>
335
+ </p>
336
+
337
+ <details>
338
+ <summary><b>All commands</b></summary>
339
+
340
+ | Area | Commands |
341
+ |---|---|
342
+ | Project | `new <dir> [--template] [--target] [--title] [--aspect]`, `info`, `templates list\|show`, `doctor`, `version`, `help` |
343
+ | Scene | `scene get\|summary\|apply\|patch\|validate`, `object add\|update\|remove\|list\|get\|move`, `timeline get\|set\|add-track\|remove-track`, `catalog [section] [id]` |
344
+ | Look at it | `render [--sheet] [--frames] [--size] [--input] [--segment] [--scroll] [--reduced-motion] [--video\|--gif\|--webp]`, `check [--render]`, `serve [--open]`, `studio` |
345
+ | Ship | `export [--format embed\|zip\|single-html\|poster\|video\|gif] [--out] [--optimize] [--base-url] [--prune-runtime]` |
346
+ | Assets | `assets list\|search\|add\|optimize\|remove\|library` |
347
+ | AI | `tools list\|call`, `mcp [--read-only]` |
348
+
349
+ Full reference: [docs/cli.md](https://github.com/fleox/agent3d/blob/main/docs/cli.md).
350
+
351
+ </details>
352
+
353
+ ## MCP server
354
+
355
+ ```bash
356
+ claude mcp add agent3d -- npx -y @fleox/agent3d@0.2.1 mcp --project ~/agent3d/my-banner
357
+ ```
358
+
359
+ <p align="center">
360
+ <img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/demo-mcp.gif" width="820" alt="Terminal adding the Agent3D MCP server to Claude Code, the server reported as connected, then raw JSON-RPC: initialize, tools/list and a render_preview call that returns the contact sheet as an image">
361
+ </p>
362
+
363
+ **Tools** are the shared AI catalog: project info and creation, scene get / summary / apply / patch / validate, objects, timeline, interactions, catalog and templates lookups, `check`, assets (list, search, add, optimize, library) and `export`, plus **`render_preview`**, which returns the contact sheet as an **image** so multimodal models see their work. **Resources** are the scene, its summary and the catalog. `--read-only` hides every tool that writes. The folder may be empty: `project_create` creates the project there. Claude Desktop, Cursor and Hermes setup: [docs/mcp.md](https://github.com/fleox/agent3d/blob/main/docs/mcp.md).
364
+
365
+ ## Documentation
366
+
367
+ | | |
368
+ |---|---|
369
+ | [Getting started](https://github.com/fleox/agent3d/blob/main/docs/getting-started.md) | Install, a first banner in five commands, using it from an agent |
370
+ | [Art direction](https://github.com/fleox/agent3d/blob/main/docs/art-direction.md) | Premium defaults per kind: composition, lighting, palettes, motion |
371
+ | [Scene format](https://github.com/fleox/agent3d/blob/main/docs/scene-format.md) · [Catalog](https://github.com/fleox/agent3d/blob/main/docs/catalog.md) | `scene.json` field by field; every geometry, material, behaviour, generator and effect with parameters |
372
+ | [Scripting](https://github.com/fleox/agent3d/blob/main/docs/scripting.md) | Games and interactive logic: the ScriptApi, physics, HUD, sandbox rules, headless play-testing |
373
+ | [Export](https://github.com/fleox/agent3d/blob/main/docs/export.md) | Export formats, the `<agent3d-scene>` element, data bindings, frameworks, CSP, videos and GIFs |
374
+ | [Assets](https://github.com/fleox/agent3d/blob/main/docs/assets.md) | The built-in library, CC0 sources, `assets optimize`, licences |
375
+ | [Studio](https://github.com/fleox/agent3d/blob/main/docs/studio.md) · [Studio API](https://github.com/fleox/agent3d/blob/main/docs/studio-api.md) | The visual editor; its local REST API |
376
+ | [CLI](https://github.com/fleox/agent3d/blob/main/docs/cli.md) · [MCP](https://github.com/fleox/agent3d/blob/main/docs/mcp.md) | Every command; MCP clients |
377
+ | [Architecture](https://github.com/fleox/agent3d/blob/main/docs/architecture.md) · [Security](https://github.com/fleox/agent3d/blob/main/docs/security.md) | The engine, the runtime, the render loop; what touches the network, the script sandbox |
378
+ | [AGENTS.md](https://github.com/fleox/agent3d/blob/main/AGENTS.md) | Instructions for AI agents working on this repository |
379
+
380
+ ## Contributing
381
+
382
+ Bug reports and ideas are welcome: [open an issue](https://github.com/fleox/agent3d/issues/new/choose). Read [CONTRIBUTING.md](https://github.com/fleox/agent3d/blob/main/CONTRIBUTING.md) before opening a pull request. For security issues, follow [SECURITY.md](https://github.com/fleox/agent3d/blob/main/SECURITY.md) instead of opening a public issue.
383
+
384
+ ```bash
385
+ npm install --legacy-peer-deps
386
+ npm run dev # the Studio (projects in the browser)
387
+ npm test # Vitest
388
+ npm run build # runtime + Studio + CLI
389
+ ```
390
+
391
+ ## License
392
+
393
+ Source-available under the [PolyForm Noncommercial License 1.0.0](https://github.com/fleox/agent3d/blob/main/LICENSE). Personal, hobbyist, educational, research and other noncommercial use is free, and you can fork, modify and redistribute under the same terms.
394
+
395
+ **Commercial use requires written authorization.** This includes selling the software or hosting it as a paid service. For a commercial license, [open an issue](https://github.com/fleox/agent3d/issues).
396
+
397
+ Agent3D renders with [three.js](https://threejs.org), runs physics with [cannon-es](https://github.com/pmndrs/cannon-es) and decodes compressed models with [meshoptimizer](https://github.com/zeux/meshoptimizer) (all MIT). The built-in library is CC0, with OFL / Apache-2.0 fonts and a few CC BY models whose credits exports list: see [library/LICENSES.md](https://github.com/fleox/agent3d/blob/main/library/LICENSES.md).