$ show pixlcore/xyops
xyOps is a self-hosted, multi-server job scheduler and monitoring platform written in Node.js (CommonJS) with a browser-based single-page application. It is the successor to Cronicle and provides cron-like event scheduling, distributed job execution via WebSocket satellite agents, visual workflow orchestration, real-time server monitoring, alerting, ticketing, secrets management, and a plugin marketplace. The backend is organized around a central engine class (`lib/engine.js`) that mixes in modules for scheduling, job lifecycle, monitoring, alerts, maintenance, SSO, and API handling; the frontend uses a custom page framework with jQuery, CodeMirror, and WebSocket-driven live updates. In production, events are defined with triggers (schedule, interval, single, catchup, range, blackout), jobs are launched locally or on remote satellites, and job output is streamed via SSE/WebSocket. Monitoring data (CPU, memory, disk, processes) flows from satellites to the master, where JEXL expressions evaluate alert conditions and store multi-resolution timelines. The system persists to SQLite/Postgres/Redis via a custom storage abstraction (unbase) and supports import/export, snapshots, activity logging, and a plugin marketplace. Maintenance is active: frequent releases, CI workflows, security patching, and a comprehensive integration test suite are present. The codebase shows some technical debtβlarge monolithic files, duplicated CRUD patterns, callback-heavy async, and a custom UI frameworkβbut the core architecture is modular, well-documented, and backed by a real test suite.
The LLM identified 5 files worth highlighting for reuse:
Implements AES-256-GCM encryption/decryption for stored secrets with per-record salt and additional authenticated data (AAD), plus cache reload and scoped access. The crypto logic is isolated and could be extracted into any Node.js project needing encrypted-at-rest credential storage.
Contains a PeerSocket class implementing resilient WebSocket connections with automatic reconnect, exponential backoff, and ping/timeout health checks. This is a self-contained networking primitive useful for any distributed system needing reliable peer-to-peer communication.
Provides a crontab parser used by both client and server to interpret cron expressions (ranges, steps, lists). It is a standalone utility that can be reused in any scheduling application.
Collects monitoring data from workers, evaluates alert conditions via precompiled JEXL expressions, and persists results into multi-resolution timelines (hourly/daily/monthly/yearly). The expression cache and timeline merge logic are reusable for any metrics/alerting pipeline.
Implements a workflow engine with node types (trigger, event, job, controller, action) and controllers for multiplex, repeat, split, join, decision, and wait. The controller patterns are generic orchestration primitives that could be extracted for other workflow systems.