Babylon.js alternatives
Written from the tastebase registry, so it changes when an entry does.
Babylon.js is a full web 3D and game engine: WebGL and WebGPU rendering, physics, GUI, XR and a scene inspector. It's the right pick for a browser game with physics, collisions and input.
Look elsewhere when you're dealing with a 2D flowchart, workflow or node diagram editor: use xyflow (its node editor is for 3D materials). These 3 3D libraries do the same job differently.
3 Babylon.js alternatives

three.js
The standard WebGL and WebGPU 3D engine: scenes, cameras, materials, loaders.
PlayCanvas
Open-source WebGL and WebGPU engine with a React wrapper, a hosted editor and first-class Gaussian splats.
React Three Fiber
React renderer for three.js: build 3D scenes as JSX components with hooks.
Compared
Questions
Is Babylon.js free?
Yes, Babylon.js is free (Apache-2.0).
What is the best alternative to Babylon.js?
three.js: the standard WebGL and WebGPU 3D engine: scenes, cameras, materials, loaders. It's best for a 3D product viewer or configurator outside React.
When should I not use Babylon.js?
A 2D flowchart, workflow or node diagram editor: use xyflow (its node editor is for 3D materials).
Which Babylon.js alternatives are open source?
three.js (MIT), PlayCanvas (MIT) and React Three Fiber (MIT).