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

@statiolake/coc-github-copilot

v2.3.0

Published

GitHub Copilot extension for coc.nvim with inline completion support

Readme

@statiolake/coc-github-copilot

GitHub Copilot integration for coc.nvim with inline completions and Language Model API support.

Features

  • 🤖 GitHub Copilot Integration: Official GitHub Copilot Language Server integration
  • 🔐 Device Authentication: Secure GitHub device authentication flow
  • Inline Completions: Automatic code suggestions via Language Server
  • 🗨️ Language Model API: Provides chat models for other extensions
  • 📊 Status Monitoring: Real-time authentication and service status
  • 🛠️ Simple Configuration: Works out of the box with minimal setup

Installation

Prerequisites

Install via coc.nvim

:CocInstall @statiolake/coc-lm-api @statiolake/coc-github-copilot

Install via npm

npm install -g @statiolake/coc-lm-api @statiolake/coc-github-copilot

Setup

  1. Install both required extensions
  2. Run :CocCommand copilot.signIn to authenticate with GitHub
  3. Follow the device authentication flow in your browser
  4. Start coding with Copilot suggestions!

Commands

| Command | Description | |---------|-------------| | :CocCommand copilot.signIn | Sign in to GitHub Copilot | | :CocCommand copilot.signOut | Sign out from GitHub Copilot | | :CocCommand copilot.status | Show current authentication status | | :CocCommand copilot.enable | Enable Copilot suggestions | | :CocCommand copilot.disable | Disable Copilot suggestions |

Configuration

Add to your coc-settings.json:

{
  \"copilot.enable\": true,
  \"copilot.trace.server\": \"off\"
}

Available Settings

  • copilot.enable (boolean): Enable/disable GitHub Copilot (default: true)
  • copilot.trace.server (string): Language server communication tracing level
    • \"off\": No tracing (default)
    • \"messages\": Log messages
    • \"trace\": Verbose tracing

Status Bar

The extension displays the current Copilot status in the coc.nvim status bar:

  • Copilot: N/A - Not authenticated or service unavailable
  • Copilot: Ready (username) - Authenticated and ready

Language Model API Integration

This extension automatically registers GitHub Copilot chat models with the LM API, making them available to other extensions like @statiolake/coc-lm-chat.

Available Models

The extension provides access to GitHub Copilot's chat models:

  • gpt-4.1 - Latest GPT-4 variant
  • o1-preview - Reasoning model preview
  • o1-mini - Lightweight reasoning model

Usage

Inline Completions

Once authenticated, Copilot will automatically provide suggestions in the coc.nvim completion popup as you type.

Language Model Access

Other extensions can access Copilot models through the LM API:

import type { LmApi } from '@statiolake/coc-lm-api';

const lmApi: LmApi = extensions.getExtensionById('@statiolake/coc-lm-api').exports;
const models = lmApi.selectChatModels({ vendor: 'GitHub' });

Troubleshooting

Authentication Issues

  1. Make sure you have a valid GitHub Copilot subscription
  2. Try signing out and signing in again: :CocCommand copilot.signOut then :CocCommand copilot.signIn
  3. Check the status: :CocCommand copilot.status

No Completions

  1. Verify Copilot is enabled: :CocCommand copilot.enable
  2. Check your internet connection
  3. Ensure the file type is supported by Copilot

Extension Dependencies

If you see errors about missing LM API:

  1. Install the required dependency: :CocInstall @statiolake/coc-lm-api
  2. Restart coc.nvim: :CocRestart

Development

# Clone the repository
git clone https://github.com/statiolake/coc-github-copilot.git
cd coc-github-copilot

# Install dependencies
npm install

# Build
npm run build

# Watch mode for development
npm run watch

# Run linting
npm run lint

Related Extensions

License

MIT

Repository

GitHub

Acknowledgments