Metadata describing a context.

{
name: 'products-context',
description: 'Products management',
version: '1.0.0',
requiredPlugins: ['postgres', 'redis'],
requiredContexts: ['users-context']
}
interface ContextMetadata {
    name: string;
    version: string;
    description?: string;
    requiredPlugins?: string[];
    requiredContexts?: string[];
    tags?: string[];
}

Properties

name: string

Unique name of the context. Convention: '{context}-context' (e.g., 'products-context', 'orders-context')

version: string

Context version (semver).

description?: string

Description of what the context does.

requiredPlugins?: string[]

Names of plugins that this context requires. Plugins must be initialized before this context.

['postgres', 'redis', 'rabbitmq']
requiredContexts?: string[]

Names of other contexts that this context depends on. Contexts must be initialized before this context.

['users-context', 'inventory-context']
tags?: string[]

Tags for categorization and filtering.

['core', 'commerce', 'api']