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.
__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:
Environment
Secure environment variable manager and restrictive Environment Security Shield.
Filesystem
High-performance I/O operations, stream handling, archives, and file security.
Path
Secure cross-platform path manipulation, resolution, and normalization.
Operating System
Hardware telemetry, system monitoring, and native process management.
Utilities
High-performance suite for string manipulation, async control, and validation.
Dynamic Variables
Standardized key-value store for application configuration and metadata.
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
// 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}`);
}Learn how to manage environment variables safely using the Security Shield.
