Skip to content

Instantly share code, notes, and snippets.

View SecurityQQ's full-sized avatar
πŸ’Ž
win

Alex SecurityQQ

πŸ’Ž
win
View GitHub Profile
@SecurityQQ
SecurityQQ / rabbi-kosher-full.tsx
Created March 19, 2026 19:16
Best practice: Full UGC video pipeline with varg SDK β€” talking character, lipsync, food slideshow, captions
/**
* @jsxImportSource vargai
*
* BEST PRACTICE: Full UGC video pipeline with varg SDK
*
* This script demonstrates the recommended pattern for creating talking-character
* UGC videos with the varg React engine. Key patterns shown:
*
* 1. SPEECH-FIRST WORKFLOW
* - Use a single `await Speech({ children: [...] })` call with all lines
@SecurityQQ
SecurityQQ / gateway-agent-quickstart.md
Last active March 12, 2026 01:36
varg Gateway & SDK Quick Start for AI Agents

Gateway Quick Start for AI Agents

Generate images, videos, speech, and music using a single varg_xxx API key. No per-provider keys needed.

Setup

bun install vargai @vargai/gateway ai
@SecurityQQ
SecurityQQ / varg-quickstart-claude-code.md
Last active March 10, 2026 04:34
varg + Claude Code Quickstart - Generate AI videos with natural language

Legend Biography Video Templates -- Quickstart

AI-generated biography videos in TikTok/Reels format. Each template creates a 16-second vertical video with 8 cinematic scenes, voiceover, captions, and background music -- all from a single reference photo.

Included templates:

  • legend-amy.tsx -- Amy Winehouse (warm jazz/soul, vintage 2000s aesthetic)
  • legend-kurt.tsx -- Kurt Cobain (cool grunge, 1990s blue tones)

Setup (2 minutes)

@SecurityQQ
SecurityQQ / man-showcase-skydiving.tsx
Created March 2, 2026 23:22
Varg SDK - Man skydiving showcase (volcanic island, 5-beat arc)
/** @jsxImportSource vargai */
import { Render, Clip, Image, Video, Packshot } from "vargai/react";
import { fal } from "vargai/ai";
// ─── Character Reference ─────────────────────────────────────────────────────
const CHARACTER =
"https://s3.varg.ai/uploads/images/screenshot-2026-03-02-at-21353-pm_60f009b9.png";
// ─── Models & Config ─────────────────────────────────────────────────────────
@SecurityQQ
SecurityQQ / gist:4b1851ad25e391b866cb88a85fc2ec93
Created February 24, 2026 04:18
Minimal example: async render API with SSE streaming (varg render service Phase 4)
# Async Render API β€” Minimal Example
#
# The render service now returns 202 immediately and processes in the background.
# Use polling or SSE to wait for completion.
## 1. Submit a render (202 instant response)
```bash
curl -s -X POST https://render-fqb8zg.fly.dev/api/render \
-H "Content-Type: application/json" \
@SecurityQQ
SecurityQQ / gist:390aafa12a78910e9563551eb06dd7f5
Created February 12, 2026 01:54
Varg Gateway-Centric Authentication & Billing Architecture
# Varg Gateway-Centric Authentication & Billing Architecture
## Overview
This document outlines the proposed architecture where Gateway becomes the single source of truth for user API keys, balance, pricing, and billing. App and Render services consume Gateway APIs and forward user credentials for end-to-end traceability.
---
## Current State (Problems)
/** @jsxImportSource vargai */
import { Render, Clip, Image, Video, Music, Title } from "vargai/react";
import { fal, elevenlabs } from "vargai/ai";
// ============ REFERENCES ============
const REFERENCE_IMAGE =
"https://people.com/thmb/JlHU4Q4ISt52omUbCfq3TrXFISY=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc():focal(999x0:1001x2)/sydney-sweeny-2025-emmys-091425-bd17f99cb0db44988bd9a5207a7a3ac9.jpg";
// ============ CHARACTER CONFIG ============