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

n8n-nodes-github-session-manager

v0.2.0

Published

Manage GitHub App session tokens in n8n and optionally rewire workflows to a freshly issued githubApi credential.

Readme

n8n-nodes-github-session-manager

Community node for n8n that:

  • Stores App ID, Installation ID, and Private Key (PEM) via a GitHub App (JWT) credential.
  • Issues a GitHub App installation access token.
  • Optionally updates one githubApi credential by ID (if your n8n supports PUT /api/v1/credentials/{id}).
  • Always outputs the token and its expiration, and can decorate headers for a downstream HTTP Request node.

If your n8n version does not support PUT /api/v1/credentials/{id}, the node will not update the credential (it will set updateStatus: "NOT_SUPPORTED"). Token issuance and outputs still work.

Install

npm i n8n-nodes-github-session-manager

Docker (mounting from node_modules):

environment:
  N8N_CUSTOM_EXTENSIONS: /home/node/node_modules/n8n-nodes-github-session-manager

Restart n8n.

Usage

  1. Create the GitHub App (JWT) credential with:

    • Base URL (default https://api.github.com)
    • App ID
    • Installation ID
    • Private Key (PEM) (use \\n if it is a single-line string)
  2. Add the GitHub Session Manager node:

    • If you only need the token, leave Update Specific githubApi Credential disabled.

    • If you want to update a specific githubApi credential:

      • Enable Update Specific githubApi Credential,
      • Set Target Credential ID,
      • Provide n8n Base URL and n8n API Key.
  3. Optionally enable Decorate headers to pipe the Authorization header into a downstream HTTP Request node:

    • In the HTTP Request node, set Headers: ={{$json.headers}}.

Output

Each item returns:

{
  "githubToken": "ghs_xxx",
  "githubTokenExpiresAt": "2025-11-07T10:10:00Z",
  "updateStatus": "UPDATED | SKIPPED | NOT_SUPPORTED",
  "updatedCredentialId": "42 (if applicable)",
  "headers": {
    "Authorization": "Bearer ghs_xxx",
    "Accept": "application/vnd.github+json"
  }
}

Notes

  • This package does not perform a global overwrite of all githubApi credentials. It only attempts to update one credential by ID when you enable it.
  • Workflows already running usually keep using the token loaded at node start. For most workflows (less than one hour), token expiration is not an issue.