When to use Playground
Use it to:- learn a runtime API method with safe input;
- test a database query or JSON transformation;
- prototype a return contract for a dashboard widget;
- reproduce a small integration failure;
- prepare code before placing it in a governed Component.
Run a first experiment
- Open Playground.
- Enter low-code JavaScript in the Monaco editor.
- Open the debugger panel.
- Provide JSON input.
- Set timeout, memory, streaming, and production-mode behavior.
- Run and inspect terminal logs, returned result, and performance.
Debugger settings
Playground settings do not modify the limits of any later Endpoint, Job, dashboard widget, or deployed Component.
Interpret a run
The debugger presents:- structured terminal entries from
api.log()and runtime warnings; - one returned result or terminal error;
- timing and managed-runtime memory measurements when available;
- local input/result history for fast iteration.
Safety boundaries
Playground code can still reach platform data and external services allowed to the current principal. Some side-effect methods may be suppressed in debug mode and emit a warning, but you must not assume every call is simulated. The editor preserves Playground source for the current instance in browser-local state. That is a convenience, not a source-control or recovery guarantee. Copy approved code into a Component and deploy it through the Web IDE.Move from prototype to production
- Create a Component with a clear category, name, and element key.
- Copy only the reviewed logic from Playground.
- Replace test constants with validated
api.input()values, Secrets, or configuration. - Add idempotency and transaction boundaries around side effects.
- Debug the Component with the real library dependency set.
- Deploy and connect it to an Endpoint, Job, Event, or dashboard widget.
- Verify execution under the intended service account.

