In-build classes

This section documents the built-inclasses that are embedded into OpenJS and directly accessible from scripts.

Classes such as the task library, diskapi, log, and more are written in Java but exposed to scripts for ease of use, script consistency, and performance. They remove the need for writing boilerplate code or managing low-level server operations yourself.


What you'll find here:

  • Simple yet powerful APIs available out of the box

  • Full documentation of methods, usage examples, and return types

  • Purpose-built utilities designed to integrate seamlessly with scripts

  • Details on behavior, side effects, and limitations

These built-in libraries are maintained alongside OpenJavascript itself to ensure version compatibility and script stability, regardless of server environment.

If you're unsure whether to use a built-in API or write your own logic, start here — these classes often cover the most common tasks and edge cases.

Last updated

Was this helpful?