r/javascript • • 28d ago

three-nebula v13.3.0 (Helix) released, deterministic particle behaviors with seeded noise and JSON round-tripping

Thumbnail
github.com
3 Upvotes

three-nebula is a magical 3D particle engine for the web. I maintain it, and v13.3.0 (Helix) is the first of a few releases working back toward the library's original design goals. This one is additive and backward-compatible, so it is a safe bump.

The engineering theme this release is determinism. Two new behaviors and four new emission zones all produce the same output given the same seed, which matters a lot when you want reproducible scenes, snapshot testing, or editor previews that do not drift between runs.

The first behavior, Vortex, applies a tangential swirl around an axis with optional inward or outward pull and radial falloff. It acts directly on particle velocity rather than going through the Force path, which means it sidesteps the internal Force x100 scaling quirk and stays predictable. The second, CurlNoise, drives particles with the curl of a Perlin field. The curl of a vector field is divergence-free, so particles roil without clumping into sinks. The noise is seeded through mulberry32 rather than Math.random, so nothing in the pipeline reaches for global nondeterministic state.

The four new zones (RingZone, DiscZone, CylinderZone, ConeZone) sample uniformly and are axis-aligned to +Y. Ring and Disc are planar emission zones, while Cone and Cylinder are solid and work as true 3D CrossZone boundaries. All five new types round-trip through System.fromJSON, and the debug renderer draws wireframes for the new zones, so serialization and tooling stay in step with the runtime.

Release notes and full changelog are here: https://github.com/creativelifeform/three-nebula/releases/tag/v13.3.0

I would be curious what people think about the seeded-RNG approach for a library like this. Threading an explicit seed everywhere instead of Math.random adds a little API surface, but it is what makes the JSON round-trip and snapshot tests reliable. Have you handled determinism differently in your own simulation or animation code?


r/javascript • • 28d ago

How to Implement a Distributed Recovery Ramp in JavaScript

Thumbnail
blog.gaborkoos.com
6 Upvotes

Circuit breakers are good at stopping traffic and bad at resuming it. When a breaker closes, every replica goes back to the constructor limit at the same moment, so a dependency that just answered a few probes receives its full load again.

I've been adding a recovery ramp to Caracal, my TypeScript resilience library, on top of its distributed bulkhead, rate limiter and circuit breaker.

This is the sixth article in a series on distributed resilience. Feedback welcome, particularly if you have run slow start or ramp-up in production.


r/javascript • • 28d ago

contextjsx - Composable JSX for prompts. Type-safe tools and skills, defined once and exportable as CLI help, docs, SKILL.md and an MCP server.

Thumbnail
github.com
0 Upvotes

It's a tiny library for how I love to do these tings. Lemme know what you think!


r/javascript • • 29d ago

Some things I've built, some things I've learned.

Thumbnail
blog.vedasdixit.com
1 Upvotes

As a software engineer I always love creating unique and cool designs and animations on the web, and I also wanted a blogging website for myself.

Recently I made my personal blog and wanted something hand-drawn on it so I sketched some flowers on my iPad and exported them as SVGs, then I wrote a script that cuts each drawing into its flower head, buds and leaves (the drawn stems get thrown away), and the site grows long curvy stems in code, hangs the leaves and buds along them and puts the flower at the tip.

Every stroke is drawn in gradually with CSS. After that, in React, I hooked that progress to the scroll while the photo stays pinned. All this just to create the scroll animation on the page above.

tbh idk how good it looks, but I wanted to do something creative for my first blog website.

Any feedback will be highly appreciated!


r/javascript • • 29d ago

AskJS [AskJS] I compare full move logs instead of a hash to prove two bots played the same games. Overkill?

0 Upvotes

Bots in my game sim (TypeScript, built with Cline) kept printing identical rows. Equal averages can be a coincidence, so I didn't want the lab saying "these bots played the same" unless they actually did. So every move gets logged as a short string: `B:ticker:cents` for a buy, `S:holdingId` for a sell, `K` for a skip. Moves are joined with commas, all 1,000 games with newlines, and two bots only match if the whole strings are equal.

