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

@kwirthmagnify/kwirth-idp-github-cloud

v0.1.9

Published

GitHub.com (SaaS, OAuth2) identity provider connector for Kwirth

Readme

kwirth-idp-github-cloud

GitHub.com (SaaS) identity provider connector for Kwirth, over OAuth2 (GitHub is not OIDC).

The OAuth2 endpoints are fixed to github.com / api.github.com — the admin only supplies the OAuth application credentials. For GitHub Enterprise Server use the github-onprem connector instead.

It is a thin wrapper: the OAuth2 flow and the GitHub identity mapper live in @kwirthmagnify/kwirth-common-back (oauth2* / githubIdentityFromToken), exposed by the Kwirth backend as a global. The connector ships no runtime dependencies.

The identity is resolved from GET /user + GET /user/emails, taking the primary verified email (the Kwirth gate requires a verified email).

Configuration

Configured from the connector card in Manage extensions → Identity providers.

| Field | Type | Required | Notes | |-------|------|----------|-------| | clientId | text | yes | GitHub OAuth App Client ID | | clientSecret | password | yes | GitHub OAuth App Client Secret (write-only, masked in the UI) | | scopes | text | no | OAuth scopes; defaults to read:user user:email | | redirectUri | text | no | The Authorization callback URL GitHub must have registered. Pre-filled with the right value; see below |

GitHub setup

Create an OAuth App (Settings → Developer settings → OAuth Apps → New OAuth App), or an org-owned OAuth App:

  • Authorization callback URL: the value the connector card shows in its Authorization callback URL field — copy it from there rather than composing it, and register it unchanged.
  • Copy the generated Client ID and generate a Client Secret

read:user + user:email let Kwirth read the profile and the verified primary email.

About that callback URL

Its shape is <scheme>://<host><ROOTPATH>/core/auth/<instanceId>/callback, and the two parts people get wrong are the ones Kwirth cannot work out on its own:

  • ROOTPATH — the subpath Kwirth is served under. It is /kwirth in the stock manifest and chart, so most deployments need it: https://kwirth.example.com/kwirth/core/auth/github-cloud/callback. It is empty only when Kwirth sits at the root of its host.
  • The scheme — inside the pod the connection is plain HTTP. If the reverse proxy does not forward X-Forwarded-Proto, the derived value comes out as http://… for a site the browser reached over HTTPS, and GitHub rejects the redirect. OAuth2 only allows http on loopback.

The field exists for exactly that: leave it empty and Kwirth derives the value (guessing the scheme); fill it in and that string is what travels, in both the authorization request and the token exchange.

Build

npm install
npm run build     # → dist/back.js + dist/package.json
npm run watch     # dev: rebuilds on change (backend hot-reloads)