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

cage-cli

v1.1.0

Published

realtime unfollower detection for any social services

Downloads

10

Readme

Introduction

Cage is a cli application for detecting unfollowers on any social services. this application will check all of your followers using each watcher and compare them to the previous check. if there is a difference, it will notify you of the changes.

Usage

$ npm install -g cage-cli@dev

$ cage --help

Usage: cage [options]

(almost) realtime unfollower detection for any social services 🦜⛓️🔒

Options:
  -c, --config <path>    path to the configuration file (default: "./config.json")
  -d, --database <path>  path to the database file (default: "./data.sqlite")
  -p, --drop-database    delete the old database file
  -v, --verbose          enable verbose level logging
  -V, --version          output the version number
  -h, --help             display help for command

or you can just deploy with docker if you want:

$ docker run -d --name cage async3619/cage -v /path/to/config.json:/home/node/config.json

of course, you can also use docker-compose:

version: "3.9"

services:
    cage:
        image: async3619/cage
        volumes:
            - /path/to/config.json:/home/node/config.json

Watchers and Notifiers

Watchers

Watchers are independent feature that has the ability to watch to check users who follow your account per service.

Supported Watchers

| Service | Support? | |-----------|:--------:| | Twitter | ✅ | | GitHub | ✅ | | Mastodon | ✅ | | Instagram | ✅ | | TikTok | ❌ | | YouTube | ❌ | | Twitch | ❌ | | Facebook | ❌ | | Reddit | ❌ | | Discord | ❌ |

Notifiers

When we detect unfollowers, new followers, or any other events, Cage will notify you via Notifiers.

Supported Notifiers

| Service | Support? | |-----------------|:--------:| | Discord Webhook | ✅ | | Telegram Bot | ✅ | | Slack Webhook | ✅ | | Email | ❌ | | SMS | ❌ |

Configuration

this application reads configuration file from ./cage.config.json by default. if there's no configuration file to read, this application will create you a default configuration file for you:

{
    "watchInterval": 60000,
    "watchers": {},
    "notifiers": {}
}

you can use json schema file config.schema.json on this repository.

watchInterval: number (required)

specify watching interval in millisecond format. minimal value is 60000.

watchers: Record<string, WatcherOptions> (required)

twitter

Internally, Cage uses Rettiwt-API to get the followers list. so you need to get the API Key with extensions that provided by the author. you can see the instruction here.

{
    "type": "twitter", // required
    "apiKey": "API Key that retrieved with X Auth Helper extension", // string, required
    "username": "your twitter username", // string
}

github

watcher configuration for GitHub service.

{
    "type": "github", // required
    "authToken": "personal access token of your github account" // string, required
}

instagram

watcher configuration for Instagram service.

{
    "type": "instagram", // required
    "username": "your instagram username", // string, required
    "password": "your instagram password", // string, required
    "targetUserName": "target instagram username you want to crawl followers", // string, required
    "requestDelay": 1000 // number, optional, default: 1000
    // requestDelay is the delay time between each request to instagram server.
    // this is to prevent getting banned from instagram server.
}

notifiers: Record<string, NotifierOptions> (required)

discord

notifier configuration for Discord Webhook notifier.

{
    "type": "discord",
    "webhookUrl": "Discord Webhook url" // string, required
}

telegram

notifier configuration for Telegram Bot notifier.

{
    "type": "telegram",
    "botToken": "token that generated from https://t.me/CageNotifierBot", // string, required
    "url": "custom notification relay server url" // string, optional
}

In most cases, you will not need url property since since Cage already provides hosted version of this server out of the box. but if you want to use custom notification relay server, take a look this repoitory.

slack

notifier configuration for Slack Webhook notifier.

{
    "type": "slack",
    "webhookUrl": "Slack Webhook url" // string, required
}