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

blum-auto-play

v1.0.3

Published

A script that will play mini game in Blum for you, using your tickets and collecting blum points

Downloads

42

Readme

Blum auto play game

A script that will play mini game in Blum for you, using your tickets and collecting blum points

Installation

  1. Install the blum-auto-play package:
npm install blum-auto-play
  1. Configure package.json:

    • Open package.json
    • Add "type": "module" to the JSON structure:
{
  "type": "module"
}
  1. Create a index.js file and paste the code:
import { play } from "blum-auto-play";
const authToken = "Bearer <your_token>";
play(authToken);
  1. Add your Bearer token:

    • Copy your Blum Bearer token and paste it in the index.js file.

Receiving a Bearer token

  1. Install the Resource Override extension for Chrome

  2. Set up Resource Override:

    • Click the Add Rule button and select Change Headers.
    • In the For field, enter * (for convenience).
    • Click Edit Headers and select from the presets: Enable CORS, Allow Frames and Allow Outside Content.
    • Close the settings window.
  3. Get your Bearer token:

    • Go to the web version of Telegram and open DevTools (usually F12 or Ctrl+Shift+I).
    • Launch Blum and go to the Network tab in DevTools.
    • Find your Bearer token in the request headers.
  4. Copy your Bearer token and paste it into the index.js file.

how to get Bearer token

Run the script:

   node index.js

Functionality

  • Starts a new game
  • Collects a random number of points between 170 and 195
  • Waits a random amount of time between 30 and 35 seconds
  • Claims the points
  • If an error occurs, waits 5 seconds and retries
  • If the token is invalid, logs an error and exits
  • If the number of tickets is 0, logs an error and exits

Note:

Once you have received the Bearer token, be sure to disable the Resource Override extension to avoid problems with other sites.

extension

Happy mining!


Блум автоматический игровой процесс

Скрипт, который будет играть за вас в мини-игру в Blum, используя ваши билеты и собирая очки Blum.

Установка

  1. Установите пакет blum-auto-play:

    npm install blum-auto-play
  2. Настройте package.json:

    • Откройте файл package.json.
    • Добавьте "type": "module" в JSON-структуру:
    {
      "type": "module"
    }
  3. Создайте файл index.js и добавьте следующий код:

    import { play } from "blum-auto-play";
    const authToken = "Bearer <ваш_токен>";
    play(authToken);
  4. Добавьте ваш Bearer токен:

    • Вставьте ваш Bearer токен вместо <Bearer token> в файле index.js.

Получение Bearer токена

  1. Установите расширение Resource Override для Chrome

  2. Настройте Resource Override:

    • Нажмите кнопку Add Rule и выберите Change Headers.
    • В поле For введите * (для удобства).
    • Нажмите Edit Headers и выберите в предустановках: Enable CORS, Allow Frames и Allow Outside Content.
    • Закройте окно настройки.
  3. Откройте Web Telegram и DevTools:

    • Перейдите на веб-версию Telegram и откройте DevTools (обычно F12 или Ctrl+Shift+I).
    • Запустите Blum и перейдите на вкладку Network в DevTools.
    • Найдите ваш Bearer токен в заголовках запросов.
  4. Копируйте ваш Bearer токен и вставьте его в файл index.js.

how to get Bearer token

Запустите скрипт:

   node index.js

Функциональность

  • Запускает новую игру.
  • Собирает случайное количество очков от 170 до 195.
  • Ждет случайное время от 30 до 35 секунд.
  • Забирает очки.
  • В случае ошибки ждет 5 секунд и пробует снова.
  • Если токен недействителен, скрипт выводит ошибку и завершает работу.
  • Если билетов 0, скрипт выводит ошибку и завершает работу.

Важно:

После того как вы получили Bearer токен, обязательно отключите расширение Resource Override, чтобы избежать проблем с другими сайтами.

extension

Приятного майнинга!