// curated js game code · links · snippets · tools · media · start building
live ⌨️ shortcuts ⌘K palette 83 snippets 34 media

⌨ Keyboard Shortcuts

Focus snippet search/
Command paletteCtrl K
Random snippetR
Switch tabs1 2 3 4
Roll dice (tools tab)Space
Clear search / closeEsc
This overlay?
↑↓ navigate · Enter open/copy · Esc close
0snippets
7languages
0visible
10tools
uses
0deps
📐 Easing Visualizer
🌊 Perlin Noise Preview
freq: 0.015
octaves: 4
mode
🎨 Game Palette Generator
click swatch to copy hex ·
🎲 Dice Roller
choose a die
📐Vector Playground
drag the vector tips · watch the math update live
💥Screenshake Designer
10
8
.92
💢Collision Lab
drag both shapes · watch MTV resolve
🎲RNG Distribution Inspector
1000
Hex Grid
click a hex · see axial coords · neighbours highlighted
🎮Gamefeel Composer
8
5
8
12
0resources
0categories
0visible
12methods
3tiers
⚡⚡⚡sorted by impact
PixiJS+Three.js
UI, HUD and 2D overlays in PixiJS — 3D world in Three.js. Used by many production games. Best of both renderers.
Phaser 3+Custom GLSL
Phaser handles game logic, cameras, input. Inject custom WebGL shaders for water, lighting, CRT effects. Dramatic visual upgrade.
Babylon.js+WebXR
Babylon has the best first-party WebXR support. Immersive VR/AR experiences in the browser — runs on Quest, phones, desktop.
Three.js+Rapier (WASM)
Three.js renders, Rapier handles physics at near-native speed via WebAssembly. Best 3D physics combo in 2025/2026.
Vanilla Canvas+ZzFX+Roadroller
The js13k stack. Zero dependencies, everything hand-rolled. Brutal constraints → brilliant creative solutions. Sub-13KB and ships.
Excalibur+TypeScript
Full type safety + a batteries-included 2D engine. Great for teams. ECS, scenes, input manager — feels like a proper engine.

⚡ WebGPU

Replaces WebGL — compute shaders, 10–100× GPU throughput. Babylon.js and Three.js already support it. The biggest API shift since WebGL.

🥽 WebXR

First-class VR/AR in the browser. Babylon.js leads. Runs on Meta Quest, Apple Vision Pro (experimental), Android AR. Zero install.

🧩 WebAssembly

Ship Rust/C++ physics, pathfinding or AI as WASM modules. Near-native speed in the browser. Rapier (Rust physics) is the gold standard.

🌐 PWA + offline

Service Workers + Web App Manifest = installable, offline-capable games. Feels native. No App Store. Instant update.

🤝 WebRTC multiplayer

Peer-to-peer via WebRTC data channels. Sub-50ms latency for local multiplayer. No server needed for small lobbies.

🎨 WebGPU compute shaders

GPU-accelerated particle systems, fluid simulation, ray-marching — all running in the browser. Three.js r165+ has compute support.