Skip to content

jdanks-army/jdanks.armyd

Repository files navigation

jdanks.armyd

The jdanks.army daemon. Run npm ci && npm start to get it going.

Reads input from ./people.json and starts scrapin'.

people JSON format:

[
  [platform, id, ...optional]
]

Supported platforms:

  • "youtube" - id has to be the long UC..... format
  • "dlive"
  • "bitwave"
  • "robotstreamer" - third entry is used as username
  • "trovo" - expects TROVO_CLIENT_ID envar
  • "twitch" - expects TWITCH_CLIENT_ID, TWITCH_CLIENT_SECRET envars

Environment variables

All secrets are optional; in that case, scraping from these websites will not function.

  • JDANKS_PORT · Listen port. Defaults to 80.
  • JDANKS_SSL_PORT · Listen port for HTTPS. Defaults to 443.
  • JDANKS_SSL_PRIVKEY · Location of private key. Defaults to /etc/certs/api.jdanks.army/privkey.pem.
  • JDANKS_SSL_CERT · Listen of certificate. Defaults to /etc/certs/api.jdanks.army/fullchain.pem.
  • TROVO_CLIENT_ID · for Trovo support.
  • TWITCH_CLIENT_ID TWITCH_CLIENT_SECRET · for Twitch support.

Endpoints

Exposed endpoints are

  • /streams · returns JSON objects of scraped data, formatted as:
    • {
        platform,
        id,
        name,
        avatar,
        live,
        title,
        viewers
      }
      
  • /src · returns license information and link to source code

About

JDANKS.army daemon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published