Skip to playground

Try the sandbox.

Change the input or code, then run it. This demo exposes one host function: input.get().

JSON · available through input.get()
JavaScript

Ready to execute

Run the code to see its return value.

What can the code access?

Only the functions listed in hostFunctions. In this demo, that is input.get()

  • 1 second
  • 32 MB memory
  • 8 input.get() calls
  • No network or Node.js APIs
Host setupThe trusted side
const result = await run({
  source,
  hostFunctions: {
    input: {
      get: () => inputPayload,
    },
  },
});