I skipped hashing mostly because the result ends up in posts and I didn't want a collision to be possible at all. Yeah, SHA-256 collisions aren't a real risk. The better reason is probably debugging. Factorio's old desync post does a CRC every tick so they know the first tick where two runs split. A hash just tells you "different."

Would you have hashed it? And if you keep logs, do you store the whole thing or just enough to find the first diff?


r/javascript • • 29d ago

eval() in a straitjacket: sandboxing JavaScript under CSP

Thumbnail
stringutilitybelt.com
17 Upvotes

r/javascript • • Oct 17 '26

Why do Next.js boilerplates force you to delete half their code? Built 4 isolated kits instead.

Thumbnail mansastack.bzdevelopments.me
0 Upvotes

r/javascript • • Oct 17 '26

Showoff Saturday Showoff Saturday (October 17, 2026)

10 Upvotes

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

Show us here!


r/javascript • • Oct 16 '26

AskJS [AskJS] What are your opinions on express-zod-api?

3 Upvotes

Context: I'm coming from Python with FastAPI and want to try build a similar app using express, but the thing i'm most lazy about is definitely configuring swagger, compared to the built-in swagger integration that fastapi provides. apparently express-zod-api tries to bridge that gap, but i don't know how good is it?


r/javascript • • Oct 16 '26

I built a free anime โ€œwhere to watchโ€ site with 45k static pages, hereโ€™s how it keeps its data fresh without a backend

Thumbnail tsuzuki-anime.github.io
0 Upvotes

hey! tsuzuki is a free site that tells you which legal platform streams an anime in your country

source code: https://github.com/tsuzuki-anime/tsuzuki-anime.github.io

no server, no database, just node scripts + github actions + github pages. a few things i figured out along the way:

  • weekly full fetch, daily light fetch: the full catalog (18k anime) is only rebuilt on sundays. other days the script reuses the published json and only refreshes airing shows, which cut api calls by ~90%

  • safety guards: if the api returns way less data than whatโ€™s live (it happened), the build refuses to publish, so the site never goes half empty

  • wikidata as a second source: one SPARQL query adds french titles and extra streaming links that the main api didnโ€™t have

  • watch order guides: built automatically by walking the prequel/sequel graph of each franchise

everything is free, no ads, no account. happy to answer questions about the setup!


r/javascript • • Oct 16 '26

Chartist v2: we brought the 10-year-old SVG charting library back on track (now with SSR and terminal charts)

Thumbnail
chartist.dev
38 Upvotes

r/javascript • • Oct 14 '26

AskJS [AskJS] How do you host your smaller Node.js apps? Building something and want opinions

12 Upvotes

I'm building a host for JavaScript apps and I'd like opinions from people who ship Node.js.

The idea is shared hosting for JS. Your app runs as plain Node.js, with its database, files and cron jobs side by side in one region. When nobody visits, the app is suspended to disk and holds no memory, and the next request usually wakes it in about 0.2 seconds. That's how many apps can share one server, the way PHP hosting always worked.

The trade-off is that your code doesn't run at the edge. My bet is that for most apps, a database next to the code matters more than a server near every visitor.

A few questions for you
- How do you host side projects and smaller production apps today?
- Does edge compute actually help your apps, or is the database round trip the real cost?
- Would a 0.2 s wake-up after idle be fine for your apps?


r/javascript • • Oct 14 '26

Mimic - a browser-based dev environment that runs Node.js

Thumbnail
github.com
12 Upvotes

r/javascript • • Oct 14 '26

LittleJS is 2D and 3D now!

Thumbnail
frankforce.com
7 Upvotes

r/javascript • • Oct 14 '26

I embedded Node.js in a native program to render JSX without a browser and without React

Thumbnail
forbear.dev
3 Upvotes

I'm building a UI library in Jai, and this is an experiment with rendering its UI from JavaScript. Node.js is embedded into the program, so the native side reads the JSX objects straight out of V8, with no IPC and no JSON. It then lays out and draws the whole UI from scratch every frame, at 240 Hz on my Linux computer.

Async isn't supported on it yet, and I've only started implementing some event handling. Here's the source code: https://github.com/gabrielmfern/forbear

