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

gitleads

v1.0.2

Published

GitHub Lead Tracking Script. Sends results to slack.

Readme

GitLeads

Handy module for generating leads from github and posting them to Slack or other areas.

Purpose

This module does two things:

  1. Reads user profile information from GitHub
  2. Post that information to Slack, if it meets certain basic requirements

Use Case

You are running a website. People sign up to your website. You want to know if these people work for companies that may bring additional business to your company.

You use GitLeads to programmatically query GitHub for their information, and post it to Slack for your team to see, if it turns out to be interesting.

If there is interest / I have time, more endpoints will be added—i.e. email, write to file, etc.

Installation

npm i gitleads

Usage in Code


	const GitLeads = require('gitleads');

	const SlackURL = 'your_slack_url_here';

	var id = 'TedYav';
	var email = '[email protected]';

	GitLeads.lookup(id,email)
	.then(function(lead){
		return lead.postToSlack({url: SlackURL});
	})
	.then(function(){
		console.log('That was easy!');
	})
	.catch(function(err){
		console.log('Something went wrong:');
		console.log(err);
	});

Note: it is important to include catch at the end of the promise chain. If no user is found on GitHub for the id and email provided, or if the configuration for Slack is incorrect, an error will be thrown.

Options

postToSlack takes an object containing options as follows:

url: url for slack's REST API including your key. If not provided, defaults to environment variable SLACK_URL. If that is undefined, an error will be thrown.

channel: channel to post to on slack. Defaults to '#slacktest'

botName: bot name to post to on slack. Defaults to 'github-signup'

botIcon: bot icon to use on slack. Defaults to ':octocat:'

missingLimit: number of 'important' fields that can be missing, before the lead is not posted to slack. Defaults to 5.

importantFields: fields which are considered 'important' by your organization. If more than missingLimit are missing from a user's Github Profile, then the lead will not post to slack. Defaults to: ['company', 'email', 'blog', 'organizations', 'location']

Example:


options = {
	url: 'slack_api_url',
	channel : '#slack-leads',
	botName : 'github-signup-bot',
	botIcon : ':octocat:',
	missingLimit : 3, 
	importantFields : ['company', 'email', 'blog', 'followers']
}

Any field of this object which is left blank will have a default value chosen as specified.

Usage by CLI

If you want to run the script by hand, or test it out with a dummy server, there is a CLI interface.

Type this into your shell and follow the instructions:

npm i gitleads && cd node_modules/gitleads && node CLI/gitLeadsCLI.js

Extensions

Additional outputs will be added as I have time to develop them.