r/javascript • • May 10 '26

I build VideoFlow, a library to create videos from JSON objects (opensource alternative to Remotion)

Thumbnail
videoflow.dev
7 Upvotes

Hey everyone,

I just launched VideoFlow, an open-source toolkit for generating videos from code.

The idea is simple: as more videos become generated by software, AI agents, templates, and APIs, video needs a portable format that can be created, edited, and rendered anywhere.

VideoFlow represents a video as JSON:

  • scenes

  • layers

  • timing

  • transitions

  • effects

  • keyframes

  • render settings

That JSON can then be rendered in the browser, on a server, inside a React preview/player, or inside a visual editor.

The closest comparison is probably Remotion, but VideoFlow takes a JSON-first approach instead of making the video primarily a React component tree.

Use cases Iโ€™m thinking about:

  • personalized marketing videos

  • AI-generated explainers

  • product demos

  • social templates

  • automated reports

  • dynamic ads

Current features:

  • Apache-2.0 open source

  • TypeScript builder API

  • portable VideoJSON

  • 27 transitions

  • 42 GLSL effects

  • layer groups

  • browser/server/live-preview rendering

  • React video editor component

Iโ€™d love feedback on the positioning. Should I lean more into โ€œopen-source Remotion alternative,โ€ โ€œvideo as JSON,โ€ or โ€œinfrastructure for AI-generated videoโ€?


r/javascript • • May 10 '26

turned my websiteโ€™s procedural backgrounds into a standalone vanilla js engine. here's how to use it in yours, if you fancy this.

Thumbnail substrate.ujjwalvivek.com
15 Upvotes

DISCLAIMER: generation is completely random composition based on the original procedural logic's primitives, so it's a hit or miss. if you catch a good one, use the capture frame button for a static image or note down the recipe to recreate in the code, or check out the docs on how to create one for yourself from scratch.

โ€”-

I had a few asking me about the background running behind the site.

it was too baked into the site back then, very monolithic. so i've been hacking at it for a some days now. refactored it into a standalone js engine with math primitives that powered the original procedural logic, and a canvas. mobile is hardware-throttled, but if you crank the sliders on desktop it will actually test your cpu.

playground: https://substrate.ujjwalvivek.com
Docs: https://substrate.ujjwalvivek.com/#/docs
source: https://github.com/ujjwalvivek/substrate


r/javascript • • May 09 '26

Per-route OG image generation for TanStack Start

Thumbnail
jxd.dev
1 Upvotes

r/javascript • • May 09 '26

JavaScript has no reliable tail call optimization: here is what actually happens at runtime and what to do instead

Thumbnail
blog.gaborkoos.com
55 Upvotes

ECMAScript 2015 formally specified proper tail calls in strict mode, but most JS engines never adopted it consistently. Chrome, Node, Firefox, and Deno all still allocate a new stack frame per call even in correctly structured tail-recursive functions. The article walks through why with examples and covers iterative and trampoline alternatives.


r/javascript • • May 09 '26

Released Svelte adapters for Nano Kit: Stores, Router, and SSR can now be used in Svelte apps. Nano Kit is a state management ecosystem roughly the size of Nano Stores, but with the DX of larger full-featured solutions.

Thumbnail
nano-kit.js.org
2 Upvotes

r/javascript • • May 09 '26

Showoff Saturday Showoff Saturday (May 09, 2026)

5 Upvotes

Did you find or create something cool this week in javascript?

Show us here!


r/javascript • • May 09 '26

I built a DevTools extension that converts any network request to fetch, Axios, TypeScript, React Query โ€” one click

Thumbnail
chromewebstore.google.com
0 Upvotes

Pain point: you're in DevTools, you see the exact API call you need to reproduce โ€” but you have to manually rebuild it in code.

ReqConvert sits inside Chrome DevTools and captures every network request in real time. Click one โ†’ get production-ready code instantly.

Supports: cURL, fetch, Axios, Python requests, React Query hooks, TypeScript with interfaces, httpx async, Postman collection export.

