vargai 0.4.0-alpha87 → 0.4.0-alpha89

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 (120) hide show
  1. package/garry-tan-varg.tsx +46 -0
  2. package/package.json +1 -1
  3. package/src/cli/commands/init.tsx +135 -416
  4. package/src/cli/commands/render.tsx +1 -1
  5. package/.size-limit.json +0 -8
  6. package/.test-hooks.ts +0 -5
  7. package/CLAUDE.md +0 -135
  8. package/CONTRIBUTING.md +0 -150
  9. package/SKILLS.md +0 -173
  10. package/STRUCTURE.md +0 -92
  11. package/biome.json +0 -39
  12. package/commitlint.config.js +0 -22
  13. package/docs/index.html +0 -1130
  14. package/docs/prompting.md +0 -326
  15. package/docs/react.md +0 -837
  16. package/docs/sdk.md +0 -812
  17. package/examples/grok-imagine-ai-sdk.tsx +0 -207
  18. package/examples/grok-imagine-test.tsx +0 -155
  19. package/ffmpeg/CLAUDE.md +0 -68
  20. package/hello.tsx +0 -35
  21. package/launch-videos/06-kawaii-fruits.tsx +0 -93
  22. package/launch-videos/07-ugc-weight-loss.tsx +0 -133
  23. package/launch-videos/08-talking-head-varg.tsx +0 -107
  24. package/launch-videos/09-girl.tsx +0 -160
  25. package/launch-videos/README.md +0 -42
  26. package/pipeline/cookbooks/SKILL.md +0 -285
  27. package/pipeline/cookbooks/remotion-video.md +0 -585
  28. package/pipeline/cookbooks/round-video-character.md +0 -337
  29. package/pipeline/cookbooks/scripts/animate-frames-parallel.ts +0 -84
  30. package/pipeline/cookbooks/scripts/combine-scenes.sh +0 -53
  31. package/pipeline/cookbooks/scripts/generate-frames-parallel.ts +0 -99
  32. package/pipeline/cookbooks/scripts/still-to-video.sh +0 -37
  33. package/pipeline/cookbooks/talking-character.md +0 -59
  34. package/pipeline/cookbooks/text-to-tiktok.md +0 -669
  35. package/pipeline/cookbooks/trendwatching.md +0 -156
  36. package/plan.md +0 -281
  37. package/scripts/.gitkeep +0 -0
  38. package/skills/varg-video-generation/SKILL.md +0 -224
  39. package/skills/varg-video-generation/references/templates.md +0 -380
  40. package/skills/varg-video-generation/scripts/setup.ts +0 -259
  41. package/src/ai-sdk/examples/cached-generation.ts +0 -53
  42. package/src/ai-sdk/examples/duet-scene-4.ts +0 -53
  43. package/src/ai-sdk/examples/duet-scene-5-audio.ts +0 -32
  44. package/src/ai-sdk/examples/duet-video.ts +0 -56
  45. package/src/ai-sdk/examples/editly-composition.ts +0 -63
  46. package/src/ai-sdk/examples/editly-test.ts +0 -57
  47. package/src/ai-sdk/examples/editly-video-test.ts +0 -52
  48. package/src/ai-sdk/examples/fal-lipsync.ts +0 -43
  49. package/src/ai-sdk/examples/garry-tan-varg.ts +0 -61
  50. package/src/ai-sdk/examples/google-image.ts +0 -62
  51. package/src/ai-sdk/examples/higgsfield-image.ts +0 -67
  52. package/src/ai-sdk/examples/music-generation.ts +0 -19
  53. package/src/ai-sdk/examples/openai-sora.ts +0 -34
  54. package/src/ai-sdk/examples/replicate-bg-removal.ts +0 -58
  55. package/src/ai-sdk/examples/simpsons-scene.ts +0 -61
  56. package/src/ai-sdk/examples/talking-lion.ts +0 -57
  57. package/src/ai-sdk/examples/video-generation.ts +0 -41
  58. package/src/ai-sdk/examples/workflow-animated-girl.ts +0 -106
  59. package/src/ai-sdk/examples/workflow-before-after.ts +0 -118
  60. package/src/ai-sdk/examples/workflow-character-grid.ts +0 -114
  61. package/src/ai-sdk/examples/workflow-slideshow.ts +0 -165
  62. package/src/ai-sdk/providers/CONTRIBUTING.md +0 -457
  63. package/src/ai-sdk/providers/editly/editly.test.ts +0 -1522
  64. package/src/ai-sdk/providers/editly/plan.md +0 -144
  65. package/src/ai-sdk/providers/editly/rendi/editly-with-rendi-backend.test.ts +0 -344
  66. package/src/ai-sdk/providers/editly/rendi/rendi.test.ts +0 -104
  67. package/src/ai-sdk/providers/fal.test.ts +0 -214
  68. package/src/ai-sdk/storage/retry.test.ts +0 -372
  69. package/src/definitions/skills/index.ts +0 -12
  70. package/src/definitions/skills/talking-character.ts +0 -87
  71. package/src/definitions/skills/text-to-tiktok.ts +0 -97
  72. package/src/react/async-elements.test.ts +0 -621
  73. package/src/react/examples/async/example_we_want_to_test.tsx +0 -101
  74. package/src/react/examples/async/render-all.ts +0 -41
  75. package/src/react/examples/async/run-all.ts +0 -76
  76. package/src/react/examples/async/simple-with-deps.tsx +0 -23
  77. package/src/react/examples/async/simple.tsx +0 -22
  78. package/src/react/examples/async/speech-segments-voiceover.tsx +0 -116
  79. package/src/react/examples/async/speech-segments.tsx +0 -109
  80. package/src/react/examples/async/talking-head.tsx +0 -54
  81. package/src/react/examples/branching.tsx +0 -68
  82. package/src/react/examples/captions-demo.tsx +0 -37
  83. package/src/react/examples/character-video.tsx +0 -87
  84. package/src/react/examples/grid.tsx +0 -53
  85. package/src/react/examples/layouts-demo.tsx +0 -57
  86. package/src/react/examples/local-files-test.tsx +0 -19
  87. package/src/react/examples/ltx2-test.tsx +0 -25
  88. package/src/react/examples/madi.tsx +0 -63
  89. package/src/react/examples/mcmeows.tsx +0 -40
  90. package/src/react/examples/music-defaults.tsx +0 -24
  91. package/src/react/examples/music-test.tsx +0 -35
  92. package/src/react/examples/omnihuman15-react-test.tsx +0 -58
  93. package/src/react/examples/onlyfans-1m/workflow.tsx +0 -88
  94. package/src/react/examples/orange-portrait.tsx +0 -41
  95. package/src/react/examples/quickstart-test.tsx +0 -101
  96. package/src/react/examples/qwen-angles-test.tsx +0 -72
  97. package/src/react/examples/split-element-demo.tsx +0 -60
  98. package/src/react/examples/split-layout-demo.tsx +0 -60
  99. package/src/react/examples/split-math-teacher.tsx +0 -74
  100. package/src/react/examples/split.tsx +0 -41
  101. package/src/react/examples/veed-fabric-long-talking-head.tsx +0 -75
  102. package/src/react/examples/veed-fabric-react-test.tsx +0 -60
  103. package/src/react/examples/video-grid.tsx +0 -46
  104. package/src/react/layouts/layouts.test.ts +0 -345
  105. package/src/react/react.test.ts +0 -398
  106. package/src/react/renderers/cache.test.ts +0 -186
  107. package/src/react/renderers/utils.test.ts +0 -80
  108. package/src/react/resolve-context-rendi.test.ts +0 -114
  109. package/src/react/resolve-context.test.ts +0 -384
  110. package/src/react/warnings.test.ts +0 -97
  111. package/src/speech/map-segments.test.ts +0 -178
  112. package/src/speech/parse-alignment.test.ts +0 -122
  113. package/src/tests/all.test.ts +0 -509
  114. package/src/tests/index.ts +0 -33
  115. package/src/tests/unit.test.ts +0 -403
  116. package/test-nano-banana.ts +0 -47
  117. package/test-sync-v2.ts +0 -30
  118. package/test-upload-binary.ts +0 -107
  119. package/tsconfig.cli.json +0 -8
  120. package/video.tsx +0 -7
