Core Engine

Hyper-System API (__sys__)

The core logic aggregator for the global system interface within XyPriss applications.

The XyPriss Hyper-System API (__sys__) serves as the centralized, high-performance gateway for all native operations. It provides a modular architecture that inherits native capabilities to ensure optimal robustness and security, unifying all system operations under a single singleton.

Flat API Architecture
XyPriss uses a "Flat API" structure where all system modules are globally accessible via the __sys__ endpoint. This approach greatly enhances code readability and eliminates the need for redundant manual imports.

Modular Architecture

The API is divided into six specialized modules, each providing a high-performance bridge to the native XHSC engine:

Initialization

The XyPriss framework automatically initializes __sys__ before the execution of your application code. Manual intervention to instantiate system classes is neither required nor recommended.

Direct Access Example

typescript
// Direct access without instantiation
const version = __sys__.vars.get("__version__");
const isProd = __sys__.__env__.isProduction();

if (!isProd) {
    __sys__.fs.writeFileSync("./debug.log", `Current version: ${version}`);
}
Environment API

Learn how to manage environment variables safely using the Security Shield.