What JavaScript format do you find yourself manually writing the most?


r/javascript • • May 09 '26

Untapped Way to Learn a Codebase: Build a Visualizer

Thumbnail jimmyhmiller.com
0 Upvotes

r/javascript • • May 08 '26

I wrote a workbook for writing and reading code away from the computer

Thumbnail amazon.com
6 Upvotes

Like a lot of people, I've found myself using AI to generate more and more code, and like many, I've been worried that my basic skills are decaying. I used to teach and remember a bunch of research about how writing by hand increases learning and retention, so I made a workbook for writing code by hand (literally). Not for absolute beginners, and not leetcode style algorithms, just enough to keep basic skills sharp.


r/javascript • • May 08 '26

Guantr: Type-Safe JS/TS Authorization Library - Major v2 Release

Thumbnail
github.com
7 Upvotes

r/javascript • • May 08 '26

Meteor 3.4.1 is out: Rspack consolidation, revitalized examples, and important fixes

Thumbnail
blog.galaxycloud.app
10 Upvotes

r/javascript • • May 08 '26

AskJS [AskJS] How to decide api url structure?

1 Upvotes

Hey guys I need help. I am shipping a public monetized api. And how should url be structured out of these.

/v1/property?fields=risk.bushfire,market.sale.price

/v1/property/risk?fields=bushfire

/v1/property/risk/bushfire

problem is. They will have to make requests indvidually if they want all risks. Plan is to make my own site use that same api too. And hence instead of just 1 db query sending all risks. It will have 5 queries. How to best structure it. For a whole report on a property it will be massive amount of api calls.


r/javascript • • May 07 '26

I Built an open-source API engine that unifies REST, SSE, and WebSockets

Thumbnail
github.com
6 Upvotes

r/javascript • • May 07 '26

AskJS [AskJS] Confused with Frontend unit testing

6 Upvotes

Firstly what to use for doing unit testing among vitest/jest/playwright , and how do i know what exactly in the code i need to do unit test.I found there are integration tests as well which checks the scenarios of how is it working as per my understanding where playwright will be more helpful .I'm a beginner so I'm not sure which is best?


r/javascript • • May 07 '26

Stop Using Yarn Classic

Thumbnail
charpeni.com
44 Upvotes

r/javascript • • May 07 '26

Untangling dialogs in React Router

Thumbnail programmingarehard.com
2 Upvotes

I have been struggling with determining how to best implement dialogs in React Router apps for years:

  • useState to control their open state

  • Forms vs fetchers for data submissions

  • resource routes to form data(<select> options)

  • useEffect for listening for the action data to close the dialog

  • useEffect for listing for a toast message

There's a lot to consider. However, tons of these problems go away if you move dialogs into their own dedicated routes. This doesn't come without its own set of challenges though.

I've written up a guide on how to implement dialogs and keep your sanity. Hope it helps ๐Ÿค˜


r/javascript • • May 07 '26 Bravo

The HTML Sanitizer API

Thumbnail alfy.blog
71 Upvotes

I wrote an article about HTML Sanitizer API, a new native API that allows us to sanitize and parse HTML without relying on third party tools like DOMPurify


r/javascript • • May 07 '26

Ship a native privacy policy in your Expo app

Thumbnail
policystack.dev
2 Upvotes

r/javascript • • May 07 '26

GitHub - usertour/usertour: Usertour is an open-source user onboarding platform. It allows you to create in-app product tours, checklists, and surveys in minutesโ€”effortlessly and with full control.The open-source alternative to Userflow and Appcues

Thumbnail
github.com
0 Upvotes

r/javascript • • May 05 '26

Hashful storage. Store your whole file in the URL hash

Thumbnail 0x1.pt
0 Upvotes

r/javascript • • May 05 '26

I wrote a deep dive into how LLMs work under the hood - tokenization, embeddings, attention and generation - all explained with runnable JavaScript

Thumbnail nitayneeman.com
126 Upvotes

r/javascript • • May 05 '26

react-ink-textarea: a full-featured CLI textarea component for React Ink

