joelspadin-garmin / vscode-private-extension-manager

Private extension manager for Visual Studio Code
103 stars 22 forks source link

Support for github-package hosted extensions #77

Open strazto opened 1 year ago

strazto commented 1 year ago

Related to #16

GitHub packages now provides an NPM registry, which is a convenient way for orgs that are already operating within the github org infra to manage private packages.

There's a few caveats to this-

Github Packages are always scoped

From what I can tell, packages on this registry are always scoped, and explicitly map their owner back to the organization / owner.

GitHub only partially supports npm registry APIs

Although it supports:

It doesn't support:

There's a few ways to deal with this -

Fetch certain extensions directly

This would apply to

This should cover a lot of organizational use-cases without requiring this extension to support the GitHub NPM search API.

Add option indicating a registry should use github's api, and handle that for discovering extensions

I think this is probably a bit overkill, but essentially would involve adding first-class support for github's API, if a registry's config indicates it, eg an optional field "host_kind" : "github".

mak3 commented 1 year ago

@strazto BTW Do you know if Gitlab Package Registry support necessary npm search API?