Helix Noise — divergence-free flow fields

Give anything the motion of a fluid

One function tells you which way things drift at any point in space — and it always moves like water: swirling, folding, never clumping. This whole page is one field, running in JavaScript — and identical in Python, Rust, and shaders.

Pick a current

…or drag anywhere to stir the current yourself.

What you're looking at

You're standing inside an invisible current that fills all of space.

Ask it about any point and it tells you which way things drift there — so you can carry smoke, water, particles, hair, or a whole crowd along that flow and it looks alive. No fluid solver, no bake, no grid to fill. The current above is the real library, running as you read.

The reason it feels like a fluid is one guarantee: it's divergence-free — nothing piles up and nothing vanishes, exactly like real, incompressible water. That's why tracers swirl and fold instead of collapsing into blobs the way ordinary noise makes them. Six qualities shape the look — how big the swirls are, which way they spin, whether it reads as calm noise or organized eddies, whether each wave is a corkscrew or a flat sheet, whether the texture is combed along an axis, and how much it shimmers as it moves — and each current above is one blend of them.

For the curious: the field is a grid-free sum of divergence-free helical waves; the six qualities are spectral slope, helicity, phase coherence, ellipticity, the polarization grain axis and flutter. Full details in the docs.

Why it's built this way

Real physics underneath, art direction on top.

Incompressible

Moves like real fluid

Nothing piles up, nothing vanishes — ink stretches and folds but never tears, and particles never clump into blobs.

divergence-free — exact to machine precision

Art-directable

Qualities you can dial

Set the size of the swirls, which way they spin, how organized the flow reads, whether each wave is a corkscrew or a flat sheet, which axis the texture combs along, and how much it shimmers. Handedness, structure and polarization are things ordinary curl-noise simply can't do.

slope · helicity · coherence · ellipticity · grain · flutter

Grid-free

Works anywhere, endless

Ask about any point in space — no grid to fill, no boundary, no tiling seam, no simulation to step. It just answers, in constant time.

one call is O(modes)

CPU & GPU

Same field on the GPU

One call drops the exact field into your shader, matching the CPU version bit-for-bit — so a million particles is no problem. Zero dependencies.

field.glsl() · WASM SIMD batches

See it move

One field, every renderer.

All 54 demos — three.js · p5 · raw WebGL2 · audio-reactive →

A historical object, sampleable

The 2026 Navier–Stokes blowup construction, as primitives.

In 2026 OpenAI published a finite-time-blowup construction for the forced Navier–Stokes equations (the paper): a vortex whose core collapses to a point on two length scales, kept alive by rings of short waves whose momentum flux supplies what the background cannot. It is built from the things this library already sells — exact curls, closed-form profiles, frozen local parameters, self-similar collapse — so version 1.12 transcribes them: the collapsing vortex with its exact heat exterior, the two-exponent collapse, shear-riding ring pulses, and two meters. Six demos, each with its receipt on screen. Independent work on an open library, not affiliated with OpenAI; nothing here renders a singularity.

The collapsing vortex
Three frames, three views, ring pulses, a live energy budget.
Grow, then die
A ring pulse from above; Rayleigh's criterion and the Orr mechanism, live.
Two families, one cone
The construction's central figure, measured on two pulse families.
The part that is a solution
The exact heat exterior, with the equation checked at every radius.
How much force a field secretly needs
A Navier–Stokes residual meter; exact solutions read zero.
The two-exponent collapse
Isotropic and anisotropic self-similar collapse, side by side.

One algorithm, four languages

The same field, wherever you build.

Pick a current in the browser above — then take that exact field to your language of choice. Every port is generated from one shared spec and checked against the JavaScript reference: for the same seed and settings they agree to ~1e-12, on a random stream that is bit-exact across languages. Not a lookalike, the same field.

Get it running

In your project in two lines.

# zero runtime deps · ESM · CJS · IIFE · TS types (or a CDN <script>)
npm install helix-noise

import { create } from "helix-noise";
const field = create({ helicity: 0.8, coherence: 0.5 });
const [ux, uy, uz] = field.sample(x, y, z);   // divergence-free, anywhere