Skip to content

Dashboard

Defined in: src/plugins/application/dashboard/plugin.ts:159

The Dashboard plugin provides a web interface for monitoring and debugging the Shokupan application. It allows you to view request logs, metrics, and other debugging information. Additionally, this plugin shows the scalar, asyncapi and openapi plugins if they are enabled. It uses WebSockets to push updates to the dashboard in real-time.

This plugin will automatically enable the metrics plugin and the fetch interceptor. These are required for the dashboard to function. The fetch interceptor will track all requests and responses for use in the dashboard and Network tab.

When enabled, enableMiddlewareTracking will automatically be enabled on the application.

new Dashboard(dashboardConfig): Dashboard

Defined in: src/plugins/application/dashboard/plugin.ts:193

DashboardConfig = {}

Dashboard

readonly metadata: object

Defined in: src/plugins/application/dashboard/plugin.ts:160

pluginName: string = 'Dashboard'

get db(): DatastoreAdapter

Defined in: src/plugins/application/dashboard/plugin.ts:189

DatastoreAdapter

getHooks(): ShokupanHooks

Defined in: src/plugins/application/dashboard/plugin.ts:997

ShokupanHooks


onInit(app, options?): void

Defined in: src/plugins/application/dashboard/plugin.ts:196

any

string

void

ShokupanPlugin.onInit


recordEdgeMetric(from, to): void

Defined in: src/plugins/application/dashboard/plugin.ts:988

string

string

void


recordNodeMetric(id, type, duration, isError): void

Defined in: src/plugins/application/dashboard/plugin.ts:971

string

string

number

boolean

void