Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

@bpanel/peers-widget

0.2.2 • Public • Published

Peers Widget

This is a simple widget for the bPanel Dashboard plugin that displays peer information in two widget areas.

In the bottom widgets an expandable list of peers are displayed.

screenshot

In the customChildrenAfter area, a map is displayed.

screenshot

You will need API keys for two different services for the map to work. The map uses an external API to get approximate geolocations of nodes based on IP Address. To get your free API Key, head to ipstack and add your key to your secrets.json located in your bpanel config directory (defaults to ~/.bpanel). Must be running bPanel version 0.3.1 or above for secrets support. You can also get a premium account to support SSL for your map ($10/month). The second key is a Google Maps API key which you can get here

Your secrets.json should look something like this:

{
  "ipstack": "my-secret-key",
  "googleMaps": "my-google-key"
}

install

npm i @bpanel/peers-widget

Downloadsweekly downloads

21

version

0.2.2

license

MIT

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability