VOOZH about

URL: https://thenewstack.io/sourcegraph-aims-google-code/

⇱ Sourcegraph Aims to be the 'Google for Code' - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2016-06-15 09:00:52
Sourcegraph Aims to be the 'Google for Code'
Open Source / Software Development

Sourcegraph Aims to be the ‘Google for Code’

Jun 15th, 2016 9:00am by Susan Hall
👁 Featued image for: Sourcegraph Aims to be the ‘Google for Code’

After graduating from Stanford, Quinn Slack and Beyang Liu took jobs at large companies and learned about the many frustrations that developers face. They decided there had to be a better way and set out to build a search engine for open source code.

Sourcegraph is like the Google for code; it’s a public utility for all the developers out there,” Slack said of the company. The San Francisco-based company originated in 2013 and has grown to a staff of 18.

The tool enables users to search within their own code base as well open source code.

“In these big companies, 1,000 other people have already done the same thing in code. There’s just so much repetition and duplication of code,” he said. “People think that developers build all these complex systems, but the tools they use are actually much more primitive than the tools the finance team is using. You have social media analytics for content that’s more advanced than what programmers use.”

Sourcegraph shows how code is used within a company and around the world.

“Someone in Uzbekistan might write a piece of code that GE uses in its jet engines. Our software understands those relationships,” Slack said. “We can help developers search code much better and do other really interesting things, like when you change a piece of code inside a company, show you the ripple effect. What other systems is this going to take down? Who needs to approve it? Does this mean that suddenly people from a black list are able to open checking accounts?” he said.

“It saves the company’s most precious resource, which is time, by not writing the same code over and over again. Not doing those manual tasks, having a human looking over all this code when a computer can do a better job of that.”

Simple as Spellcheck?

The Sourcegraph service is, at its heart, a massive graph database that sits atop their existing workflow if they’re using something like GitHub or Bitbucket.

Sourcegraph is built on other open-source projects including the JavaScript code analysis engine Tern, the Ruby documentation tool YARD, and Jedi.

The company itself created srclib, a hackable, multi-language code analysis library that’s in beta. It supports things like jump to definition, find usages and documentation.

You can search for code by repository, package, or function from the web browser, without having to configure an editor plugin. It seeks to make searching for answers as easy as using spellcheck: Just hover over a piece of code to find a wealth of information about it.

https://www.youtube.com/watch?v=ssON7dfaDZo

The srclib library handles tasks such as package detection, dependency resolution, and using different version control systems.

It consists of language analysis toolchains for Go, Python, JavaScript, and Ruby with a common output format and developer tools using this format. It’s designed to be modular and extensible. New languages can be added with toolchains that output the srclib format.

It’s available for Go, Java, Python, Scala and JavaScript with ten more languages in progress, including C#, PHP, Objective-C, C/C++ and Perl. Some of those are coming from outside developers who just want the Sourcegraph capabilities in their preferred language, Slack said.

Sourcegraph also lets you embed clickable, interactive snippets of code directly in blog posts and forums. It’s been encouraging developers to enable their repositories to allow others to search and browse the code on Sourcegraph.

“If you’re an open source author, you want nothing more than to make it easier for your users to use that code so your library can be used by more people,” Slack said.

Sourcegraph’s Chrome Extension for GitHub, for Go and Java only, makes every identifier a jump-to-definition link, with documentation and type information displayed by hovering over identifiers. The keyboard shortcut Shift-T allows you to search for functions, types, and other definitions.

Licensing criticism

The company has taken heat, however, by licensing Sourcegraph as Fair Source. The license allows everyone to see the source code and individuals and small groups can publish their own projects with it. It allows companies licensing their products to set a number of free users before customers must start paying. Sourcegraph set that number at 15 users, after which it becomes a paid service. It concedes that all a company’s users could sign up as individuals and get the service for free, but it’s counting on the developer community to “do the right thing.”

“A lot of the tools that developers use are totally closed-source, so we looked at what we could do that was more developer-friendly,” Slack said. “If we went totally open source, then we’d have to find some other business model … So the question is: How do we make the code totally public, but still have a sustainable business?”

They sought out attorney Heather Meeker, a specialist in open source licensing, who wrote a simple, easy-to-understand 22-sentence license. “We decided we wanted to be super transparent,” Slack said.

He pointed to a number of projects in which developers are trying to make a living from code, including developer workspace vendor Codenvy, which uses a derivative of the Sourcegraph license, but limits the number of free users to five. While GitLab considered Fair Source, it ultimately decided that introducing a new licensing model would be too confusing to users.

Redmonk analyst Stephen O’Grady recently wrote that’s it’s harder than ever to make money from software, period, whether open or closed and that smart companies are looking for alternative revenue models.

Meanwhile, Matt Asay, in a post at TechRepublic, calls Fair Source “the worst of all words, because it introduces unnecessary complexity into the licensing process, none of which is intended to benefit developers.”

Feature Image: “Beach binoculars. Nice, France” by Kinolamp, licensed under CC BY-SA 2.0.

TRENDING STORIES
Susan Hall is the Sponsor Editor for The New Stack. Her job is to help sponsors attain the widest readership possible for their contributed content. She has written for The New Stack since its early days, as well as sites...
Read more from Susan Hall
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Sourcegraph.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.