MCPcopy Index your code
hub / github.com/bugthesystem/hapijs-status-monitor

github.com/bugthesystem/hapijs-status-monitor @v1.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.1 ↗ · + Follow
6 symbols 9 edges 18 files 0 documented · 0%

Browse by type

Functions 6 Types & classes 0
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

hapijs-status-monitor

Build Status npm Coverage Status

Simple, self-hosted module based on Socket.IO and Chart.js to report realtime server metrics for hapi.js servers.

Inspired from express-status-monitor

screenshot

Installation & setup

Install package

npm install hapijs-status-monitor --save

Register plugin

await server.register({ plugin: require('hapijs-status-monitor') });

Run server and go to /status

Run examples

  1. Go to cd examples/
  2. Run npm i
  3. Run server npm start
  4. Go to http://localhost:8000/status

Options

Monitor can be configured by passing options object into server register method

await server.register({
  plugin: require('hapijs-status-monitor'),
  options: {
    title: 'My Status Monitor',
    routeConfig: {
      auth: false
    }
  }
});

Default options:

title: 'hapi.js Status',
path: '/status',
spans: [{
  interval: 1,     // Every second
  retention: 60    // Keep 60 datapoints in memory
}, {
  interval: 5,     // Every 5 seconds
  retention: 60
}, {
  interval: 15,    // Every 15 seconds
  retention: 60
}],
routeConfig: {}  // Route options, see https://github.com/hapijs/hapi/blob/master/API.md#route-options

Contributors

Thanks goes to these wonderful people (emoji key):

| [

z i λ a s a l](http://www.ziyasal.com)

💻 ⚠️ 📖 | [

Daniel Bayerlein](https://github.com/danielbayerlein)

💻 ⚠️ 📖 | | :---: | :---: |

This project follows the all-contributors specification. Contributions of any kind welcome!

License

Copyright (c) 2016-present @ziyasal & @danielbayerlein. See LICENSE for details.

Core symbols most depended-on inside this repo

Shape

Function 6

Languages

TypeScript100%

Modules by API surface

src/public/javascripts/app.js3 symbols
src/middleware-wrapper.js1 symbols
examples/tester.js1 symbols
examples/server.js1 symbols

For agents

$ claude mcp add hapijs-status-monitor \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page