explaingit

sourcegraph/sourcegraph-public-snapshot

10,270GoAudience · developerComplexity · 4/5LicenseSetup · hard

TLDR

A public snapshot of Sourcegraph, a platform that lets developer teams search all their code repositories at once, navigate symbol definitions and references, and roll out changes across many repos simultaneously.

Mindmap

mindmap
  root((Sourcegraph))
    What it does
      Cross-repo code search
      Code navigation
      Large-scale refactoring
    Search features
      All branches at once
      All connected code hosts
      Symbol and text search
    Code intelligence
      Go to definition
      Find all references
      File ownership history
    Deployment
      Hosted at sourcegraph.com
      Self-hosted option
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Search across every repository in your organization simultaneously to find where a function or variable is used or defined

USE CASE 2

Navigate code by jumping to a symbol definition or seeing all the places it is called, across all connected repos

USE CASE 3

Roll out a dependency upgrade or rename across dozens of repositories at once and track which ones have been updated

USE CASE 4

Set up a self-hosted instance so your team can search private code without it leaving your infrastructure

Tech stack

Go

Getting it running

Difficulty · hard Time to first run · 1day+

Note: this repo is a public snapshot taken before Sourcegraph moved to a private monorepo, it is not under active development, production deployment requires Docker or Kubernetes with significant resources.

Use, modify, and distribute freely for any purpose, including commercial use, under the Apache License 2.0, as long as you include the license notice.

In plain English

Sourcegraph is a platform that helps developers search, read, and understand code across large collections of repositories. Rather than digging through individual files or relying on a single editor, it lets a team point Sourcegraph at all of their code, no matter how many repositories or hosting services they use, and then search everything at once. Results include the actual code lines, the branches those lines appear on, and navigation links to related definitions and references. The three main features are code search, code intelligence, and large-scale refactoring. Code search covers all branches and all connected code hosts simultaneously. Code intelligence goes deeper: it shows where a function or symbol is defined, where it is called, who owns the relevant file, and the history of how that code changed over time. The refactoring tools let a team roll out the same change across many repositories at once and monitor progress, which is useful when updating a dependency, renaming something, or applying a security fix organization-wide. Sourcegraph can be used as a hosted service at sourcegraph.com or installed on a company's own servers for teams that need to keep their code internal. The project is written mainly in Go. The README notes that this particular repository is a public snapshot taken just before Sourcegraph moved to a private monorepo, so the code shown here reflects the state of the project up to that point rather than ongoing active development. The last commit under an Apache License is also marked in the repository for anyone interested in the open-source history of the project. The README is brief and points to external documentation for setup, architecture, database practices, and contribution guidelines. There is an active community Discord and a public code search instance at sourcegraph.com/search where anyone can try the search feature on open-source code without installing anything.

Copy-paste prompts

Prompt 1
How do I deploy a self-hosted Sourcegraph instance from this public snapshot on a Linux server and connect it to my GitHub organization?
Prompt 2
Show me how to write a structural search query in Sourcegraph to find all places in Go code where a specific function is called with more than two arguments
Prompt 3
How does Sourcegraph code intelligence work for Go, what does it use to resolve symbol definitions and references across repositories?
Prompt 4
How do I use Sourcegraph batch changes to update a deprecated import path across all repositories in my org and create one pull request per repo?
Open on GitHub → Explain another repo

← sourcegraph on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.