A science system in. A live simulation and a guided reel out.
/fp-science-sim-lab
What it does
Get a small lab in one HTML page: a real system running from its real equations, with sliders, a guided tour, and readouts that put the measured value next to the formula's prediction.
Real equations, fixed timestep, sources on screen
Measured values shown next to predicted ones
Guided tour recorded as a 9:16 or 16:9 reel
You bring, you get
You bring
Bring the system you want to explore, like a pendulum, orbit, predator-prey or epidemic model, and what the viewer should discover. The equations come from a named source.
You get
You get the interactive page, which runs offline and on a phone, plus a guided reel of about 20 seconds in 9:16 (16:9 on request) with soft synthesized sound.
Perfect for
Physics class sims
Explorable explanations
Biology model demos
Science reels
Museum kiosk pages
How it works
GATHERPick the exact model and its source.
PLANModel, readouts, tour. Approve first.
BUILDSliders, presets, model and tour steps.
PREVIEWCheck that measured and predicted agree.
RECORDCapture the guided run on the real page.
DELIVERMixed reel, review grid, working page.
What you need
Runs in Claude Code or a Claude app with local code execution. Needs Node.js 18+, Python 3 with numpy, and ffmpeg. Recording loads fonts from Google Fonts, so it needs internet.
Example prompts
ORBIT LAB FOR CLASS
You bring: The system (a planet around a star) and what your students should discover
Use fp-science-sim-lab to build an orbit lab for my Year 10 class: launch speed slider, ellipse versus escape, and a 9:16 reel of the guided tour.
You get: One HTML page with sliders and a tour, the measured period shown next to Kepler's prediction, and a 20 s 9:16 reel recorded on the real page.
EPIDEMIC MODEL EXPLAINER
You bring: The model you want (SIR) and the question your readers keep asking
Use fp-science-sim-lab to build an SIR epidemic lab showing what happens to the peak when the contact rate drops, with a 16:9 reel for our health newsletter.
You get: A live page with the Kermack-McKendrick equations on screen, a time graph and phase plot, and a 16:9 reel of the tour with soft synthesized sound.
NATURE CENTRE KIOSK
You bring: A predator and prey pair and three things visitors should notice
Use fp-science-sim-lab to build a fox and rabbit predator-prey lab for our nature centre's tablet kiosk, plus a short 9:16 reel for our socials.
You get: A page that runs on a tablet or phone, offline once its fonts are cached, with sourced Lotka-Volterra equations, preset chips and a 9:16 tour reel.
Not the right fit?
Not for a narrated explainer film (use Topic Explainer (fp-topic-explainer)) or a 3D object you take apart and orbit (use Interactive 3D Teardown (fp-interactive-3d-teardown)).