Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage threezero.package·originates fromworld 7767c52c-9…

runner

A module script.

byzero-proxy @ DESKTOP-DB3UJOJ·posted 4mo ago
What it does

runner

A module script.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

module threezero.runner Runs a three.js project inside a ZeroJS VM. `start` builds the VM, installs the `__ZERO` host bridge, `requestAnimationFrame`, and a browser prelude (window/document/performance), then evaluates the project's ES module graph with a VFS-path resolver: 'three' and 'three/addons/...' map to the ThreeZero shim assets, relative './file.js' specifiers resolve against the importing file's folder. `pump` drives animation-frame callbacks, timers, and microtasks once per engine frame.

addEventListener(type: ?, fn: ?) → void

argtypedescription
type?
fn?

removeEventListener(type: ?, fn: ?) → void

argtypedescription
type?
fn?

dispatchEvent(ev: ?) → void

argtypedescription
ev?

__fanOut(type: ?, ev: ?) → void

argtypedescription
type?
ev?

__keyFromCode(code: ?) → void

argtypedescription
code?

__noop( ) → void

__dispatchEngineEvents( ) → void

__makeElement(tag: ?) → void

argtypedescription
tag?

__make2dContext(canvas: ?) → void

argtypedescription
canvas?

__makeGlContext( ) → void

__domClass(name: ?) → void

argtypedescription
name?

__makeElement(tag: ?) → void

argtypedescription
tag?

addEventListener(type: ?, fn: ?) → void

argtypedescription
type?
fn?

removeEventListener(type: ?, fn: ?) → void

argtypedescription
type?
fn?

dispatchEvent(ev: ?) → void

argtypedescription
ev?

click( ) → void

appendChild(c: ?) → void

argtypedescription
c?

insertBefore(c: ?, ref: ?) → void

argtypedescription
c?
ref?

removeChild(c: ?) → void

argtypedescription
c?

remove( ) → void

contains( ) → void

closest( ) → void

matches( ) → void

cloneNode( ) → void

setAttribute(k: ?, v: ?) → void

argtypedescription
k?
v?

getAttribute(k: ?) → void

argtypedescription
k?

removeAttribute(k: ?) → void

argtypedescription
k?

hasAttribute(k: ?) → void

argtypedescription
k?

toggleAttribute(k: ?, force: ?) → void

argtypedescription
k?
force?

append( ) → void

replaceChildren( ) → void

insertAdjacentHTML( ) → void

insertAdjacentText( ) → void

insertAdjacentElement(pos: ?, other: ?) → void

argtypedescription
pos?
other?

before( ) → void

after( ) → void

replaceWith( ) → void

querySelector(sel: ?) → void

argtypedescription
sel?

querySelectorAll( ) → void

getElementsByTagName( ) → void

getElementsByClassName( ) → void

getBoundingClientRect( ) → void

getContext(kind: ?) → void

argtypedescription
kind?

toDataURL( ) → void

toBlob(cb: ?) → void

argtypedescription
cb?

requestFullscreen( ) → void

animate( ) → void

play( ) → void

__elementFor(key: ?, tag: ?) → void

argtypedescription
key?
tag?

hasFocus( ) → void

createTextNode(t: ?) → void

argtypedescription
t?

createElement(tag: ?) → void

argtypedescription
tag?

createElementNS(ns: ?, tag: ?) → void

argtypedescription
ns?
tag?

getElementById(id: ?) → void

argtypedescription
id?

querySelector(sel: ?) → void

argtypedescription
sel?

querySelectorAll( ) → void

getElementsByTagName( ) → void

getElementsByClassName( ) → void

exitFullscreen( ) → void

dispatchEvent(ev: ?) → void

argtypedescription
ev?

matchMedia(media: ?) → void

argtypedescription
media?

getComputedStyle( ) → void

requestIdleCallback(fn: ?) → void

argtypedescription
fn?

cancelIdleCallback(id: ?) → void

argtypedescription
id?

Image( ) → void

Audio(src: ?) → void

argtypedescription
src?

canPlayType( ) → void

__makeResponse(url: ?, okFlag: ?, status: ?, body: ?) → void

argtypedescription
url?
okFlag?
status?
body?

__formatNumberEn(n: ?, opts: ?) → void

argtypedescription
n?
opts?

BigInt(v: ?) → void

argtypedescription
v?

asIntN(bits: ?, v: ?) → void

argtypedescription
bits?
v?

asUintN(bits: ?, v: ?) → void

argtypedescription
bits?
v?

confirm( ) → void

prompt( ) → void

open( ) → void

btoa(s: ?) → void

argtypedescription
s?

atob(s: ?) → void

argtypedescription
s?

dirname(path: string) → string

argtypedescription
pathstring

joinPath(baseDir: string, rel: string) → string

Join and normalize a relative specifier against a base directory, collapsing `.` and `..` segments.

argtypedescription
baseDirstring
relstring

tryRead(path: string) → string

argtypedescription
pathstring

resolveSpecifier(spec: string, importerId: string) → any

Resolve an import specifier to { id = <vfs path>, source } or nil.

argtypedescription
specstring
importerIdstring

renderErr(vm: any, err: any) → string

Render a pcall failure from module evaluation / a JS callback into one line, unwrapping a JS throw into its name/message/stack.

argtypedescription
vmany
errany

start(entry: string, opts: any?) → App

Build the VM + host session and evaluate the project's module graph rooted at `entry` (a VFS path to the main module). Top-level requestAnimationFrame / setAnimationLoop registrations land in the app's queue; the first pump runs them.

argtypedescription
entrystring
optsany?

pump(self: any, dt: number) → void

argtypedescription
selfany
dtnumber

stop(self: any) → void

argtypedescription
selfany
⌬ Types
App = {

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.