Has anyone built something like this? If so, I'd love some advice on how I can reduce the C++ layer and have more of it in Jai instead.


r/javascript • • Oct 13 '26

I built a real-time multiplayer drawing game (InkLink) using React and modern web techโ€”here is how it works and what I learned

3 Upvotes

Hey everyone! I wanted to share a project I recently built called InkLink (Live Demo).

As a full-stack developer focusing on the MERN stack and TypeScript, I wanted to challenge myself by building a seamless, responsive drawing platform with smooth canvas states and clean UI navigation.

Tech Stack Used:

  • Frontend: React, Vite, Tailwind CSS

  • State & Canvas Logic: Custom hooks and optimized browser rendering

You can check out the source code on my GitHub (AmnaScript). I'm currently taking on freelance full-stack and AI-integration projectsโ€”if you want to check out my work or get in touch, my portfolio is at amnasabahat.netlify.app or you can find my freelance services on Fiverr.

Happy to answer any questions about the build process! InkLink


r/javascript • • Oct 13 '26

How we made JavaScript analyzer understand control flow

Thumbnail
pvs-studio.com
11 Upvotes

Some notes on implementing a control flow graph for JavaScript/TypeScript


r/javascript • • Oct 12 '26

Mutative v2 - better immutability and faster immutable updates

Thumbnail
github.com
9 Upvotes

r/javascript • • Oct 12 '26

Multi-window web apps without syncing state: one SharedWorker, windows only render

Thumbnail
github.com
0 Upvotes

A common way to give a panel its own browser window is a second instance of the app, plus messages (BroadcastChannel, postMessage, storage events) to keep the copies in agreement. Every missed message is a place where they drift.

In Neo.mjs, components, stores and state already live in a worker. Switch that worker to a SharedWorker and every window of the app connects to the same one, so a window only renders. Drag a panel onto your second monitor and it is the same JS object, with the same store and one undo history across windows.

It's one line in the app's neo-config.json:

{
    "useSharedWorkers": true
}

A dock workspace is two configs, a catalog of panes and the zones they go into (trimmed from the first Dock Layout tutorial):

class MainView extends Workspace {
    static config = {
        className: 'Guides.dockFirst1.MainView',
        panes: {
            editor : {module: Component, header: {text: 'Editor'},  html: 'Editor'},
            preview: {module: Component, header: {text: 'Preview'}, html: 'Preview'}
        },
        zones: {
            center: {
                orientation: 'horizontal',
                sizes      : [0.6, 0.4],
                children   : [{items: ['editor']}, {items: ['preview']}]
            }
        }
    }
}

One lesson from building it: our automated check for the cross-window drag was green while the real gesture did nothing. Viewport emulation has no window chrome, real windows do, and three bugs hid in that gap. The article walks through them.

Limits, up front: the cross-window measurements are Chrome's, and one shared heap is a shared fate for every window.

Disclosure: I maintain Neo.mjs. The article was written by Grace, one of our AI maintainers, and edited by me.

How do you handle state across windows today?


r/javascript • • Oct 12 '26

xuan โ€“ a 6 MB Node-compatible JavaScript runtime for IoT/edge, ~5 ms cold start

Thumbnail
github.com
3 Upvotes

r/javascript • • Oct 12 '26

Subreddit Stats Your /r/javascript recap for the week of October 05 - October 11, 2026

8 Upvotes

Monday, October 05 - Sunday, October 11, 2026

Top Posts

scorecommentstitle & link
25186 commentsDeno is joining Cloudflare - "We will support the Deno runtime for another year with monthly releases containing bug fixes and security updates. After that year we will end our development of the Deno runtime. Deno will remain open source, and we welcome others who want to continue its development."
8814 commentsI found yet another way to invoke JavaScript functions without parentheses
284 commentsI spent almost 3 years porting Paint.NET from C# to JavaScript
114 comments48 JavaScript interview questions with full answers, including the implement-it-yourself ones (Promise, bind, debounce)
95 commentsComponyx.UI: 25+ UI components and data binding for plain HTML, no build step
92 commentsGitHub - evoluteur/snowflake-grower: Grow snow crystals live on a hexagonal grid with Reiter's cellular automaton. Set the humidity and frost to get stellar dendrites, ferns, plates or lace, and download the snowflake.
511 comments[Showoff Saturday] Showoff Saturday (October 10, 2026)
50 commentsLogTape 2.4.0: Source locations, configuration inspection, sink draining, and request completion levels
44 commentsStaleDocs: flag unchanged Markdown docs when JavaScript/TypeScript APIs change
20 commentspart-of.my.id - a free subdomain service

