vargai 0.4.0-alpha88 → 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 (119) 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/.size-limit.json +0 -8
  5. package/.test-hooks.ts +0 -5
  6. package/CLAUDE.md +0 -135
  7. package/CONTRIBUTING.md +0 -150
  8. package/SKILLS.md +0 -173
  9. package/STRUCTURE.md +0 -92
  10. package/biome.json +0 -39
  11. package/commitlint.config.js +0 -22
  12. package/docs/index.html +0 -1130
  13. package/docs/prompting.md +0 -326
  14. package/docs/react.md +0 -837
  15. package/docs/sdk.md +0 -812
  16. package/examples/grok-imagine-ai-sdk.tsx +0 -207
  17. package/examples/grok-imagine-test.tsx +0 -155
  18. package/ffmpeg/CLAUDE.md +0 -68
  19. package/hello.tsx +0 -35
  20. package/launch-videos/06-kawaii-fruits.tsx +0 -93
  21. package/launch-videos/07-ugc-weight-loss.tsx +0 -133
  22. package/launch-videos/08-talking-head-varg.tsx +0 -107
  23. package/launch-videos/09-girl.tsx +0 -160
  24. package/launch-videos/README.md +0 -42
  25. package/pipeline/cookbooks/SKILL.md +0 -285
  26. package/pipeline/cookbooks/remotion-video.md +0 -585
  27. package/pipeline/cookbooks/round-video-character.md +0 -337
  28. package/pipeline/cookbooks/scripts/animate-frames-parallel.ts +0 -84
  29. package/pipeline/cookbooks/scripts/combine-scenes.sh +0 -53
  30. package/pipeline/cookbooks/scripts/generate-frames-parallel.ts +0 -99
  31. package/pipeline/cookbooks/scripts/still-to-video.sh +0 -37
  32. package/pipeline/cookbooks/talking-character.md +0 -59
  33. package/pipeline/cookbooks/text-to-tiktok.md +0 -669
  34. package/pipeline/cookbooks/trendwatching.md +0 -156
  35. package/plan.md +0 -281
  36. package/scripts/.gitkeep +0 -0
  37. package/skills/varg-video-generation/SKILL.md +0 -224
  38. package/skills/varg-video-generation/references/templates.md +0 -380
  39. package/skills/varg-video-generation/scripts/setup.ts +0 -259
  40. package/src/ai-sdk/examples/cached-generation.ts +0 -53
  41. package/src/ai-sdk/examples/duet-scene-4.ts +0 -53
  42. package/src/ai-sdk/examples/duet-scene-5-audio.ts +0 -32
  43. package/src/ai-sdk/examples/duet-video.ts +0 -56
  44. package/src/ai-sdk/examples/editly-composition.ts +0 -63
  45. package/src/ai-sdk/examples/editly-test.ts +0 -57
  46. package/src/ai-sdk/examples/editly-video-test.ts +0 -52
  47. package/src/ai-sdk/examples/fal-lipsync.ts +0 -43
  48. package/src/ai-sdk/examples/garry-tan-varg.ts +0 -61
  49. package/src/ai-sdk/examples/google-image.ts +0 -62
  50. package/src/ai-sdk/examples/higgsfield-image.ts +0 -67
  51. package/src/ai-sdk/examples/music-generation.ts +0 -19
  52. package/src/ai-sdk/examples/openai-sora.ts +0 -34
  53. package/src/ai-sdk/examples/replicate-bg-removal.ts +0 -58
  54. package/src/ai-sdk/examples/simpsons-scene.ts +0 -61
  55. package/src/ai-sdk/examples/talking-lion.ts +0 -57
  56. package/src/ai-sdk/examples/video-generation.ts +0 -41
  57. package/src/ai-sdk/examples/workflow-animated-girl.ts +0 -106
  58. package/src/ai-sdk/examples/workflow-before-after.ts +0 -118
  59. package/src/ai-sdk/examples/workflow-character-grid.ts +0 -114
  60. package/src/ai-sdk/examples/workflow-slideshow.ts +0 -165
  61. package/src/ai-sdk/providers/CONTRIBUTING.md +0 -457
  62. package/src/ai-sdk/providers/editly/editly.test.ts +0 -1522
  63. package/src/ai-sdk/providers/editly/plan.md +0 -144
  64. package/src/ai-sdk/providers/editly/rendi/editly-with-rendi-backend.test.ts +0 -344
  65. package/src/ai-sdk/providers/editly/rendi/rendi.test.ts +0 -104
  66. package/src/ai-sdk/providers/fal.test.ts +0 -214
  67. package/src/ai-sdk/storage/retry.test.ts +0 -372
  68. package/src/definitions/skills/index.ts +0 -12
  69. package/src/definitions/skills/talking-character.ts +0 -87
  70. package/src/definitions/skills/text-to-tiktok.ts +0 -97
  71. package/src/react/async-elements.test.ts +0 -621
  72. package/src/react/examples/async/example_we_want_to_test.tsx +0 -101
  73. package/src/react/examples/async/render-all.ts +0 -41
  74. package/src/react/examples/async/run-all.ts +0 -76
  75. package/src/react/examples/async/simple-with-deps.tsx +0 -23
  76. package/src/react/examples/async/simple.tsx +0 -22
  77. package/src/react/examples/async/speech-segments-voiceover.tsx +0 -116
  78. package/src/react/examples/async/speech-segments.tsx +0 -109
  79. package/src/react/examples/async/talking-head.tsx +0 -54
  80. package/src/react/examples/branching.tsx +0 -68
  81. package/src/react/examples/captions-demo.tsx +0 -37
  82. package/src/react/examples/character-video.tsx +0 -87
  83. package/src/react/examples/grid.tsx +0 -53
  84. package/src/react/examples/layouts-demo.tsx +0 -57
  85. package/src/react/examples/local-files-test.tsx +0 -19
  86. package/src/react/examples/ltx2-test.tsx +0 -25
  87. package/src/react/examples/madi.tsx +0 -63
  88. package/src/react/examples/mcmeows.tsx +0 -40
  89. package/src/react/examples/music-defaults.tsx +0 -24
  90. package/src/react/examples/music-test.tsx +0 -35
  91. package/src/react/examples/omnihuman15-react-test.tsx +0 -58
  92. package/src/react/examples/onlyfans-1m/workflow.tsx +0 -88
  93. package/src/react/examples/orange-portrait.tsx +0 -41
  94. package/src/react/examples/quickstart-test.tsx +0 -101
  95. package/src/react/examples/qwen-angles-test.tsx +0 -72
  96. package/src/react/examples/split-element-demo.tsx +0 -60
  97. package/src/react/examples/split-layout-demo.tsx +0 -60
  98. package/src/react/examples/split-math-teacher.tsx +0 -74
  99. package/src/react/examples/split.tsx +0 -41
  100. package/src/react/examples/veed-fabric-long-talking-head.tsx +0 -75
  101. package/src/react/examples/veed-fabric-react-test.tsx +0 -60
  102. package/src/react/examples/video-grid.tsx +0 -46
  103. package/src/react/layouts/layouts.test.ts +0 -345
  104. package/src/react/react.test.ts +0 -398
  105. package/src/react/renderers/cache.test.ts +0 -186
  106. package/src/react/renderers/utils.test.ts +0 -80
  107. package/src/react/resolve-context-rendi.test.ts +0 -114
  108. package/src/react/resolve-context.test.ts +0 -384
  109. package/src/react/warnings.test.ts +0 -97
  110. package/src/speech/map-segments.test.ts +0 -178
  111. package/src/speech/parse-alignment.test.ts +0 -122
  112. package/src/tests/all.test.ts +0 -509
  113. package/src/tests/index.ts +0 -33
  114. package/src/tests/unit.test.ts +0 -403
  115. package/test-nano-banana.ts +0 -47
  116. package/test-sync-v2.ts +0 -30
  117. package/test-upload-binary.ts +0 -107
  118. package/tsconfig.cli.json +0 -8
  119. 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-alpha88",
74
+ "version": "0.4.0-alpha89",
75
75
  "exports": {
76
76
  ".": "./src/index.ts",
77
77
  "./ai": "./src/ai-sdk/index.ts",