@opra/core
v1.28.5
Published
Opra schema package
Readme
@opra/core
Runtime engine of the OPRA framework — request lifecycle, validation, and routing
🌐 Documentation · 🚀 Getting Started · 📦 Packages · 💬 Issues
Core runtime package of the OPRA framework. Provides the execution engine, platform adapter base classes, service patterns, and infrastructure utilities that all OPRA adapters and services depend on.
Features
- Platform Adapter Base — Abstract foundation for HTTP, Socket.IO, Kafka, RabbitMQ, and other transport adapters
- Execution Context — Request-scoped context carrying adapter, document, transport, and platform references
- Service Pattern —
ServiceBasewith context propagation and immutable.for()cloning - i18n Support — Built-in internationalization with lazy-loading of resource bundles and localized error messages
- Asset Cache — WeakMap-based cache for automatic memory-safe asset lifecycle management
- Event-Driven —
AsyncEventEmitter-based lifecycle hooks on both adapters and execution contexts
Installation
npm install @opra/coreNode Compatibility
- node >= 20.x
License
Available under MIT license.
