Skip to content
@archipel/platform-bootstrap Auto-generated

@breadstone/archipel-platform-bootstrap

Classes

ClassDescription
CompositionContextDefault implementation of the composition context.
CompositionModuleMinimal module providing configuration access for composition.
CompositionResolverAbstract base class for composition-time feature resolution.
PlatformApplicationEntry point for composing an existing NestJS application with Archipel bootstrap steps.
PlatformApplicationBuilderFluent builder that composes NestJS bootstrap steps and executes them once.
PlatformBootstrapContextRuntime context shared by platform bootstrap steps.
PlatformBootstrapErrorError raised when an Archipel platform bootstrap step fails.

Interfaces

InterfaceDescription
IApiStepOptionsOptions for the generic Archipel API bootstrap step.
IApiValidationOptionsValidation options used by the generic Archipel API bootstrap step.
ICompositionContextPre-bootstrap context for stage-aware module composition.
ICreateCompositionContextOptionsOptions for creating the composition context.
ICreateWithCompositionOptionsOptions for creating a composed application.
IExpressServerStepOptionsOptions for the Express-compatible server bootstrap step.
IOpenApiStepOptionsOptions for the OpenAPI bootstrap step.
IPlatformApplicationOptionsOptions for wrapping an existing NestJS application with Archipel platform bootstrap support.
IPlatformListenOptionsOptions for resolving the HTTP listen port from typed configuration keys.
IPlatformTestApplicationIn-memory application contract used by platform bootstrap tests.
IProviderDecisionRepresents the result of a provider composition decision.
ISecurityStepOptionsOptions for the generic security bootstrap step.
ISessionStepOptionsOptions for the Express-compatible session bootstrap step.

Type Aliases

Type AliasDescription
CompositionImportRepresents a valid NestJS module import that can be used during composition.
PlatformBootstrapNextContinues execution with the next platform bootstrap step.
PlatformBootstrapStepA composable bootstrap step in the platform application pipeline.
PlatformContentSecurityPolicyModeNamed content-security-policy modes supported by platform-bootstrap/security.
PlatformCorsOptionsCORS options accepted by the security bootstrap step.
ProviderComposerFunction signature for a provider composer.
SecurityRateLimitOptionsRate-limit options accepted by the security bootstrap step.

Variables

VariableDescription
APP_CORS_ORIGINComma-separated list of allowed CORS origins.
APP_RATE_LIMIT_MAX_REQUESTSMaximum requests accepted within the rate-limit window.
APP_RATE_LIMIT_WINDOW_MSRate-limit window in milliseconds.
AUTH_SESSION_MAX_AGESession cookie lifetime, for example 30d or 86400000.
AUTH_SESSION_SECRETSecret used by Express-compatible session middleware.
AUTH_SESSION_SECUREWhether session cookies should be marked secure.
PLATFORM_SECURITY_CONFIG_ENTRIESSecurity step configuration entries provided by platform-bootstrap/security.
PLATFORM_SERVER_CONFIG_ENTRIESServer bootstrap configuration entries provided by platform-bootstrap.
PLATFORM_SESSION_CONFIG_ENTRIESSession step configuration entries provided by platform-bootstrap/session.
PORTHTTP port exposed by serverless hosts such as Vercel.

Functions

FunctionDescription
createCompositionContextCreates a temporary NestJS context for stage-aware module composition.
createPlatformTestApplicationCreates a lightweight in-memory NestJS application double for platform bootstrap tests.
useApiCreates the generic Archipel API bootstrap step.
useExpressServerCreates an Express-compatible server bootstrap step.
useOpenApiCreates the Archipel OpenAPI multi-document bootstrap step.
useSecurityCreates the generic security bootstrap step.
useSessionCreates an Express-compatible session bootstrap step.

Released under the MIT License.