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

jtbot

v2.0.9

Published

A Twitter retweet and favorite bot

Downloads

4

Readme

jtbot

Greenkeeper badge Build Status Known Vulnerabilities ISC License

jtbot is a Node-based Twitter bot which automates the process of retweeting tweets of interest.

This project was previously known as Jade-bot

Installation

Set up the bot

$ git clone https://github.com/Raindeer44/jtbot.git
$ cd jtbot/
$ npm
$ npm test

jtbot is available on npm:

npm install -g jtbot

Get API keys

Set up application keys for the Twitter account you want to use: https://apps.twitter.com/app/new. Create a file called .env (with the dot) and put these keys in it:

  • Consumer Key (API Key)
  • Consumer Secret (API Secret)
  • Access Token
  • Access Token Secret

.env also needs the rate at which you want the bot to retweet (in minutes).

For example, .env might look something like

CONSUMER_KEY=Fw***********P9
CONSUMER_SECRET=TD************Cq
ACCESS_TOKEN=31**************UC
ACCESS_TOKEN_SECRET=r0************S2

TWITTER_RETWEET_RATE=30

Start the bot

That's all the set up! Now just run

$ npm start

For continuous usage, either run on a server (if you happen to have one lying around) or deploy to Heroku, a serverless architecture or a similar service.

Contributing

Please fork this repository and contribute back using pull requests.

Any contributions, large or small, major features, bug fixes and integration tests are welcomed and appreciated but will be thoroughly reviewed and discussed.

FAQ

Why doesn't jtbot favorite/like tweets anymore?

Unfortunately automated favorites/likes are no longer allowed by the Twitter TOS. As such, functionality has been removed.

Does my username need to go somewhere?

Nope! The Twitter application keys are linked to the account.

Links

This bot was created with the help of Spences10's Node.js Twitter bot bootstrap, and with inspiration from @amanhimself.