I am building PractiSci , a virtual lab for Class 11 and 12 physics and chemistry students in India. It now has 400+ interactive 3D experiments that run in a normal browser tab, on a phone or a laptop, in English and Hindi. This is what I learned along the way.
The stack
The website is Next.js with three.js for the 3D scenes. The API is Express with MongoDB and JWT sessions. Every lab is a small module that exposes one function which builds the scene, a list of controls and a list of readouts. The player is generic, so a new experiment is mostly a new folder.
Lesson 1: realism is a set of small helpers, not big models
A metre bridge that looks like a real one needs a wooden base with grain, a steel strip, a brass terminal and a ruler with proper tick marks. Writing a shared helper for each of these (a wood texture, a steel material, a ruler, a glass tube, a spring) made later labs cheap to build and made all of them look like they belong to one lab bench.…