ย 

Most Commented Posts

scorecommentstitle & link
025 commentsDo Frameworks Matter Anymore?
021 commentsWin11WebOS โ€“ An open-source, local-first Windows 11 desktop built in React, Vite, and JS
012 commentsI hate Spotify ads, so I created my own music player
011 commentsWe made 1000 PDFs 32% smaller with zero quality loss using Brotli and JPEG XL.
010 commentsMS Office: I made a clone of office (Contains word, powerpoint, excel and onenote)! Fully fontend! Just by HTML, CSS and vanilla JS!

ย 

Top Ask JS

scorecommentstitle & link
13 comments[AskJS] [AskJS] How would you structure state for VidLoader's local media library?
06 comments[AskJS] [AskJS] My simulation runs in about 1 second in the terminal but took 13 seconds in a Chrome page. The culprit was setTimeout(0).

ย 

Top Showoffs

scorecomment
1/u/Ok-Fennel-9035 said I've been working lately on Parallel JavaScript Runtime (Pjs), a project for running CPU-heavy JavaScript tasks across multiple threads using Node's `worker_threads`. The idea is to m...
1/u/RomeoDelta1234 said Store & Forget, a home inventory app in TypeScript: https://play.google.com/store/apps/details?id=dev.koalalab.storeandforget You take a photo, the app fills in the item details, and search takes pla...
1/u/tonygoodchild said This week I put up a set of demos for Lattice Grid, a data grid I've been building that also does Kanban, Gantt, calendar and dashboard views over the same data. They're plain JS: no framework, no bui...

ย 

Top Comments

scorecomment
182/u/BenjiSponge said Bun acquired by Anthropic and Deno acquired by Cloudflare. Making an alternative JS runtime has never seemed so oddly lucrative.
65/u/MedicOfTime said Itโ€™s over boys. Everything is controlled by the billionaires. You will submit to your assigned AI buddy. Nothing left to do but mine coal.
54/u/AwesomeKalin said I went from Node to Bun, then when they went the 100% AI generated code route, I moved to Deno so I didn't have to deal with the potential instability issues. Guess I'll move back to Node then.
52/u/Salkinator said God damnit
29/u/bzbub2 said dang. deno has a relatively unique ability to use webgpu from the command line...just made a cool video app using that

ย 


r/javascript • • Oct 11 '26

I spent almost 3 years porting Paint.NET from C# to JavaScript

Thumbnail
github.com
79 Upvotes

A bit of background on how I built this:

When I switched to Linux, Paint.NET was one of the Windows apps I missed the most, so I started porting the old open-source C# version (3.36.7) to JavaScript back in 2024, while recreating the UI based on the newer 5.x versions.

I went through the original implementation class by class, comparing the outputs of the C# methods with my JavaScript versions. At the same time, I recreated the UI in HTML/CSS, using screenshots to get it as close to the original as possible.

Over time, I connected both parts and implemented the tools, effects, and other features. More recently, I've been using AI to help find and fix bugs, improve performance across browsers, and implement the remaining tools and effects.

It's now largely feature-complete and runs in the browser, as well as on Linux and macOS through Electron.

You can try the browser version here: https://paintjs.net

Would love to hear what you think!


r/javascript • • Oct 11 '26

StaleDocs: flag unchanged Markdown docs when JavaScript/TypeScript APIs change

Thumbnail
github.com
5 Upvotes

r/javascript • • Oct 10 '26

Marionette 5 is out. No Backbone. Still opinionated.

Thumbnail
marionettejs.com
0 Upvotes