Code search and intelligence, self-hosted and scalable
Switch branches/tags
2.12 2.13 actionitem-test adapting-ls bext/e2e bext/release bl/admin-authz bl/gh-authn bl/gh-authz-org bl/husky bl/readme bl/sync-pr bl/validate bl/wip bl/2.12 browser-authz-flow browser-ext-ext browser-ext-testing-roadmap bugfix/1330-toggle-decorations ci-combine ci-npm-proxy combine-operator commit-oid ctrl-c-yarn cypress dbrepourl deprecate-custom-git-uris disable-canonicalurlredirect-by-default-v2.13.4 docker-images-patch-notest/frontend docker-images-patch/gitserver docker-images-patch/query-runner docker-images-patch/repo-updater docker-images-patch/searcher docker-images/gitserver docker-images/indexer docker-images/lsp-proxy docker-images/management-console docker-images/query-runner docker-images/repo-updater docker-images/searcher docker-images/server docker-images/symbols docker-images/xlang-go dont-auto-merge explore-contributions ext-cleanup-2 ext-cleanup ext-cmd-observables ext-codeintel-python ext-location-context extension-file-system extension-repository extension-uris faec-webproxy feature/decoration-type fix-link-a fix-local-registry-prefix fix-repopath-to-reponame fix-webapp fix/1359-rendered-markdown-in-pr-comment fs/fix-ext-padding fs/logo-names fs/theme-switch fs/ui-fix-round-1 fs/ui-fix-round-2 generic-search-with-extension-code generic-search hier-search hover-actions issues-search-extension issues-search jest markvis master nyc-resolution oss-master oss/bl/cherry-pick rb/contributions-tutorial rb/ext-docs-manifest rb/ext-schema rebuild remove-csrf-check renovate/github.com-boj-redistore-digest renovate/github.com-certifi-gocertifi-digest renovate/github.com-daviddengcn-go-colortext-digest renovate/github.com-golang-gddo-digest renovate/github.com-golang-groupcache-digest renovate/github.com-google-zoekt-digest renovate/github.com-graph-gophers-graphql-go-digest renovate/github.com-opentracing-contrib-go-stdlib-digest renovate/github.com-sourcegraph-docsite-digest renovate/github.com-xeipuuv-gojsonschema-digest renovate/golang.org-x-crypto-digest renovate/golang.org-x-net-digest renovate/golang.org-x-oauth2-digest renovate/golang.org-x-sys-digest renovate/graphiql-0.x request-trial retry-logic-audit rm-canonicalurlredirect rouzbeh84-patch-1 search-graphql search-with-backend-fetches sg/merged sg/raw sqs/issue-538 sqs/tmp/ext-cleanup sqs/tmp/external-refs-locationProvider sqs/use-http-reverse-proxy starter-pricing stream-external-refs syntect-warning test-compile-error trueup-in-dev update-thread-loader updatecheck use-http-reverse-proxy with-issue-ext-code
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update CODEOWNERS Dec 9, 2018
.vscode use jest for testing (#1456) Dec 17, 2018
client support showing a loading spinner and error tooltip on ActionItem dur… Dec 17, 2018
cmd skip minification and source maps in mgmt console for build perf Dec 16, 2018
dev require go1.11.4 (#1469) Dec 17, 2018
doc use jest for testing (#1456) Dec 17, 2018
docs sentence case for "Sourcegraph extensions", no capital E Oct 24, 2018
enterprise don't fail all results on 1 invalid manifest (#1447) Dec 15, 2018
migrations pkg/db/globalstatedb: add management console password state / generat… Dec 7, 2018
packages extension api v20.0.0 Dec 17, 2018
pkg require go1.11.4 (#1469) Dec 17, 2018
schema Remove `repos.list` from site configuration (#1391) Dec 14, 2018
shared Add TextDocumentDecorationType, use it to merge decorations from seve… Dec 17, 2018
ui/assets Combine marketing and product homepage (#156) Oct 5, 2018
web support showing a loading spinner and error tooltip on ActionItem dur… Dec 17, 2018
.editorconfig Publish Sourcegraph as open source 🚀 Oct 1, 2018
.gitattributes graphqlbackend: Set generated gitattr for schema.go Dec 3, 2018
.gitignore cmd/management-console/assets: do not require specifying -tags=dev on… Dec 14, 2018
.gitmodules Publish Sourcegraph as open source 🚀 Oct 1, 2018
.mailmap Publish Sourcegraph as open source 🚀 Oct 1, 2018
.prettierignore add simple React snapshot tests for shared components (#1457) Dec 17, 2018
.stylelintrc.json Publish Sourcegraph as open source 🚀 Oct 1, 2018
.yarnrc Use npmjs.org instead of yarnpkg.com (#926) Nov 10, 2018
CHANGELOG.md Add TextDocumentDecorationType, use it to merge decorations from seve… Dec 17, 2018
CONTRIBUTING.md fix: broken link to code of conduct in CONTRIBUTING.md (#1230) Dec 4, 2018
LICENSE enterprise license Oct 27, 2018
LICENSE.apache enterprise license Oct 27, 2018
README.md fix license info Nov 19, 2018
doc.go Publish Sourcegraph as open source 🚀 Oct 1, 2018
go.mod Implement the shield and badge endpoints using api.gddo.org/importers ( Dec 14, 2018
go.sum Implement the shield and badge endpoints using api.gddo.org/importers ( Dec 14, 2018
graphql-schema-linter.config.js Publish Sourcegraph as open source 🚀 Oct 1, 2018
gulpfile.ts use single root package.json, do not build intermediate shared code (#… Nov 12, 2018
jest.config.base.js support showing a loading spinner and error tooltip on ActionItem dur… Dec 17, 2018
jest.config.js use jest for testing (#1456) Dec 17, 2018
package.json Update dependency @sourcegraph/react-loading-spinner to v0.0.7 (#1358) Dec 17, 2018
prettier.config.js Publish Sourcegraph as open source 🚀 Oct 1, 2018
renovate.json Remove Renovate includePaths: enterprise Nov 6, 2018
tsconfig.json use jest for testing (#1456) Dec 17, 2018
tslint.json use jest for testing (#1456) Dec 17, 2018
yarn.lock Update dependency @sourcegraph/react-loading-spinner to v0.0.7 (#1358) Dec 17, 2018

README.md

Sourcegraph

build apache license

Sourcegraph is a fast, open-source, fully-featured code search and navigation engine.

Screenshot

Features

Try it yourself

Development

Prerequisites

  • Git
  • Go (1.11 or later)
  • Docker
  • PostgreSQL (version 9)
  • Node.js (version 8 or 10)
  • Redis
  • Yarn

For a detailed guide to installing prerequisites, see these instructions.

Installation

  1. Ensure Docker is running

  2. Initialize the PostgreSQL database

  3. Start the development server

    ./dev/launch.sh
    

Sourcegraph should now be running at http://localhost:3080.

For detailed instructions and troubleshooting, see the local development documentation.

Documentation

The docs folder has additional documentation for developing and understanding Sourcegraph:

License

Sourcegraph OSS is available freely under the Apache 2 license. Sourcegraph OSS comprises all files in this repository except those in the enterprise/ and src/enterprise directories.

All files in the enterprise/ and src/enterprise/ directories are subject to the Sourcegraph Enterprise license.