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

vincent

v0.0.5

Published

Vincent is a tiny bot for spying and saving tweets which you want.

Downloads

12

Readme

Vincent NPM version

A tiny bot for spying and saving tweets you wish.

Installation

Run npm install vincent

Documentation

Vincent uses Firebase for reading and saving tweets.

Step 1: Sign up on Firebase.com

Step 2: Create a new app on Firebase

Step 3: Create database schema like this:

VincentDatabase:
  tweetsAboutNodejs:
    settings:
      queries:
        "query-1":
          lastId: 0
          name: "nodejs.org"
          

Step 4: Create new JS file and require Vincent

var Vincent = require('vincent');

// Create a new instance of Vincent
var botik = new Vincent.core('YOUR FIREBASE URl');

// Create a new instance of Twitter service
var twitter = new VincentTwitter({
  consumer_key: '...',
  consumer_secret: '...',
  access_token: '...',
  access_token_secret: '...',
});

// Then start to spying like this
botik.start(function(settings) {
  botik.spyOn(function(result) {
    twitter.now(settings, result);
  });
});

// Get all results like this
botik.start(function() {
    var data = botik.getData();
    console.log(data);
});

IMPORTANT: Go here to create an app and get OAuth credentials (if you haven't already): https://dev.twitter.com/apps/new

Step 5: Profit!

Firebase settings options

– You can exclude tweets (optional):

settings:
  excludeTweets:
    exclude-1: "Tweet you don't want"
    exclude-2: "Bla Bla Justin Bieber"
    ...
  

– You can exclude users (optional):

settigns:
  excludeUsers:
    exclude-1: "JustinBieber"
    ...
    

– Queries that Vincent search:

settings:
  queries:
    query-1:
      name: "nodejs.org"
      lastId: 0
    query-1:
      name: "Node.js"
      lastId: 0
    ...
    

– User has more than n followers (optional):

settings:
  userHasAtLeastFollowers: 120
  

– Ratio between followers and following (optional):

settings:
  ratioBetweenFollowersAndFriends: 1.2
  

That means user has 20% more followers than friends (following).

– You can have as many projects as you want

tweetsAboutNodejs:
    settings:
      queries:
        "query-1":
          lastId: 0
          name: "nodejs.org"
          
angularjs:
    settings:
      queries:
        "query-1":
          lastId: 0
          name: "angularjs"