Modules

Libraries

Three.js

three@0.185.1

3D rendering, the workhorse for game/art prototypes. (r185 splits into module+core files, both platform-served; r170 stays available.)

Version
0.185.1
License
MIT
Size
404 KB

Add it

Declare it in prototir.json at the root of your ZIP. Prototir checks the version at upload and adds it to the page's import map.

prototir.json
{
  "modules": [
    "three@0.185.1"
  ]
}

Then import it by name, from 'three', as you would from npm.

Reference

Prototir serves the library unchanged, so its own documentation applies.

Three.js documentation

Versions

Every version stays available, so a prototype keeps working exactly as published. Declare the one you tested with.

  • three@0.185.1
  • three@0.170.0

As JSON: /modules/three.json. Source: npm:three.