Skip to main content

Module types

Module types 

Source
Expand description

Shared types used by both native and scripted app loaders

These types are serialized to JSON for IPC (Bun loader) and converted to/from C representations for FFI (native loader).

Structsยง

AppEvent
Domain event forwarded to apps
AppRequest
HTTP request forwarded to an app
AppResponse
HTTP response from an app
CallerContext
Caller identity injected by the host proxy after JWT validation. Only present on requests that came through the scoped-JWT proxy route. Apps should trust this over any HTTP headers (headers are stripped by the proxy).
Capabilities
Capability flags declaring what an app can do
CapabilityExample
An example request payload for a capability.
CapabilityRequest
A service capability request dispatched to a provider app. Used for both FFI (serialized as JSON bytes) and IPC (serialized as JSON).
CapabilityResponse
Response from a provider app after handling a capability request.
NodeAppInfo
App metadata returned during initialization
ProvidedCapability
Declaration of a service capability that an app provides. Used in app manifests and registration APIs.