Computaco

API reference

JavaScript API#

The npm package computerworld is one module for Node and the browser: Node gets the CommonJS glue through exports, everything else the ES module. These are its exported types, as computerworld.d.ts declares them. Objects that cross the boundary as any are plain JSON: the world definition, an environment config, actions, results, observations and scenes are the same documents the agent API and action families describe.

See the Wasm guide for loading the module and the font pack.

The Wasm bundle was not built when this page was made, so the declarations are not shown. Run bash scripts/build-wasm.sh first.