npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

create-babylonjs

v9.4.1

Published

Scaffold a new Babylon.js project with your choice of module format, language, and bundler.

Readme

create-babylonjs

Scaffold a new Babylon.js project in seconds.

npm create babylonjs

What it does

The CLI walks you through a few choices and generates a ready-to-run project:

| Prompt | Options | | ----------------- | -------------------------------------------------------------------------------------------------- | | Project name | Any name (defaults to my-babylonjs-app) | | Module format | ES6 (@babylonjs/core — tree-shakeable) or UMD (babylonjs — global BABYLON namespace) | | Language | TypeScript or JavaScript | | Bundler | Vite, Webpack, Rollup, or None (CDN script tags only — UMD only) |

Generated project

Every project includes:

  • A starter scene that loads a glTF model with environment lighting
  • Demonstrates SceneLoader.AppendAsync, createDefaultCamera, and createDefaultEnvironment
  • Proper side-effect imports for tree-shaken ES6 builds (glTF loader, env texture loader, PBR material, etc.)
  • Resize handling and render loop

ES6 template

Uses tree-shakeable imports from @babylonjs/core and @babylonjs/loaders:

import { Engine } from "@babylonjs/core/Engines/engine";
import { Scene } from "@babylonjs/core/scene";
import { SceneLoader } from "@babylonjs/core/Loading/sceneLoader";
import "@babylonjs/core/Helpers/sceneHelpers";
import "@babylonjs/loaders/glTF";
// ...

UMD template

Uses the babylonjs and babylonjs-loaders packages with the global BABYLON namespace:

import * as BABYLON from "babylonjs";
import "babylonjs-loaders";
// ...

CDN-only template (no bundler)

A single index.html with <script> tags — no npm install required:

<script src="https://cdn.babylonjs.com/babylon.js"></script>
<script src="https://cdn.babylonjs.com/loaders/babylonjs.loaders.min.js"></script>

Bundler configurations

| Bundler | Config file | Dev server | | ------- | ----------------------------------- | -------------------------------------------- | | Vite | vite.config.ts / vite.config.js | npm run dev | | Webpack | webpack.config.js | npm run dev (webpack-dev-server) | | Rollup | rollup.config.mjs | npm run dev (rollup -c -w with livereload) | | None | — | Open index.html in browser |

Production build

All bundler-based templates include a build:prod script that creates an optimized production bundle:

npm run build:prod

| Bundler | Output | Preview | | ------- | ---------------- | --------------------------------------------------- | | Vite | dist/ | npm run preview | | Webpack | dist/ | Serve dist/ with any static server | | Rollup | dist/bundle.js | Open index.html which references dist/bundle.js |

Deploy the contents of dist/ (or the project root for Rollup) to any static hosting provider.

Quick start

npm create babylonjs
cd my-babylonjs-app
npm install
npm run dev

When you are ready to deploy:

npm run build:prod

License

Apache-2.0