Lexolith — molecular dynamics on WebGPU, drawn live with three.js

Hi all, I’ve been building Lexolith, a browser-based science lab where the simulations run on your machine and three.js does all the rendering.

What’s in it

  • Molecular dynamics on WebGPU: a box of 4,096 water molecules you can watch as it runs, with its temperature and energy drift plotted live.
  • Sandbox: place atoms or paste any molecule as a SMILES string (CCO, c1ccccc1, …) and watch it move under a classical force field.
  • Chem Lab: a structured experiment — add reagents, heat, cool, wait — then measure the result from the running simulation: density, heat capacity from energy fluctuations, diffusion from the mean-square displacement, coordination number from the radial distribution function, and an IR spectrum from the dipole.
  • Physics Lab: rigid bodies with joints and contacts, energy and momentum tracked as they run.
  • Fields: charges, plates, wires and heaters on a grid, solved for potential, field and temperature.

Under the hood: the water box above runs on a compiled engine of my own, which computes its forces on the graphics card through WebGPU right in the browser; on my machine it runs at 9 ns/day on the integrated AMD GPU and about 290 ns/day on an RTX 5060 Ti, so I’m curious what other cards do. The same engine is also a downloadable command-line program (free key from the Account page): it reads OPLS-AA topologies (`.top`) and coordinates (`.gro`), writes trajectories and energies, and refuses by name any part of a topology it doesn’t implement instead of silently skipping it.

The part I care most about: every number the engine produces is checked against a published value or a closed-form result, and an automated test fails if it drifts. Where a result is still off, the validation pages say so instead of hiding it.

It’s free to try at https://lexolith.corsoftwaredev.com/welcome . I’d really like feedback on rendering performance on different GPUs, and on anything that looks wrong.