Skip to main content
Everything below is available with no imports — Fairyfly injects these globals into every script. Bare specifiers still resolve through node_modules for packages (see Packages). Native capabilities are deny-by-default. The Permission column names the flag a global needs; — means it is always available. Full model: Permissions.

Globals

Notes:
  • process.argv, pid, cwd, exit, on, once, off, memoryUsage, and stats are not gated. Only process.env (env), process.chdir (read on the target), and process.kill to a PID other than process.pid (run for "kill") need a flag.
  • Worker loading is a program-loading carve-out: new Worker(path) does not need read. The worker inherits the process policy for everything it calls.
  • http always needs net for its 0.0.0.0:<port> bind. read is only checked when tls.cert / tls.key are file paths rather than inline PEM.
  • sql / SQL checks net against the target host:port. If TLS is configured with sslrootcert, read on the CA bundle is also checked. The global sql pool checks env to discover DATABASE_URL / PG* settings.
  • Database.open(":memory:") needs no path permission.

Timer handles

setTimeout / setInterval return a Timeout object (pass it to clearTimeout / clearInterval, or call its methods):

Static helpers you’ll use constantly

Full tables: Response statics and Database methods.

Quick reference

Response statics

Database methods

Database.open(":memory:") is exempt from the path gates.

sql / SQL methods

new SQL(dsn | options) checks net against the target host and port (and read on sslrootcert if TLS is enabled). The global sql also needs env if it should read PG_TEST_DSN / DATABASE_URL / PG* (including PGSSLMODE, PGSSLROOTCERT) at startup; otherwise it falls back to 127.0.0.1:5432.

Not provided

These common Node/browser globals are absent — with the substitute to use instead: Full list with rationale: Compatibility.

See also