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 🙏

© 2026 – Pkg Stats / Ryan Hefner

salamoonder

v2.6.2

Published

API Wrapper for salamoonder.com

Downloads

63

Readme

Salamoonder API Wrapper

Usage

import Salamoonder, { TwitchIntegrity } from "salamoonder";
const api = new Salamoonder(process.env.SALAMOONDER_API_KEY);

try {
  api.generateIntegrity().then((response: TwitchIntegrity) => {
    console.log(response.token);
  });
} catch (error) {
  console.log(error);
}

Disclaimer

By default you are supporting me through the usage of my app id. This can be disabled by simply adding false as a second parameter when initiating the salamoonder class.

const api = new Salamoonder(process.env.SALAMOONDER_API_KEY, false);

API Calls

getBalance()

Example

api.getBalance().then((bal: number) => {
  console.log(bal);
});

Returns

number;

solveCaptcha()

Solves a kasada captcha for a given site.

Parameters

  • site: Site to solve the captcha for

Example (for Twitch)

api.solveCaptcha(TaskPjsFile.TWITCH).then((response: getTaskResult) => {
  console.log(response);
});

Returns

{
  errorId: number;
  solution: {
    type: string;
    "user-agent": string;
    "x-kpsdk-cd": string;
    "x-kpsdk-cr": string;
    "x-kpsdk-ct": string;
    "x-kpsdk-r": string;
    "x-kpsdk-st": string;
  };
  status: "ready" | "pending";
}

registerTwitchAccount()

Registers a new Twitch account.

Parameters

  • email: Email address for the account

Example

api.registerTwitchAccount("[email protected]").then((response: getTaskResult) => {
  console.log(response);
});

Returns

{
  errorId: number;
  solution: {
    type: string;
    access_token: string;
    password: string;
    username: string;
  }
  status: "ready" | "pending";
}

checkTwitchIntegrity()

Checks the integrity of a Integrity Token.

Parameters

  • token: Integrity Token to check

Example

api.checkTwitchIntegrity("token").then((response: getTaskResult) => {
  console.log(response);
});

Returns

{
  errorId: number;
  solution: {
    type: string;
    client_id: string;
    client_ip: string;
    device_id: string;
    exp: string;
    iat: string;
    is_bad_bot: string;
    iss: string;
    nbf: string;
    user_id: string;
  }
  status: "ready" | "pending";
}

scrapeTwitch()

Scrapes Twitch for meta data

Example

api.scrapeTwitch().then((response: TwitchScraperSolution) => {
  console.log(response);
});

Returns

{
  errorId: number;
  solution: {
    biography: string;
    profile_picture: string;
    username: string;
  }
  status: "ready" | "pending";
}

generateIntegrity()

Generates an Integrity token.
Both Salamoonder versions require a proxy with the format user:password@host:port

Generation methods

API_Public

Generation via Salamoonder, with token

API_Local

Generation via Salamoonder, no token

Self

Generation locally, optionally token & proxy

Passport

Generate Passport Integrity Tokens, optionally proxy

Parameters

  • type: Generation Method
  • data: Data for each method

Example

api
  .generateIntegrity(IntegrityGenerateType.API_PUBLIC, {
    proxy: "test:123@test:3000",
    access_token: "jneapaw1pr0ob83fievedqpi1jqzb4",
  })
  .then((response: TwitchIntegrity) => {
    console.log(response);
  });

Returns

{
  clientId: string;
  token: string;
  sessionId?: string;
  userAgent: string;
  deviceId: string;
}