Skip to content

Custom app API

Registration

The following types of things can be registered by the app:

  • Named types
  • Hooks (described below)
  • Background services
  • Frontend

Hooks

Custom apps are allowed to hook into the following events:

  • install: When the app is first being installed.

  • insert, update, delete: CRUD hooks for nodes with a type that the app manages

  • attr-new, attr-update, attr-remove: CRUD hooks for attributes with types that the app manages

Each hook is handled by a function, which must return with a success. If this doesn’t happen, the daemon will re-call the function with exponential backoff for a specific number of retries.