Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrielcsapo/node-dashboard
🚫 an express plugin to show route traffic
https://github.com/gabrielcsapo/node-dashboard
dashboard deprecated express metrics node
Last synced: 8 days ago
JSON representation
🚫 an express plugin to show route traffic
- Host: GitHub
- URL: https://github.com/gabrielcsapo/node-dashboard
- Owner: gabrielcsapo
- Created: 2016-06-16T04:53:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-02T05:53:47.000Z (about 7 years ago)
- Last Synced: 2025-01-20T04:13:09.338Z (10 days ago)
- Topics: dashboard, deprecated, express, metrics, node
- Language: JavaScript
- Homepage:
- Size: 21.6 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> DEPRECATED: THIS WILL NO LONGER BE UNDER DEVELOPMENT
# node-dashboard
> an express plugin to show route traffic
[![Npm Version](https://img.shields.io/npm/v/node-dashboard.svg)](https://www.npmjs.com/package/node-dashboard)
[![Dependency Status](https://david-dm.org/gabrielcsapo/node-dashboard.svg)](https://david-dm.org/gabrielcsapo/node-dashboard)
[![devDependency Status](https://david-dm.org/gabrielcsapo/node-dashboard/dev-status.svg)](https://david-dm.org/gabrielcsapo/node-dashboard#info=devDependencies)
[![Build Status](https://travis-ci.org/gabrielcsapo/node-dashboard.svg?branch=master)](https://travis-ci.org/gabrielcsapo/node-dashboard)
[![npm](https://img.shields.io/npm/dt/node-dashboard.svg)]()
[![npm](https://img.shields.io/npm/dm/node-dashboard.svg)]()## Installation
`npm install node-dashboard --save`
## Usage
```javascript
var app = require('express')();
var analytics = require('node-dashboard');
var dashboard = require('node-dashboard/dashboard');app.use(analytics); // this will bind the analytics listener
app.use('/admin', dashboard); // this will show the dashboard at the admin route
app.listen('1337', function() {
console.log('node-example-app listening on http://localhost:1337');
done();
});
```## Data
> structure
```json
"vuk": [ // name of subdomain
{
"url": "/distribute", // name of url path
"traffic": [
{
"method": "GET", // HTTP Method
"message": "Not Found", // HTTP message
"status": 404, // HTTP Status
"date": "1466129236274", // Unix-Timestamp
"time": 0.6272679999999999, // Time in milliseconds
"geo": { // Geo Object
"range": [
117440512,
134219263
],
"country": "US",
"region": "",
"city": "",
"ll": [
38,
-97
],
"metro": 0
},
"referrer": "sibwe.gw" // Referrer information
}
]
}
]
```