Skip to main content

getBootstrap(signal?)

Returns context about the current user, their role, the app, and plan limits. Call this once during initialization and cache the result — it does not change mid-session.

Role

Use bootstrap.role to conditionally show or hide editing controls:
See Roles & Permissions for the full role capability matrix, and the Role-Based UI guide for patterns.

User

Use bootstrap.user to personalise the UI or pre-fill the current user’s details:

Limits

bootstrap.limits is a key-value map of plan limits for the authenticated user:
getBootstrap() is a read operation and is allowed during maintenance mode.

getSchema(signal?)

Returns the entity schema for the current app — all entities and their fields. Use this for dynamic form rendering or runtime field discovery.

SchemaEntity

SchemaField

Example — dynamic form rendering

See Field Types for all field type strings and their stored formats. getSchema() is a read operation and is allowed during maintenance mode.