npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@onasafari/hrm

v0.0.1

Published

Heartrate monitor server client and other fitness tools

Downloads

12

Readme

HRM

OBS + Web App

Heart Rate Monitor Client and Server for Interactive Virtual Fitness

HRM was built for my mom, myself, and her trainer, Tim, to continue personal workouts during the pandemic. HRM provides a web client + server solution to see real-time heart rate data from anywhere with a bluetooth, supported browser, and internet connection. TODO: add more security

How does it work?

  • Web bluetooth is an unstable, but really cool recent development that makes it easy to write websites that can send and receive bluetooth data. Standardized Bluetooth 4.0/Ant+ heart rate monitors are relatively cheap 25-60$ and you can start tracking realtime heartrate data with a supported chrome browser. Essentially, this software builds off of:
  1. Web bluetooth heart rate monitor demo
  2. websocket.io chat app. Instead of chatting with words, you're chatting with your heartrate data.
  3. Heart rate zones and colors use the simple max heart rate = 220-AGE and reports percentages of maximum heart rate.
  4. Tabata Interval fitness timer
  5. Awesome web server stuff (nginx, pm2, npm, jquery, bootstrap, letsencrypt, ....)

Running

npm install
npm start
#1- go to localhost:3000 to see aggregate heart rate data and use a tabata timer
#2- go to localhost:3000/hrm to log individual bluetooth heartrates
#3- go to localhost:3000/hrm_mock to send fake heartrate data 
Starting tabata server and client

After runing npm start, open browser to localhost:3000. Click the button to start logging a client heart rate. Open an additional browser to localhost:3000 to view the client heartrate data in realtime.

HRM bringup

Starting tabata server and client

Test multiple clients using the mock client utility localhost:3000/hrm_mock or connect multiple bluetooth interfaces if you have them.

HRM Mock

Using the tabata/fitness timer

Currently has a 5 second countdown and then will loop through work and rest periods indefinitely. Makes beeping noises.

HRM Tabata

For more detailed information:

Thanks

I would love to work with other people on improving this app. Ideally more personal trainers can continue providing guidance for improved fitness during the pandemic. I am releasing everything under an Apache 2.0 license.

Shout out to:

  • tim the trainer
  • My mom!
  • dogebot for web UI information
  • ilia for helping me with web server stuff

I tried a few different things before I got to this solution. Also, I have some more details here that I wrote on an exciting friday night during the pandemic: origins story.