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.
- package/garry-tan-varg.tsx +46 -0
- package/package.json +1 -1
- package/src/cli/commands/init.tsx +135 -416
- package/.size-limit.json +0 -8
- package/.test-hooks.ts +0 -5
- package/CLAUDE.md +0 -135
- package/CONTRIBUTING.md +0 -150
- package/SKILLS.md +0 -173
- package/STRUCTURE.md +0 -92
- package/biome.json +0 -39
- package/commitlint.config.js +0 -22
- package/docs/index.html +0 -1130
- package/docs/prompting.md +0 -326
- package/docs/react.md +0 -837
- package/docs/sdk.md +0 -812
- package/examples/grok-imagine-ai-sdk.tsx +0 -207
- package/examples/grok-imagine-test.tsx +0 -155
- package/ffmpeg/CLAUDE.md +0 -68
- package/hello.tsx +0 -35
- package/launch-videos/06-kawaii-fruits.tsx +0 -93
- package/launch-videos/07-ugc-weight-loss.tsx +0 -133
- package/launch-videos/08-talking-head-varg.tsx +0 -107
- package/launch-videos/09-girl.tsx +0 -160
- package/launch-videos/README.md +0 -42
- package/pipeline/cookbooks/SKILL.md +0 -285
- package/pipeline/cookbooks/remotion-video.md +0 -585
- package/pipeline/cookbooks/round-video-character.md +0 -337
- package/pipeline/cookbooks/scripts/animate-frames-parallel.ts +0 -84
- package/pipeline/cookbooks/scripts/combine-scenes.sh +0 -53
- package/pipeline/cookbooks/scripts/generate-frames-parallel.ts +0 -99
- package/pipeline/cookbooks/scripts/still-to-video.sh +0 -37
- package/pipeline/cookbooks/talking-character.md +0 -59
- package/pipeline/cookbooks/text-to-tiktok.md +0 -669
- package/pipeline/cookbooks/trendwatching.md +0 -156
- package/plan.md +0 -281
- package/scripts/.gitkeep +0 -0
- package/skills/varg-video-generation/SKILL.md +0 -224
- package/skills/varg-video-generation/references/templates.md +0 -380
- package/skills/varg-video-generation/scripts/setup.ts +0 -259
- package/src/ai-sdk/examples/cached-generation.ts +0 -53
- package/src/ai-sdk/examples/duet-scene-4.ts +0 -53
- package/src/ai-sdk/examples/duet-scene-5-audio.ts +0 -32
- package/src/ai-sdk/examples/duet-video.ts +0 -56
- package/src/ai-sdk/examples/editly-composition.ts +0 -63
- package/src/ai-sdk/examples/editly-test.ts +0 -57
- package/src/ai-sdk/examples/editly-video-test.ts +0 -52
- package/src/ai-sdk/examples/fal-lipsync.ts +0 -43
- package/src/ai-sdk/examples/garry-tan-varg.ts +0 -61
- package/src/ai-sdk/examples/google-image.ts +0 -62
- package/src/ai-sdk/examples/higgsfield-image.ts +0 -67
- package/src/ai-sdk/examples/music-generation.ts +0 -19
- package/src/ai-sdk/examples/openai-sora.ts +0 -34
- package/src/ai-sdk/examples/replicate-bg-removal.ts +0 -58
- package/src/ai-sdk/examples/simpsons-scene.ts +0 -61
- package/src/ai-sdk/examples/talking-lion.ts +0 -57
- package/src/ai-sdk/examples/video-generation.ts +0 -41
- package/src/ai-sdk/examples/workflow-animated-girl.ts +0 -106
- package/src/ai-sdk/examples/workflow-before-after.ts +0 -118
- package/src/ai-sdk/examples/workflow-character-grid.ts +0 -114
- package/src/ai-sdk/examples/workflow-slideshow.ts +0 -165
- package/src/ai-sdk/providers/CONTRIBUTING.md +0 -457
- package/src/ai-sdk/providers/editly/editly.test.ts +0 -1522
- package/src/ai-sdk/providers/editly/plan.md +0 -144
- package/src/ai-sdk/providers/editly/rendi/editly-with-rendi-backend.test.ts +0 -344
- package/src/ai-sdk/providers/editly/rendi/rendi.test.ts +0 -104
- package/src/ai-sdk/providers/fal.test.ts +0 -214
- package/src/ai-sdk/storage/retry.test.ts +0 -372
- package/src/definitions/skills/index.ts +0 -12
- package/src/definitions/skills/talking-character.ts +0 -87
- package/src/definitions/skills/text-to-tiktok.ts +0 -97
- package/src/react/async-elements.test.ts +0 -621
- package/src/react/examples/async/example_we_want_to_test.tsx +0 -101
- package/src/react/examples/async/render-all.ts +0 -41
- package/src/react/examples/async/run-all.ts +0 -76
- package/src/react/examples/async/simple-with-deps.tsx +0 -23
- package/src/react/examples/async/simple.tsx +0 -22
- package/src/react/examples/async/speech-segments-voiceover.tsx +0 -116
- package/src/react/examples/async/speech-segments.tsx +0 -109
- package/src/react/examples/async/talking-head.tsx +0 -54
- package/src/react/examples/branching.tsx +0 -68
- package/src/react/examples/captions-demo.tsx +0 -37
- package/src/react/examples/character-video.tsx +0 -87
- package/src/react/examples/grid.tsx +0 -53
- package/src/react/examples/layouts-demo.tsx +0 -57
- package/src/react/examples/local-files-test.tsx +0 -19
- package/src/react/examples/ltx2-test.tsx +0 -25
- package/src/react/examples/madi.tsx +0 -63
- package/src/react/examples/mcmeows.tsx +0 -40
- package/src/react/examples/music-defaults.tsx +0 -24
- package/src/react/examples/music-test.tsx +0 -35
- package/src/react/examples/omnihuman15-react-test.tsx +0 -58
- package/src/react/examples/onlyfans-1m/workflow.tsx +0 -88
- package/src/react/examples/orange-portrait.tsx +0 -41
- package/src/react/examples/quickstart-test.tsx +0 -101
- package/src/react/examples/qwen-angles-test.tsx +0 -72
- package/src/react/examples/split-element-demo.tsx +0 -60
- package/src/react/examples/split-layout-demo.tsx +0 -60
- package/src/react/examples/split-math-teacher.tsx +0 -74
- package/src/react/examples/split.tsx +0 -41
- package/src/react/examples/veed-fabric-long-talking-head.tsx +0 -75
- package/src/react/examples/veed-fabric-react-test.tsx +0 -60
- package/src/react/examples/video-grid.tsx +0 -46
- package/src/react/layouts/layouts.test.ts +0 -345
- package/src/react/react.test.ts +0 -398
- package/src/react/renderers/cache.test.ts +0 -186
- package/src/react/renderers/utils.test.ts +0 -80
- package/src/react/resolve-context-rendi.test.ts +0 -114
- package/src/react/resolve-context.test.ts +0 -384
- package/src/react/warnings.test.ts +0 -97
- package/src/speech/map-segments.test.ts +0 -178
- package/src/speech/parse-alignment.test.ts +0 -122
- package/src/tests/all.test.ts +0 -509
- package/src/tests/index.ts +0 -33
- package/src/tests/unit.test.ts +0 -403
- package/test-nano-banana.ts +0 -47
- package/test-sync-v2.ts +0 -30
- package/test-upload-binary.ts +0 -107
- package/tsconfig.cli.json +0 -8
- 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");
|