{"slug":"code-halowerk-com-v1-js-run-b02684","title":"Run a short synchronous JavaScript snippet in QuickJS inside an isolated OS proc","host":"code.halowerk.com","method":"POST","resource":"https://code.halowerk.com/v1/js-run","category":"code","description":"Run a short synchronous JavaScript snippet in QuickJS inside an isolated OS process, with JSON input, a JSON result and captured console output. Evaluates a JavaScript script with the input JSON available as global input. The last expression is the result; undefined becomes null. Uses installed quic","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":898,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"code":"input.prices.reduce((sum, price) => sum + price, 0)","input":{"prices":[12,8,5]}},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"code":{"description":"Synchronous JavaScript script; its last expression is returned.","maxLength":32000,"minLength":1,"type":"string"},"input":{"description":"Optional JSON value, exposed inside the guest as global input."}},"required":["code"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":899,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":919,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":909,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":898,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":894,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":884,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":892,"error":null}],"description_full":"Run a short synchronous JavaScript snippet in QuickJS inside an isolated OS process, with JSON input, a JSON result and captured console output. Evaluates a JavaScript script with the input JSON available as global input. The last expression is the result; undefined becomes null. Uses installed quickjs-emscripten 0.32.0 (MIT), with a fresh WASM runtime for every call, a 32 MiB VM heap and a 500 ms interrupt deadline.","last_updated":"2026-11-20T12:47:53.438Z","schemes":["exact"]}