Babylon.js starter project with Turborepo and Next.js

Hello, community

I am happy to share a starter template for Turborepo + Next.js + Babylon.js based projects.
This template is the outcome of my experiences in building apps where communication between web interfaces and 3D scenes is crucial.

Main advantages:

  • Easy to build and deploy
  • 3D logic is separated into its own package
  • Next.js web app
  • 3D app exposes an API for interaction with the web interface
  • Typescript

Happy to hear any feedback or improvements…


Huge! Thanks a lot for that!

This is so cool!

Always interesting to see more React integrations - haven’t seen a ref passed through context that way before. A good addition for a starter project is to include the next bundle analyzer.
Babylon.js ES6 support with Tree Shaking | Babylon.js Documentation (

I’m not sure your imports from root will tree shake.

Thanks for sharing!