Skip to main content

@rapidrest/core

npm install @rapidrest/core

The foundation every other RapidREST package builds on: the ObjectFactory dependency-injection container, the ClassLoader that powers auto-discovery, and a set of shared utilities (JWT, messaging, alerting, telemetry) used throughout the framework. You'll rarely install this directly — @rapidrest/service-core depends on it — but its exports are what you're actually calling when you write @Inject, @Config, or @Logger.

For the detailed explanation of how these work and fit together, see Core Concepts.

  • ObjectFactory — the dependency injection container itself.
  • ObjectDecorators@Inject, @Config, @Logger, @Init, @Destroy, and friends.
  • ClassLoader — the auto-discovery mechanism.
  • JWTUtils — JWT creation/verification, used by both auth strategies.

Everything else is in the sidebar, generated directly from source.