ObjectStackObjectStack

Plugin schema — Kernel Protocol reference

Plugin schemas of the ObjectStack Kernel Protocol: Plugin — each property with its type, default and a TypeScript example.

Source: packages/spec/src/kernel/plugin.zod.ts

TypeScript Usage

import { PluginSchema } from '@objectstack/spec/kernel';

// Validate data
const result = PluginSchema.parse(data);

Plugin

Properties

PropertyTypeRequiredDescription
idstringoptionalUnique Plugin ID (e.g. com.example.crm)
typeEnum<'standard' | 'ui' | 'driver' | 'server' | 'app' | 'theme' | 'agent' | 'objectql'>optional (default: "standard")Plugin Type categorization for runtime behavior
staticPathstringoptionalAbsolute path to static assets (Required for type="ui")
slugstringoptionalURL path segment (Required for type="ui")
defaultbooleanoptionalServe at root path (Only one "ui" plugin can be default)
versionstringoptionalVersion (SemVer 2.0.0 — major.minor.patch with an optional -prerelease and an optional +build suffix; e.g. 1.2.3, 2.0.0-beta.1, 1.0.0-rc.1+exp.sha.5114f85)
descriptionstringoptional
authorstringoptional
homepagestringoptional

On this page