Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Getting started

Create a package directory:

%APPDATA%\FumowareV2\scripts\hello-fumo\

Add manifest.json:

{
  "id": "example.hello-fumo",
  "name": "Hello Fumo",
  "version": "1.0.0",
  "apiVersion": 1,
  "entry": "index.js",
  "capabilities": ["console"]
}

Add index.js:

import { log } from "fumo:console";

log("Hello from FumoEngine");

export function shutdown() {
  console.log("Hello Fumo unloaded");
}

Open Fumoware’s Scripts tab and press R to rediscover packages. New packages appear disabled; turn the package on once to evaluate it. That choice is remembered across game restarts. Output appears in the JavaScript console.

Module imports

Package-relative imports are supported:

import { value } from "./helper.js";

Imports cannot leave the package directory. Arbitrary bare module names and QuickJS’s std and os modules are unavailable.