A collection of four classical mechanics simulations built with SceneryStack. Explore oscillations, coupled systems, and chaotic dynamics through real-time, physics-based models.
- Single Spring — mass-spring system with damping, gravity, and energy graphs
- Double Spring — coupled oscillators with normal modes and phase-space diagrams
- Pendulum — small and large angle motion with period measurement
- Double Pendulum — chaotic dynamics with path tracing and energy tracking
- Multiple numerical solvers (RK4, adaptive RK45, symplectic PEFRL, Dormand-Prince 8(7))
- Classic and parametric spring visualizations, projector mode, and voicing support
npm install
npm run icons # generate PNG icons from public/icons/icon.svg
npm start # dev server → http://localhost:5173| Command | Description |
|---|---|
npm start / npm run dev |
Start Vite dev server |
npm run build |
Type-check + production build → dist/ |
npm test |
Run Vitest unit tests (includes memory-leak suite) |
npm run preview |
Preview the production build locally |
npm run check |
TypeScript type check |
npm run lint |
Biome lint check |
npm run format |
Auto-format all files |
npm run fix |
Lint + auto-fix |
npm run serve |
Serve production build locally |
npm run watch |
Watch TypeScript files |
npm run icons |
Regenerate PNG icons from public/icons/icon.svg |
npm run clean |
Remove dist/ |
| Tool | Version | Purpose |
|---|---|---|
| SceneryStack | ^3.0.0 | Simulation framework |
| Vite | ^8 | Build tool + dev server |
| TypeScript | ^7 | Type-safe JavaScript |
| Biome | ^2.5 | Linting + formatting |
| vite-plugin-pwa | ^1 | PWA + service worker |
GNU Affero General Public License v3.0 — see OpenLyceum org license.
See OpenLyceum contributing guidelines. Report bugs via GitHub Issues; use org issue templates.