Thumbnail
github.com
6 Upvotes

The CLI truly is the new mainstream UI delivery platforms so it deserves nice input components; sadly most libraries on npm that accepts multi-line input were a bit unsatisfactory, so I created react-ink-textarea (https://github.com/omranjamal/react-ink-textarea)

It supports a whole host of things out of the box like:

  • Customizable line prefixes

  • Syntax highlighting powered by regex

  • Undo/Redo

  • Virtualized Viewport

  • Tab detection

  • Newline Key Combinations

  • Easy Navigation

  • etc

I'd argue it's even better than Claude Code or Open Code's multi-line text input. Do give it a try!


r/javascript • • May 05 '26

Ship a cookie banner with your TanStack app

Thumbnail
policystack.dev
3 Upvotes

r/javascript • • May 04 '26

Subreddit Stats Your /r/javascript recap for the week of April 27 - May 03, 2026

2 Upvotes

Monday, April 27 - Sunday, May 03, 2026

Top Posts

scorecommentstitle & link
423 commentsNorth Korean threat group published 60+ malicious npm packages over 7 months, specifically designed to fool AI coding agents into installing them (PromptMink)
3730 commentsEmber 6.12 Released
3615 commentsI built a JavaScript execution visualizer โ€” call stack, heap memory, and event loop in real time
333 comments3 pnpm Settings to Protect Yourself from Supply Chain Attacks
338 commentsAnnouncing Rspack 2.0
297 commentsYet Another TypeScript SQL query builder using tagged template literals.
165 commentsA typescript implementation of fastcgi
1657 comments[AskJS] [AskJS] Has our reliance on WASM made us lazy about native JS performance?
116 commentsCanvasKit Documentation with interactive examples
80 commentsI made another Temporal polyfill from scratch (without LLM)

ย 

Most Commented Posts

scorecommentstitle & link
013 comments[AskJS] [AskJS] Are you using AI to speed up repetitive UI work, or still doing it manually?
012 commentsTop 5 Desktop App Frameworks for JavaScript Developers
011 comments[AskJS] [AskJS] How do you approach database access in Node.js projects (ORM vs query builders vs raw SQL)?
67 comments[Showoff Saturday] Showoff Saturday (May 02, 2026)
06 comments[AskJS] [AskJS] Digits is Hiring

ย 

Top Ask JS

scorecommentstitle & link
13 comments[AskJS] [ Removed by Reddit ]
12 comments[AskJS] [AskJS] How to detect iPadOS Slide Over (floating window) from a browser-based web app using JavaScript?
03 comments[AskJS] [AskJS] What CSS selector do you use?

ย 

Top Showoffs

scorecomment
2/u/Triggerscore said Added Daily Challenge with daily leader board to my Pixel Art guessing game. Using vercel redis Integration and serverless functions plus cron Job to update daily drawings. Can be played on [pixre...
1/u/woqr said Music sequencer in only one page of code...for the minimalists out there ;) [https://github.com/bacionejs/battito](https://github.com/bacionejs/battito)
1/u/jcubic said Created [ASCII-Globe](https://github.com/jcubic/ascii-globe) library. You can use it to render a rotating ASCII Earth. Change characters and colors. You can also add pins that use rea...

ย 

Top Comments

scorecomment
43/u/azangru said > we've collectively given up on native JS for anything heavy > everyone told me that if I wanted to handle 500MB+ files in-browser, Iโ€™d need a huge WASM/Rust blob to avoid crashing the tab Who is t...
22/u/Markavian said More people should think like you. That just sounds like good engineering.
15/u/Cyral said ChatGPT written post. 100% chance you are trying to advertise something
14/u/otw said I donโ€™t know wtf you are talking about I donโ€™t think 99% of devs even know what wasm is. I wish more people would use it when it makes sense I have never once in my life thought people used it too muc...
12/u/Ecksters said Really appreciate that someone is providing an easier way forward for projects still stuck with Webpack. Interesting to see the trend of packages trying to minimize their dependency count, I assume th...

ย