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-codepilot

v0.2.0

Published

n8n community node for GitHub Codepilot - AI-powered vibecoding, workflow building, and MCP integration

Readme

n8n-nodes-github-copilot

An n8n community node for AI-powered vibecoding with GitHub Copilot Chat.

This node integrates GitHub Copilot (via GitHub Models API) into your n8n workflows, enabling automated code generation, review, refactoring, and more.

Features

  • Chat Completion - Direct conversation with Copilot AI models
  • Code Generation - Generate code from natural language descriptions
  • Code Explanation - Get detailed explanations of code
  • Code Review - Automated code review with suggestions
  • Code Refactor - Improve code quality and structure
  • Fix Code - Debug and fix issues in code
  • Generate Tests - Create comprehensive unit tests
  • Documentation - Auto-generate code documentation

Supported Models

  • GPT-4o (Recommended)
  • GPT-4o Mini
  • Claude 3.5 Sonnet
  • o1-preview
  • o1-mini

Installation

Community Nodes (Recommended)

  1. Go to Settings > Community Nodes
  2. Select Install
  3. Enter n8n-nodes-github-copilot
  4. Confirm the installation

Manual Installation

cd ~/.n8n/nodes
npm install n8n-nodes-github-copilot

Then restart n8n.

Authentication

This node requires a GitHub Personal Access Token (PAT) with appropriate permissions.

Getting a GitHub Token

  1. Go to GitHub Settings > Developer settings > Personal access tokens
  2. Generate a new token (classic) with the following scopes:
    • read:user - For basic authentication validation
    • For GitHub Copilot access, you need an active Copilot subscription
  3. Copy the token and use it in the n8n credentials

Alternative: GitHub Models API

For broader model access, you can use the GitHub Models platform:

  1. Visit GitHub Models
  2. Get access to the models you want to use
  3. Use your GitHub PAT for authentication

Usage Examples

Code Generation

Generate a TypeScript function:

Operation: Code Generation
Language: TypeScript
Description: Create a function that validates email addresses using regex and returns an object with isValid and domain properties

Code Review

Submit code for automated review:

Operation: Code Review
Code: [paste your code]

The node will return detailed feedback on code quality, potential bugs, security issues, and improvement suggestions.

Generate Tests

Automatically create unit tests:

Operation: Generate Tests
Language: JavaScript
Test Framework: Jest
Code: [paste your code]

Fix Code

Debug and fix issues:

Operation: Fix Code
Code: [paste buggy code]
Error Description: TypeError: Cannot read property 'length' of undefined

Configuration Options

| Option | Description | Default | |--------|-------------|---------| | Temperature | Controls creativity (0-2) | 0.7 | | Max Tokens | Maximum response length | 4096 | | System Prompt | Custom AI behavior instructions | (operation-specific) | | Output Format | Code only, with explanation, or full | Code with Explanation |

Workflow Integration

Example: Automated PR Code Review

  1. GitHub Trigger - Listen for PR events
  2. GitHub - Fetch PR diff/files
  3. GitHub Copilot - Review code with "Code Review" operation
  4. GitHub - Post review comments

Example: Documentation Generator

  1. Read File - Get source code files
  2. GitHub Copilot - Generate documentation
  3. Write File - Save documentation

Example: Test Generation Pipeline

  1. Watch Folder - Monitor for new code files
  2. Read File - Get file contents
  3. GitHub Copilot - Generate tests
  4. Write File - Save test files
  5. Execute Command - Run tests

Error Handling

The node includes comprehensive error handling:

  • Invalid credentials are caught during execution
  • API rate limits are reported with clear messages
  • Model-specific errors are passed through

Enable "Continue On Fail" to process multiple items even if some fail.

Limitations

  • Requires active GitHub account
  • For Copilot-specific models, requires GitHub Copilot subscription
  • Rate limits apply based on your GitHub plan
  • Maximum context length varies by model

Development

# Clone the repo
git clone https://github.com/your-username/n8n-nodes-github-copilot.git

# Install dependencies
npm install

# Build
npm run build

# Link for local development
npm link
cd ~/.n8n/nodes
npm link n8n-nodes-github-copilot

Contributing

Contributions are welcome! Please open an issue or PR.

License

MIT License - see LICENSE file.

Credits

Conceived by Romuald Czlonkowski - www.aiadvisors.pl/en