Build a public distribution
Run npm run build from the project root. It produces distribute/ with the website, documentation, runtime, objects, examples, tests, tools and 3d-engine.zip. The ZIP contains every file in that output except itself.
The build excludes development checkpoints, temporary test copies, caches, Git metadata and the one-time extraction script. No previous releases are required. Source files remain separate from the generated output.
The folder may be renamed and moved: all website/runtime references are relative. Serve it over HTTP; localhost or HTTPS is required for browser controller access. A moved directory needs a fresh browser check at its new address.
See distribution guide for Cloudflare upload and local use. tools/release.mjs is a compatibility alias for the clean distribution builder.