All Projects → okdistribute → hyperhealth

okdistribute / hyperhealth

Licence: other
Monitor the health of a hyperfeed (hypercore or hyperdrive), including peer count and peer mirror percentages.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to hyperhealth

dat-shell
Dat shell. Open a remote dat and explore with cd, ls, etc.
Stars: ✭ 62 (+63.16%)
Mutual labels:  hyperdrive, dat
exhale
A Pebble app for breathing, written in C.
Stars: ✭ 12 (-68.42%)
Mutual labels:  health, stats
Discovery Swarm Webrtc
discovery-swarm for WebRTC
Stars: ✭ 56 (+47.37%)
Mutual labels:  peer, swarm
coronavirus-stats
Automatically scrape data and statistics on Coronavirus to make them easily accessible in CSV format
Stars: ✭ 47 (+23.68%)
Mutual labels:  health, stats
RightStatsMonitor
A useful tool for displaying FPS with high precision. Very lightweight and fast. GC-free
Stars: ✭ 14 (-63.16%)
Mutual labels:  stats
SWARM
Profit Switching Mining Administrator For HiveOS/Linux & Windows: HiveOS Integrated
Stars: ✭ 66 (+73.68%)
Mutual labels:  swarm
Swarm-Formation
Distributed Swarm Trajectory Optimization for Formation Flight in Dense Environments
Stars: ✭ 31 (-18.42%)
Mutual labels:  swarm
LeagueReplayParser
C# library which can read some data from a .rofl file, and start a replay in the client. (no longer actively maintained)
Stars: ✭ 20 (-47.37%)
Mutual labels:  stats
you-can-quit
A tool to support your progress in quitting whatever your bad habit is.
Stars: ✭ 56 (+47.37%)
Mutual labels:  stats
Covid-19-Tracker
This is an Covid-19 tracker especially made for India
Stars: ✭ 39 (+2.63%)
Mutual labels:  health
pulsetracker
An open source tool built for monitoring heart rate.
Stars: ✭ 20 (-47.37%)
Mutual labels:  health
jqtop
Analyze json logs in realtime
Stars: ✭ 14 (-63.16%)
Mutual labels:  stats
hyperhyperspace-core
A library to create p2p applications, using the browser as a full peer.
Stars: ✭ 112 (+194.74%)
Mutual labels:  peer
freehealth
Free and open source Electronic Health Record
Stars: ✭ 39 (+2.63%)
Mutual labels:  health
Conkie
JavaScript desktop widgets
Stars: ✭ 75 (+97.37%)
Mutual labels:  stats
TKViewer
NexusTK DAT Object Viewer
Stars: ✭ 18 (-52.63%)
Mutual labels:  dat
helpafamily
Impactful ways to help families in need through donated meals, hygiene kits, and more. By Margarita Humanitarian Foundation.
Stars: ✭ 41 (+7.89%)
Mutual labels:  health
kcal
the personal food nutrition journal
Stars: ✭ 118 (+210.53%)
Mutual labels:  health
ALT
Non-contact real-time heartbeats and respiration monitoring using Artificial Light Texture (ALT).
Stars: ✭ 41 (+7.89%)
Mutual labels:  health
dat
💾 peer-to-peer sharing & live syncronization of files via command line [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ]
Stars: ✭ 8,250 (+21610.53%)
Mutual labels:  dat

hyperhealth

Monitor the health of a hyperfeed (hypercore or hyperdrive), including peer count and peer mirror percentages.

Does not actually download any data content, only downloads some of the metadata and monitors the peer feeds.

npm install hyperhealth

Example

var Health = require('hyperhealth')

var health = Health(core)

// Will fire every 1 second
setInterval(function () {
  var data = health.get()
  console.log(data.peers.length, 'total peers')
  console.log(data.length, 'total length')
  console.log(data.byteLength, 'total bytes')
  console.log('Peer 1 Downloaded ' + (data.peers[0].have / data.peers[0].length) * 100 + '%')
}, 1000)

API

health = Health(hypercore-or-hyperdrive, [opts])

Takes a hyperdrive or hypercore instance. Returns an object health.

health.get()

When called will return an object representing the health at a particular state.

Returns:

  • byteLength: Number of total bytes
  • length: Number of total blocks
  • peers: An array of the peers containing id, length, and have

Peer object

  • id: The unique id of the peer, derived from stream.remoteId
  • have: The number of blocks that have been downloaded by peer
  • length: The total number of blocks
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].