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

strider-github

v3.0.4

Published

A GibHub & GitHub Enterprise provider for Strider

Downloads

68

Readme

strider-github

A provider for strider that integrates with GitHub to provide easy setup of your projects. It registers webhooks and sets up ssh keys (if you so choose).

NPM Build Status

Note: Supports using '[skip ci]' in your commit message to skip commits triggering a job.

Required Configuration

If you are running on localhost:3000 the default settings should work just fine.

Environment Variables

SERVER_NAME The url of your strider server. Defaults to http://localhost:3000.

The following variables only need to be overridden if you are using github enterprise. See 'Enterprise Setup' below.

PLUGIN_GITHUB_APP_ID Defaults to client ID of Strider-CD Github App

PLUGIN_GITHUB_APP_SECRET Defaults to client secret of Strider-CD Github App

PLUGIN_GITHUB_API_DOMAIN Defaults to https://github.com

PLUGIN_GITHUB_API_ENDPOINT Defaults to https://api.github.com

Enterprise Setup

  1. You'll need to create an Application on your GitHub Enterprise Server. Log in to GitHub Enterprise and navigate to https://your-github-url.com/settings/applications/new and set authentication URL to https://your-strider-server:port/auth/github/callback.

  2. Define the environment variables. Here is an example:

    export SERVER_NAME="http://111.11.11.111:3000"
    export PLUGIN_GITHUB_APP_ID="a342d32c23c23"
    export PLUGIN_GITHUB_APP_SECRET="5af64a67af586847afbc6796769769d97a961"
    export PLUGIN_GITHUB_API_DOMAIN="https://github.my-organization.com"
    export PLUGIN_GITHUB_API_ENDPOINT="https://github.my-organization.com/api/v3"

    NOTE SERVER_NAME must be the same exact host that you used for the 'Authentication URL' in step 1. For example, if you used http://111.11.11.111:3000/auth/guthub/callback in step 1, your SERVER_NAME must be http://111.11.11.111:3000. Also note that the protocol must be the same between the two (if you used http:// in step 1, you must use http:// in SERVER_NAME and not https://).

  3. Reboot strider and navigate link a github account as normal, you should see your enterprise repos!

Known Issues with Enterprise

  • If you get 'Error: Could not fetch user profile': Somehow, passport will fail to retrieve the user profile unless all of the following are set. On GitHub Enterprise, log in to the profile you are trying to link to, and navigate to /settings/profile. Make sure the following are defined and set properly.
    • Public Email
    • Homepage URL

Known Issues with GitHub.com

  • Make sure your github profile has a public email set
    • Go to https://github.com/settings/profile and select an email under "Public email".
  • Make sure you have admin rights on the projects before adding them, since strider will need to create webhooks for the integration to work.

Local Development

Due to the fact that Github posts to the Strider app when there is an event (commit, PR, etc) it is very difficult to test all of the functionality when developing/fixing bugs locally. An alternative is to use something like localtunnel.

$ npm install -g localtunnel
$ lt --port <strider-port>