inline-kit.mjs

Tools · Edit, render, publish · MIT

What it does

Returns the kit, the WebGL layer and the 3D runtime as source text with their export keywords removed, so a build script can inline them into one standalone HTML page with no outside files.

Get it

import { kitScript, glScript, turnScript } from './scripts/inline-kit.mjs'; pageHtml({ script: kitScript() + live })

Source on GitHub
Needs (the whole pack)

Node 20.10 or later for builds and checks, with nothing to npm install. Chrome for the checking scripts. React only for the React output. No API keys.

License

MIT

License notes are on the pack's page

From

Anatomy

Everything from Anatomy in the gallery

Back to the Asset Library