API Reference
Overview of the Nodeal API surface — globals, game extensions, and module boilerplate.
API Reference
This section provides comprehensive technical documentation for the Nodeal API surface. It covers global functions, extensions to standard Roblox objects, and the module boilerplate required for the virtualization layer.
Use the sidebar to jump directly to specific global functions or game extensions. Every entry includes a detailed signature, parameter list, and a practical code example.
| Area | Description | Primary Docs |
|---|---|---|
| Globals | New and enhanced global functions. | Globals |
| Game Extensions | Methods added to the game object. | Game Extensions |
| Built-ins | Standard library injections. | Built-ins |
Nodeal injects several "Power Globals" to handle dependency resolution and advanced object virtualization.
| Function | Primary Use Case |
|---|---|
import(name) | Resolve and load a module by its registered name. |
newproxy(target) | Wrap an object with a custom, secure metatable. |
typeof(value) | Type-checking that respects __type overrides. |
unpack(target) | Unpack tables or proxies with support for __unpack. |
For a module to be compatible with Nodeal's security and virtualization layer, it must follow this strict boilerplate pattern:
-- 1. Initialize security accessorlocal __=_G()-- 2. Define your logiclocal module = {}function module:DoSomething() -- code ...end-- 3. Return via the accessorreturn __(module)The __(module) call allows the Nodeal runtime to:
- Verify the caller's execution permissions.
- Inject virtualized globals into the caller's scope if necessary.
- Apply decorators to the returned functions.
Attempting to return a table directly (without the __() wrapper) will cause a runtime error and a Pre-Parser warning, as it bypasses the security layer.