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

github2range

v1.0.4

Published

Self-hosted GitHub integration for Range.

Downloads

9

Readme

Range Logo

GitHub 2 Range · License Twitter

Range helps teams know what’s happening, stay in sync, and actually feel like a team. It’s thoughtfully designed software that helps teams share daily check-ins, track goals, and run better meetings. So you can do your best work together.

Everything is easier in Range because it works with the tools you already use. Your tasks, documents, and code changes are already in Range, so you don’t have to enter data twice.

Find out more at www.range.co.

About

Range supports native integrations for both GitHub and GitHub Enterprise via GitHub's OAuth APIs. However in some situations it is not possible to use these APIs, either due to administrative controls or firewalls that prevent API access.

This package provides a self-hosted script that allows you to generate GitHub suggestions without giving Range direct access to GitHub APIs or tokens.

Installation

npm install -g github2range

Usage

Example:

$ github2range --config our-team.json

▸ Collecting events for dpup after 7/16/2019, 6:51:51 PM
• range-labs : 45 events in period
• Suggestion for dpup CODE_CHANGE MERGED : admin: fixes updating of name
• Suggestion for seanami CODE_CHANGE MERGED : Fix issues with getUserListForOrg
• Suggestion for dpup CODE_CHANGE MERGED : materializer: create views for org stats
▸ Saw 2 events from unmapped users: kowitz, stephyeung
▸ 3 suggestions found, sending to Range
▸ All done!

Configuration Options

githubAccessToken - A personal API key for GitHub with repo and user scopes.

githubHost - The API hostname for your GitHub Enterprise instance. Default: api.github.com

rangeWebhook - The URL for the Range webhook where suggestions will be posted.

users - A map of GitHub usernames to the email address of a Range user.

maxAge - The maximum age of events that should be processed. Default: 24.

See sample-config.json for a template of a minimal configuration file. See below for additional options.

This config can be passed as a flag, --config config.json, or saved in one of the following locations:

  • ~/.github2rangerc
  • ~/.github2range/config
  • ~/.config/github2range
  • ~/.config/github2range/config
  • /etc/github2rangerc
  • /etc/github2range/config

Docker

This repository provides a Dockerfile which can be used to execute github2range. You can customize the Dockerfile and copy over a config file to one of the above locations, or you can pass configuration options to docker via environment variables. For example:

docker build -t github2range .
docker run \
  --env github2range_githubAccessToken=XXXXXXXX \
  --env github2range_rangeWebhook=https://in.range.co/services/incoming/XXXXXXXX \
  --env [email protected] \
  --env [email protected] \
  --env [email protected] \
  github2range

A prebuilt is available on Docker hub at pupius/github2range.

FAQ

How do I get a GitHub access token?

To get a GitHub access token, visit https://github.com/settings/tokens (or the equivalent page on your GitHub Enterprise instance.) and follow the steps to create a new token. Specify the repo and user scopes.

How do I create an incoming webhook for Range?

Find the "Custom Integrations" section at the bottom of https://range.co/_/settings/integrations. Note that some workspaces require that you be an admin to create webhools. This webhook can be used to create suggestions for anyone in your org. See this help center article for more information about the incoming webhooks.