// 01 OVERVIEW
TECHNICAL DESCRIPTION
Real-time system resource monitor for Node.js with automated threshold alerts, HTTP health check endpoints, and zero external runtime dependencies. Enforces a strict sub-25MB memory ceiling while capturing CPU, RAM, network, and process telemetry.
// 02 DEPLOYMENT & ONBOARDING
INSTALLATION COMMAND
$
npm install crystalsystem.js // 03 EXECUTION HARNESS
USAGE SNIPPET
import { CrystalSystem } from 'crystalsystem.js';
const monitor = new CrystalSystem({ intervalMs: 1000, maxMemoryMb: 25 });
monitor.on('alert', (metric) => console.warn(`Resource threshold breach:`, metric));
monitor.start(); // 04 SYSTEM INVARIANTS
ARCHITECTURAL FEATURES
- [+] Zero external dependencies (pure Node.js native os and process APIs)
- [+] Strict sub-25MB memory consumption ceiling
- [+] Real-time event emitter for CPU, heap, and RSS metric thresholds
- [+] Built-in HTTP /health telemetry status endpoint handler