Set up your development environment
Sourcegraph extensions are usually written in TypeScript and are distributed as a single bundled JavaScript file that runs on the client. Start by installing and configuring the required software.
Node.js
Install Node.js to build and package your extension.
Sourcegraph.com account and the Sourcegraph CLI
Publishing an extension requires a Sourcegraph.com account. Sourcegraph Enterprise Plus instances support a private extension registry.
Install the Sourcegraph CLI (src
), then configure src
with an access token.
Sourcegraph browser extension
Bring your extension's features for code viewed on GitHub, GitLab and other code hosts by installing the Sourcegraph browser extension.