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

scatterbot

v1.0.1

Published

Simple Twitter bot to automate retweets

Readme

Scatterbot

Just a simple bot for scattering data all over Twitter. I'm kidding, he just retweets some things.

const Scatterbot = require('scatterbot');

const config = {
    consumer_key: 'd25fe54c17d9cb57ce698b3c37398aad',
    consumer_secret: 'bdd6131d8a8b67fc6e4a1ab13b2be26b',
    access_token_key: '400309427d9d78610b302014c948cdc7',
    access_token_secret: '4d81eee6685d46217e82378a3da581a8'
}

const bot = new Scatterbot(config);

const params = { track: '#scatter,#bot'}

bot.track(params);

Installation

npm install scatterbot

Getting Started

To use this bot, you will need valid Twitter developer credentials. Here's a guide on how to get them.

const Scatterbot = require('scatterbot');

Configuring the credentials

To start tracking the words you want, you need to pass all the credentials to the bot constructor.

const config = {
    consumer_key: 'add_consumer_key',
    consumer_secret: 'add_consumer_secret',
    access_token_key: 'add_access_token_key',
    access_token_secret: 'add_access_token_secret'
}

You could pass this credentials through environment variables too.

const config = {
    consumer_key: process.env.CONSUMER_KEY,
    consumer_secret: process.env.CONSUMER_SECRET,
    access_token_key: process.env.TACCESS_TOKEN_KEY,
    access_token_secret: process.env.ACCESS_TOKEN_SECRET
}

With the configurations added, just create your bot.

const bot = new Scatterbot(config);

Tracking!

After the initial configuration, now you are ready to track some specific terms. To pass more than one term, separate them with commas, like shown in the example below.

const params = { track: '#scatter,#bot'}

bot.track(params);

Additional Information

This package abstracts some basic functionality of the Twitter npm module to make it easy to track and retweets hashtags, facilitating the users of retweet bots and similars.

License

MIT License

Copyright (c) 2020 Hierro Duarte

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.