Project setup | JavaScript | Program targets

Targets · JavaScript · Project setup

Everything around the rendered code that makes a working, runnable project.

How a Program becomes JavaScript, in parts. Start with the introduction, then follow each part into the rendered output and the runtime it links against.

The browser target is the lightest of all: no manifest, no package manager, no build step. A working project is one HTML page that loads the runtime bundle and the rendered program.

There is nothing to compile: the renderer already emits JavaScript. To run it, open index.html in a browser, or serve the folder over any static host:

For a single-file drop-in, the renderer can emit a bundle — runtime, native modules, and the program concatenated into one .js with no imports — so the page needs just one <script> . That single artifact is also what an embedded example on this site uses. A typed build instead goes through TypeScript .

Recommended articles