npm dependencies integration with Sourcegraph

You can use Sourcegraph with npm packages from any npm registry, including open source code from npmjs.com or a private registry such as Verdaccio. This integration makes it possible to search and navigate through the source code of published JavaScript or TypeScript packages (for example, @types/[email protected]).

Feature Supported?
Repository syncing
Repository permissions
Multiple npm dependencies code hosts

Setup

See the "npm dependencies" documentation.

Repository syncing

Site admins can add npm packages to Sourcegraph.

Repository permissions

⚠️ npm dependency repositories are visible by all users of the Sourcegraph instance.

Multiple npm dependencies code hosts

⚠️ It's only possible to create one npm dependency code host for each Sourcegraph instance. See the issue sourcegraph#32499 for more details about this limitation. In most situations, it's possible to work around this limitation by configurating a single private npm registry to proxy multiple underlying registries.