Simulators used in teaching and education comprise amathematical model and a user interface that allows theuser to control model inputs and intuitively visualize themodel states and results. This paper presents web compo-nents - that can be used to build an in-browser web sim-ulator. The models used for the web simulators must bewritten in standard Modelica language and compiled asstandard FMU (Functional mockup unit). The toolchainversion Bodylight.js 2.0 contains tools to collect FMU intoWebAssembly language, able to be executed directly by aweb browser.
Bodylight.js 2.0 web components can com-bine models, interactive animations, and charts into a richweb documents in HTML or Markdown syntax withoutany other programming or scripting. Samples show its us-age in education, 2D and 3D graphics, virtual reality, andconnected to the hardware