@@ -0,0 +1,46 @@
1
+ import { elevenlabs, fal } from "vargai/ai";
2
+ import {
3
+ Captions,
4
+ Clip,
5
+ Image,
6
+ Render,
7
+ render,
8
+ Speech,
9
+ Video,
10
+ } from "vargai/react";
11
+
12
+ // Garry Tan's face image
13
+ const GARRY_TAN_IMAGE =
14
+ "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRLInrQmohhXbLY10G90yT0AJJCJdArYifp-IDKUmJQlwui0tnLihiHw9OzLfLfbofr5chH2s4&s=10";
15
+
16
+ // Create speech first
17
+ const voiceover = Speech({
18
+ model: elevenlabs.speechModel("eleven_v3"),
19
+ voice: "adam",
20
+ children: "varg.ai is cool!",
21
+ });
22
+
23
+ // Animate Garry's face to talk
24
+ const animatedGarry = Video({
25
+ prompt: {
26
+ text: "man speaking naturally, subtle head movements, friendly expression",
27
+ images: [GARRY_TAN_IMAGE],
28
+ },
29
+ model: fal.videoModel("kling-v2.5"),
30
+ });
31
+
32
+ // Sync lip movements with audio
33
+ const syncedVideo = Video({
34
+ prompt: { video: animatedGarry, audio: voiceover },
35
+ model: fal.videoModel("sync-v2-pro"),
36
+ });
37
+
38
+ await render(
39
+ <Render width={1080} height={1920}>
40
+ <Clip duration={5}>{syncedVideo}</Clip>
41
+ <Captions src={voiceover} style="tiktok" color="#ffffff" withAudio />
42
+ </Render>,
43
+ { output: "output/garry-tan-varg.mp4" },
44
+ );
45
+
46
+ console.log("Done! Video saved to output/garry-tan-varg.mp4");
package/package.json CHANGED
@@ -71,7 +71,7 @@
71
71
  "zod": "^4.2.1"
72
72
  },
73
73
  "sideEffects": false,
74
- "version": "0.4.0-alpha87",
74
+ "version": "0.4.0-alpha89",
75
75
  "exports": {
76
76
  ".": "./src/index.ts",
77
77
  "./ai": "./src/ai-sdk/index.ts",