Skip to content

Overview

The @sodacore/core package is the framework of the application and is required for any and all applications you intend to build. It provides the autowire, dependency injection, and handle most of the event hooks.

The core package provides a variety of providers and modules that are highlighted below.

Providers

Providers are classes that provide functionality to the application, below are the core package's built-ins.

ProviderDescription
LoggerThe logger is an extendable logging class that you can use to build your own logger, or you can build one from scratch.
ThreadProviderThe thread provider is a class that allows you to access available threads and dispatch tasks to them.

Modules

ModuleDescription
ApplicationThe application module is the main module that is used to bootstrap the application.
AutowireThe autowire module is used to automatically load your files into the application and handle importing, etc.
EventsThe events module is used to handle events and event listeners and dispatching hooks.
RunnerThe runner module is used to handle the cron-tasks.
ServicesThe services are a module that provide a service to the application, like a HTTP server or TCP connection, these then should handle their own controllers and context objects to be dispatched to.
ThreadsThe threads module is used to handle the creation, IPC and general management of threads.

Helpers

HelperDescription
ConstantsThe constants helper is used to provide a set of constants that are used throughout the application.
UtilsThe utils helper is used to provide a set of utility functions that are used throughout the application.
[]

Released under the Apache-2.0 License.