Global Sandbox Libraries
All Lua scripts execute in a sandboxed Lua 5.4 runtime with the following built-in globals:
http(opts)/http.request(opts): Fast synchronous HTTP client (resp.ok,resp.status,resp.headers,resp.body).json.encode(tbl)/json.decode(str): C-based high performance JSON parser.crypto.*: OpenSSL-powered cryptographic hashing (sha256,sha512,md5,hmac_sha256,base64_encode,base64_decode).cache.*: Valkey-backed distributed key-value cache (get,set,del,incr).billing.*: Core billing hooks (import_keys,send_email).log.*: Audited logging (log.info,log.warn,log.error).