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

gh2ide

v1.3.2

Published

Native messaging host for GitHub to IDE Chrome extension - opens GitHub repos and files directly in your IDE

Downloads

11

Readme

GitHub to IDE - Native Host

Native messaging host for the GitHub to IDE Chrome extension.

What is this?

This is a helper application that allows the GitHub to IDE browser extension to communicate with your computer to open repositories and files in your local IDE (VS Code, Cursor, JetBrains Rider, etc.).

Quick Install

npx gh2ide --extension-id <your-extension-id>

Finding Your Extension ID

  1. Open chrome://extensions in your browser
  2. Enable "Developer mode" (toggle in top-right corner)
  3. Find the "GitHub to IDE" extension
  4. Copy the ID shown below the extension name (32 characters, looks like: haekngngecedekgjbeoijeaapjkmblgp)

Usage

Interactive Mode (Recommended)

Simply run without arguments and the CLI will auto-detect your extension:

npx gh2ide

Features:

  • 🔍 Auto-detection: Scans your browser profiles for GitHub to IDE extension
  • 🎯 Smart prompts: Confirms detected extension or lets you choose from multiple
  • 📝 Manual fallback: If auto-detection fails, guides you through manual entry

The CLI will automatically find your extension in Chrome, Arc, Brave, Edge, or Chromium.

Note: Auto-detection only works for installed extensions (from Chrome Web Store or packed .crx files). Unpacked extensions loaded via "Load unpacked" must be entered manually.

Direct Installation

If you already know your extension ID:

npx gh2ide --extension-id abc123xyz

Help

npx gh2ide --help

Version

npx gh2ide --version

Uninstall

npx gh2ide --uninstall

This removes all installed files and manifests from all browsers.

What it Does

  1. Installs the native messaging host to ~/.github-to-ide/native-host/
  2. Creates a manifest file that allows Chrome to communicate with the host
  3. Configures your browser(s) to recognize the extension

Supported Platforms

  • macOS - Automatically installs for Chrome, Brave, Edge, Chromium
  • Linux - Automatically installs for Chrome, Brave, Chromium
  • ⚠️ Windows - Requires manual registry configuration (see Windows Setup)

Supported Browsers

  • Chrome
  • Chromium
  • Brave
  • Microsoft Edge
  • Arc (uses Chrome profile)
  • Vivaldi (uses Chrome profile)

After Installation

  1. Restart your browser - This is required for the browser to recognize the native host
  2. Test the connection - Open the extension options page and click "Test native host connection"
  3. Configure your IDE - Set your preferred editor and clone directory in the extension options

Windows Setup

Windows requires additional steps due to registry requirements:

  1. Run the installer: npx gh2ide --extension-id <your-id>
  2. Open Registry Editor (regedit)
  3. Navigate to: HKEY_CURRENT_USER\Software\Google\Chrome\NativeMessagingHosts
  4. Create a new key: com.lovelesslabs.vscodeopener
  5. Set the default value to the path shown by the installer

For more details, see the Chrome Native Messaging documentation.

Updating

To update to the latest version:

npx gh2ide@latest --extension-id <your-id>

Uninstalling

To completely remove the native host:

npx gh2ide --uninstall

This automatically removes:

  • Installation directory (~/.github-to-ide)
  • All browser manifests (Chrome, Brave, Edge, Chromium)
  • Configuration files

Manual uninstall (if needed):

If the automatic uninstall doesn't work, you can manually remove files:

macOS:

rm -rf ~/.github-to-ide
rm ~/Library/Application\ Support/Google/Chrome/NativeMessagingHosts/com.lovelesslabs.vscodeopener.json
rm ~/Library/Application\ Support/BraveSoftware/Brave-Browser/NativeMessagingHosts/com.lovelesslabs.vscodeopener.json

Linux:

rm -rf ~/.github-to-ide
rm ~/.config/google-chrome/NativeMessagingHosts/com.lovelesslabs.vscodeopener.json
rm ~/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts/com.lovelesslabs.vscodeopener.json

Troubleshooting

"No response from native host"

  1. Ensure you've restarted your browser after installation
  2. Check that the extension ID matches what you installed with
  3. Run the installer again: npx gh2ide --extension-id <your-id>

"Native host has exited"

  1. Ensure Node.js is installed: node --version (requires v16+)
  2. Check the native host log: ~/.github-vscode-interceptor/native-host.log

Extension ID doesn't match

If you reinstall the extension or switch browsers, you may need to reinstall the native host with the new extension ID.

Requirements

  • Node.js 16 or higher
  • Chrome/Chromium-based browser
  • macOS, Linux, or Windows

Development

To test locally:

git clone https://github.com/justinloveless/github-to-ide.git
cd github-to-ide/native-host
npm link
gh2ide --extension-id <your-id>

License

MIT

Issues & Support

Report issues at: https://github.com/justinloveless/github-to-ide/issues