Real-Time CLI Performance Monitor
A lightweight Node.js command-line dashboard for tracking runtime metrics.
Metrics Engine is a minimal yet structured monitoring system designed to simulate real-time request tracking, success rates, and error monitoring using an interactive CLI dashboard.
Metrics Engine provides a clean dashboard-style interface that:
- Tracks total requests
- Tracks successful operations
- Tracks failed operations
- Displays real-time progress bars
- Allows reset and controlled shutdown
Unlike traditional log-based output, this project focuses on:
✔ Visual clarity
✔ Structured metric presentation
✔ Lightweight runtime
✔ Real-time command interaction
- 🔵 Live metrics dashboard
- 🟢 Success counter tracking
- 🔴 Error counter tracking
- 📈 Dynamic progress bar rendering
- 🔄 Reset system
- 🧼 Clean UI refresh
- ⚡ Fast execution with no dependencies
| Command | Description |
|---|---|
| hit | Simulate successful request |
| fail | Simulate failed request |
| reset | Reset all counters |
| exit | Shutdown metrics engine |
Live CLI metrics dashboard preview:
metrics/ │ ├── index.js ├── package.json ├── README.md ├── SKILL.md └── proof/ └── dashboard.jpg
git clone https://github.com/Syawal2/metrics.git
cd metrics
npm install
node index.js
metrics> hit
metrics> hit
metrics> fail
metrics> reset
metrics> exit
- Node.js readline CLI interface
- Stateful in-memory metric tracking
- Dynamic console rendering
- ANSI color formatting
- Live dashboard refresh
- Modular command routing
- Each
hitincreases both request and success counters. - Each
failincreases request and error counters. resetclears all metrics instantly.- The dashboard refreshes after every action.
- Exit command gracefully closes the interface.
This repository is structured as a modular CLI monitoring component, following a lightweight execution model aligned with Intercom-style modular architecture.
It demonstrates real-time state updates and controlled command interaction.
trac1q0jt36v42yk33c2u925xmk72vlycuc4gf5emssjcxy224aansyjqa27k7e
Active fork
Custom dashboard implementation
Proof included
Ready for execution
🔵 Metrics Engine — Clean, structured, and real-time.
