Skip to content
Ridho KurniawanWeb + DataContact me on Upwork
03Interactive physics learning platformIndependent project

Physics Studio

An interactive physics app with guided lessons, simulations, and practice across seven topic areas. The web interface connects to separate services for lesson content and physics calculations.

  • Next.js
  • TypeScript
  • Node.js
  • Canvas API
  • KaTeX
  • Docker
Physics Studio interactive learning platform preview
Live demoOpen in browser
01 / Context

The problem

I wanted the lessons to connect mathematical explanations, experiments, practice questions, and saved progress. Each simulation also needed to state the assumptions and limits of its physical model.

The browser animations needed to respond to changes immediately. Lesson content, answer checking, and reference calculations ran in separate services, which had to use the same model constraints as the interface.

02 / Approach

How I built it

I structured Physics Studio as a TypeScript monorepo containing a Next.js web application, separate curriculum and physics services, shared runtime contracts, and a reusable numerical physics package.

The browser imports the same physics kernel used by the calculation service, keeping interactive experiments and server-generated reference values consistent. Canvas animation runs through requestAnimationFrame outside React’s render cycle, while throttled readouts prevent simulation updates from causing unnecessary component renders.

Next.js Route Handlers connect the interface to the curriculum and physics services. KaTeX renders equations with accessible MathML, browser storage preserves course progress and reasoning notes, and Docker Compose provides a reproducible three-process deployment environment.

03 / Product highlights

How people use it

01

Lessons with experiments and practice

Learners make predictions, adjust a simulation, work through the equations, and answer questions. They can record observations and export notes for later review.

02

Shared numerical models

The browser and physics service use the same tested model package. Interactive playback remains responsive while server reference calculations follow identical parameter ranges and assumptions.

03

Separated curriculum and computation

Lesson content and answer checking run in the curriculum service, while model validation and reference calculations belong to the physics service. The Next.js application exposes both through controlled Route Handlers.

7Physics topic areas
17Mechanics course units
3Runtime services
04 / Evidence

What the app does now

The application now combines seven physics topic areas, a seventeen-unit classical mechanics course, guided discovery activities, interactive laboratories, answer checking, notebook exports, and saved browser progress through one consistent interface.

Automated checks cover numerical limits, conserved quantities, curriculum validation, component behavior, API failures, production builds, and live HTTP integration across the web, curriculum, and physics processes.

05 / Engineering decisions

Technical choices

01

Separate lessons from calculations

The curriculum service handles lessons and answer checking; the physics service handles reference calculations. The web application calls both through documented HTTP contracts.

02

Share the physics kernel

A reusable physics-core package prevents browser animations and server calculations from implementing the same equations independently and gradually producing different results.

03

Keep simulation updates outside React rendering

Canvas playback uses requestAnimationFrame while interface readouts update at a lower frequency. Hidden tabs stop time advancement, and reduced-motion preferences start experiments paused.

04

Document each model’s assumptions

Each model lists its units, approximations, parameter ranges, and assumptions. Progress indicators record practice activity; learning effectiveness still needs educator and learner review.

06 / Validation

Checks I ran

  • Tested energy conservation, wave limits, Maxwell-distribution normalization, quantum boundary conditions, relativistic calculations, and invalid parameter handling.
  • Used simulated-DOM tests for guided activities, playback controls, saved progress, keyboard interaction, and API-failure recovery.
  • Ran TypeScript checking, production builds, and HTTP integration checks across the web, curriculum, and physics processes.
  • Confirmed the Vercel deployment. Browser layout and accessibility still need a separate visual review.
07 / Next iteration

Next steps

  1. 01Add accounts and a durable backend for synchronized learner progress across devices.
  2. 02Conduct educator review, learner think-aloud sessions, and delayed-transfer evaluation.
  3. 03Complete browser-based accessibility and responsive-layout testing.
  4. 04Move heavier numerical workloads into workers or queued compute services when model complexity requires it.

Work with me

Tell me what you’d like to build.