alt.hn

1/22/2026 at 8:24:06 PM

Vargai/SDK – JSX for AI video, declarative programming language for Claude Code

https://varg.ai/sdk

by alex_varga

1/27/2026 at 8:12:54 PM

> I don't see the point of JSX, seems to decrease type safety

JSX compiles to typed function calls. The type safety is in the component definitions, not the syntax.

The real question is whether video composition is actually hierarchical enough to benefit from JSX. For simple clips, probably overkill. But once you're layering talking heads, captions, b-roll, and transitions, the tree structure starts making sense.

The hardest part isn't the generation. It's the orchestration. Caching, retry logic, stitching outputs from multiple providers. A declarative layer that handles that automatically is genuinely useful.

by augusteo

1/23/2026 at 10:14:16 PM

looking at the code examples i don't see the point of JSX, seems to decrease type safety and typing completion

by hokkos

1/27/2026 at 9:18:44 PM

I don't understand who this is for?

How many software engineers are also cinematographers or directors?

I know that AI will democratize these roles and everyone can be a director, but why does it make sense to use JSX as the means to do that? It would require people to learn a new skill.

There must be a better abstraction for creating video that provides the granularity of providing direction to individual objects in a scene that doesn't require someone to understand JSX.

by pedalpete

1/27/2026 at 9:52:15 PM

> I don't understand who this is for?

I think the answer is in the tagline: AI Agent writes JSX, you get videos.

Sounds like a decent approach for today. LLMs are overtrained on JSX (Claude in particular, due to Artifacts feature IIRC being originally based on React), which makes them particularly good at translating from natural language to JSX, and that in turns makes JSX a decent choice for a structured description format.

JSX is just ugly Lisp anyway, so it's not half bad a choice for something that's structured, general-purpose, flexible and well-supported by tooling.

In other words:

[You]--natural language-->[LLM]--JSX-->[Vagrai]-->Video

by TeMPOraL

1/23/2026 at 10:19:11 PM

This is very cool. And very timely. Recently had a discussion on whether we wanted to build out a new video pipeline through weavy or something more declarative like this. Surprised that there don't seem to be many similar tools. I suppose most folks either use weavy or just chain API calls. JSX is an interesting choice too.

by migsvult

1/27/2026 at 7:39:51 PM

I am building flickspeed.ai where you can build a pipeline in plain english. Let me know if you'd like to have a demo

by taherchhabra

1/27/2026 at 7:16:07 PM

> A 30-second video might take 3-5 min first render, 10 seconds cached.

How could a cached video possibly take 10 seconds? I would expect, at most, that it would cost whatever is necessary to read it from disk.

by recursive

1/27/2026 at 7:44:59 PM

If you told me this was satire, I might respond that it's too on-the-nose. I really doubt that Spotify would be happy that their logo is front-and-center here.

by m_w_

1/23/2026 at 10:59:57 PM

JSX is a convenient notation for structuring HTML that is created with React and similar frameworks. You are imposing a markup hierarchy on attributes that are not inherently hierarchical while giving examples of deceptive weight loss scam slop.

In the past I would say you should be ashamed of yourself but now I don't bother.

by henning

1/22/2026 at 9:30:01 PM

I am impressed, i might give it a try. The prices for generation of images and videos scared me a little bit. I thought they were much cheaper

by randoments

1/23/2026 at 9:46:11 PM

Maybe I misunderstand the project but I feel it'd make sense to support some local inference, i.e using arbitrary ComfyUI workflows?

by kerisi

1/24/2026 at 2:46:37 PM

I dont think i am understanding your reply

by randoments

1/27/2026 at 9:37:38 PM

It makes no sense to me to use something hierarchical like JSX for describing a time-series sequence like video

by jgbuddy

1/22/2026 at 8:51:46 PM

Looks phenomenal - do any docs exist past the marketing page? or llms.txt?

by joshcsimmons

1/22/2026 at 11:40:48 PM

Yeah, check out the GitHub and skills for ai agents

by alex_varga

1/22/2026 at 11:58:12 PM

im a product engineer. i dont like building endless workflows in comfy ui or weavy. i always wanted to do it with agent. This sdk helps.

by michail_bul

1/22/2026 at 11:34:02 PM

This turns Claude Code into Sora lol

It's similar to remotion.dev, but focuses on generative video. Uses declarative JSX to orchestrate AI calls, which makes it much more readable!

by bykhun

1/23/2026 at 10:46:07 PM

Weight loss scams have been horrible for ages, but that AI generated weight loss product example is some truly dystopian stuff.

We can build a better future with these tools, how about we build it instead of this garbage.

by TOMDM

1/23/2026 at 10:57:29 PM

Not sure if you are missing the point or hitting on the actual point.

That is an example. Given the amount of AI-generated scam content exactly like that (and worse, have you seen the ED ones?) on the internet today, creating something in the same vein seems harmless.

On the other hand, unleashing the ability to generate massive numbers of variations cheaply, and experimenting to find the optimal mixture of insecurity, fear and avarice to exploit....that's dystopian. But Madison Avenue actually got most of that figured out long ago.

by shermantanktop

1/22/2026 at 11:52:19 PM

this is super cool

by annzrva

1/23/2026 at 10:03:48 PM

slop

by magistr4te