Interactive HTML5 Physics Engines & Real-Time Simulations

Play with real-time HTML5 physics simulations, WebGL Navier-Stokes fluid shaders, cellular automata laboratories, falling-sand toys, and rigid-body pinball engines.

NanoGPT Attention Lens — Transformer Visualizer
Experiments

An interactive zero-dependency Transformer self-attention and Q/K/V interpretability sandbox in one HTML file. Type prompts or switch presets to inspect 4-head causal attention routing curves, scaled dot-product heatmaps, d_k=16 Q/K/V embedding projections, and next-token logits under live Temperature and Top-P nucleus sampling.

ShaderToy Studio — GLSL Audio-Reactive Raymarching Workbench
Experiments

A zero-dependency WebGL2/WebGL1 SDF raymarching shader IDE and procedural Web Audio FFT visualizer in one HTML file (<40KB). Features 6 iconic 3D mathematical scenes (Cyberpunk Mandelbulb, Singularity Black Hole gravitational lens, Infinite Synthwave Canyon, Liquid Chrome Metaballs, Quantum Octahedron Matrix, Bioluminescent Gyroid Reef), live GLSL editing with error diagnostics, 4 uniform sliders, and sandbox-safe 4KB HTML live wallpaper & PNG frame export.

WebGL Fluid Simulation
Experiments

A gorgeous, interactive real-time fluid simulation on GPU. Drag to swirl vibrant multi-colored smoke and liquid with customizable bloom and physics parameters.

Orbital Merge — Physics Planet Drop
Games

A tactile 2D physics planet-merging puzzle inspired by Suika Game, packed into a single zero-dependency HTML file. Aim, drag and release celestial spheres into a gravity containment well, chain-merging 11 tiers from Meteoroids up to the blazing Helios Sun before breaching the red event horizon.

Neon Cyber Pinball
Games

A zero-dependency 2D rigid-body arcade pinball machine in a single HTML file. Features an 8-substep collision solver, angular flipper impulses, reactive turbo bumpers, C-Y-B-E-R rollover jackpot lanes, drop target multipliers, 3-ball multiball lock, and procedural Web Audio synth SFX.

Falling Sand Physics Sandbox
Experiments

A classic cellular automaton particle sandbox. Draw sand, water, fire, wood and acid to watch them interact with realistic physical and chemical rules.

Procedural Cellular Automata Sandbox
Experiments

An interactive multi-rule cellular automata laboratory integrating Conway's Game of Life (B3/S23), Brian's Brain and Langton's Ant. Features brush painting, spectrum palettes, speed sliders, classic totem presets, spacebar pause and JSON/PNG state export.

Ocean Wave Simulation
Experiments

OpenAI's published GPT-5.2 demo: a real-time ocean with adjustable wind, waves and lighting, implemented in a single HTML file.

Gravity — Interactive Particle Constellation
Experiments

An interactive HTML5 Canvas particle constellation experiment where glowing multi-colored nodes drift across deep space, form dynamic geometric mesh connections within proximity thresholds, and gravitate smoothly toward mouse or touch trajectories.