JSPM

express-control-room

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q38149F
  • License MIT

Express Control Room is a middleware package for the Express.js framework designed to provide a centralized control interface for managing and monitoring various aspects of your Express application and the server. It offers features such as real-time logging, route management, and request/response inspection, server monitoring.

Package Exports

  • express-control-room
  • express-control-room/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (express-control-room) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

express-control-room

npm version

Express Control Room is a middleware package for the Express.js framework designed to provide a centralized control interface for managing and monitoring various aspects of your Express application and the server. It offers features such as real-time logging, route management, and request/response inspection, server monitoring.

Installation

npm i express-control-room

Getting started

const express = require('express');
const { ControlRoom } = require('express-control-room');

const app = express();
const port = 3000;

// Define a route
app.get('/', (req, res) => {
  res.send('Hello, World!');
});

// connect ControlRoom into express using middleware
app.use(ControlRoom);

// Start the server
app.listen(port, () => {
  console.log(`Server is running on http://localhost:${port}`);
});

Usage

  1. Duck DB
  2. Server Sent Events
  3. PM2

Features

  • Custom logs store and realtime response
  • Real-time logging of server activities.
  • Dynamic route management and inspection.
  • Request and response analysis for debugging.
  • Request logs store and realtime response
  • PM2 application management

API's and Stream's

Method URL Comments
GET /control-room/utils Returns server details
GET /control-room/token Returns auth token
GET /control-room/logs/default/stream SSE stream default logs on realtime

License

MIT