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

strava-privacy

v0.1.8

Published

Automatically change privacy settings for new and existing activities on Strava based on activity type.

Downloads

16

Readme

Strava Privacy Helper

npm npm

This program will help you set privacy settings on your strava activities according to the type of activity. For example, you can set your runs to everyone and weight training activities to only_me.

The problem

Strava does not have an option to set privacy settings based on activity type. You can only edit privacy settings for all your activities. Furthermore, the Strava API does not allow setting the visibility of your activities either.

The Solution

Strava Privacy Helper uses a combination of strava api and web interface to edit visibility setting for your existing or even newer activites with rules based on activity type. It can wait for new activities (--watch) by creating a webhook server with the help of ngrok.

Usage

You can install strava-privacy using npm.

$ npm i -g strava-privacy

...

$ strava-privacy --help
Usage: index [options]

Options:
  --strava-email <value>     Strave login email address.
  --strava-password <value>  Strava login password.
  --ngrok-auth <value>       Ngrok auth token.
  --port <value>             Port for webhook client.  (default: "8095")
  --num <value>              Number of activities to process.
  --rules <values...>        Rules to be used to set privacy on activities.
  --watch                    Watch for new activities.
  --headful                  Run chromium in non-headless mode.
  -h, --help                 display help for command

Usage is pretty straightforward but there are a few pre-requisites:

  • Strava user login details because the app has to use both strava api and browser automation.
  • You must create an app at https://www.strava.com/settings/api. Use localhost for callback domain. Also make sure to add an icon to the app, otherwise it would not be usable.
  • In order to use in watch mode, you'll need a free ngrok auth token.

strava-privacy screenshot The application is very easy to use. Just follow the on screen instructions.

Watch Mode

You can run the application in watch mode that will wait for new activities and automatically set their visibility settings as per your rules. For example:

strava-privacy --watch --rules WeightTraining=only_me Walk=only_me

For this feature to work properly, you'll need an ngrok auth token. It's free and very easy to signup and obtain. Signup and go to https://dashboard.ngrok.com/get-started/your-authtoken.

Bug Reports and Suggestions

Suggestions are welcome, please create an issue if you've any. Also let me know if you find any bugs.