Recover a sinusoidal signal buried in noise by multiplying it by a reference signal and low-pass filtering the product, as a lock-in amplifier does.
- Reveal a weak signal in a triggered waveform and compare its spectrum across record lengths and averaging settings.
- Follow the input, reference, multiplier, and low-pass output in aligned plots.
- Compare measured noise with equivalent noise bandwidth and settling-time predictions.
- Rotate the reference in single- or dual-phase detection and use Auto Phase to null Y.
- Measure light transmission, a strain-gauge bridge, or an unknown RC filter and export notebook data as CSV.
- Use keyboard controls and screen-reader descriptions in English, French, or Spanish, with default and projector profiles.
npm install
npm run icons # generate PNG icons from public/icons/icon.svg
npm start # dev server → http://localhost:5173Set mains frequency to 50 or 60 Hz in Preferences → Simulation, or start with ?mainsFrequency=50. Use an integer query parameter such as ?seed=1234 to reproduce the noise and Lab unknowns. See the model derivations and implementation notes.
| Command | Description |
|---|---|
npm start / npm run dev |
Start Vite dev server |
npm run build |
Type-check + production build → dist/ |
npm run preview |
Preview the production build locally |
npm test |
Run Vitest unit tests (includes memory-leak suite) |
./node_modules/.bin/playwright test --project=chromium tests/browser |
Run sim-specific keyboard checks using the installed Playwright CLI |
npm run test:fuzz |
Optional Playwright fuzz smoke: pointer (?fuzz) + keyboard (?fuzzBoard), with ?ea, 30s each |
npm run test:fuzz -- 90 |
Same fuzz for 90 seconds (--duration 90 or FUZZ_DURATION=90 also work) |
npm run test:fuzz:quick |
Shorter fuzz smoke (10s) |
npm run test:fuzz:long |
Longer fuzz smoke (300s) |
npm run test:soak |
By-hand leak soaks: headless (tests/soak/headless.soak.ts), then browser (tests/soak/browser.spec.ts) |
npm run check |
TypeScript type check |
npm run lint |
Biome check (warnings fail too) |
npm run check:unused / npm run knip |
Report unused files, exports, and dependencies (manual check) |
npm run check:architecture |
dependency-cruiser layer and cycle rules on src/ (manual check) |
npm run format |
Auto-format all files |
npm run fix |
Lint + auto-fix |
npm run icons |
Regenerate PNG icons from public/icons/icon.svg |
npm run release |
check && lint && build && test, then version patch + push tags |
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 | ^2 | 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.