Idea · Jul 21, 2026
Physics Sketch Sandbox
A browser tool where you describe physics scenes in plain English and Claude instantly generates live, interactive p5.js simulations. Tweak any element by clicking it and typing a new description.
What it would do
Type 'a bouncing red ball that loses 10% speed each bounce, and a floor that vibrates when hit' and watch it appear in real-time. Claude translates natural language into p5.js physics code, renders it in a sandboxed iframe, and lets you click any object to retype its behavior. Each edit regenerates only the affected object so the rest of the scene stays live. An export button copies the final sketch code. Great for prototyping game mechanics, exploring physics concepts interactively, or building creative coding experiments without writing a line of p5.js manually.
Key features
- Natural language to p5.js physics generation via Claude API
- Click-to-edit individual objects without losing the rest of the scene
- Live sandboxed iframe preview with hot-reload on each generation
- Export generated sketch as standalone p5.js HTML file