variable PLUGIN_PRIORITY
Since 0.1.0

Well-known plugin registration priorities. Lower numbers register first.

Any number is a valid priority; these constants mark the conventional bands so plugins order themselves predictably relative to first-party middleware (see ARCHITECTURE.md §10 for the middleware priority table).

Properties

HIGHEST: number

Runtime and other must-run-first infrastructure.

HIGH: number

Logging, configuration — capabilities most plugins consume.

NORMAL: number

Default band for ordinary capability plugins.

OPENAPI: number

OpenAPI plugin — generates spec after routes are registered.

LOW: number

Plugins that want most capabilities available before they register.

LOWEST: number

Observers that must register after everything else.

Usage

import { PLUGIN_PRIORITY } from "common/src/index.ts";