Code AI platform with Code Search & Cody
Go to file
2021-10-14 23:02:09 +00:00
.buildkite cluster-test: disable for now (#25978) 2021-10-12 18:23:31 +00:00
.github Update label-notify.yml to include delivery team (#26028) 2021-10-13 12:29:55 -04:00
.vscode web: add empty build-config package (#25965) 2021-10-12 16:14:50 +00:00
client executor: Add better observability to untracked time during job (#26087) 2021-10-14 15:54:30 -05:00
cmd send RepoNotExistError over stream (#26030) 2021-10-14 16:44:54 -06:00
dev web: codemod web/enterprise/extensions web/enterprise/productSubscription web/enterprise/searchContexts components to CSS modules (#26038) 2021-10-15 00:23:47 +07:00
doc executor: Add better observability to untracked time during job (#26087) 2021-10-14 15:54:30 -05:00
docker-images upgrade cadvisor to v0.42.0 (#26126) 2021-10-14 23:02:09 +00:00
enterprise Fix API docs slow migration issue (#26124) 2021-10-14 14:50:51 -07:00
hacktoberfest ask contributors to comment on the issue they are tackling (#26127) 2021-10-14 15:48:46 -07:00
internal only start diff fetcher if needed (#26044) 2021-10-14 16:52:50 -06:00
lib Throw validation error in ParseChangesetSpecExternalID (#25956) 2021-10-12 13:46:21 +00:00
migrations Fix API docs slow migration issue (#26124) 2021-10-14 14:50:51 -07:00
monitoring executor: Add better observability to untracked time during job (#26087) 2021-10-14 15:54:30 -05:00
schema gitserver: Support p4-fusion (#25838) 2021-10-13 12:15:32 +02:00
third-party-licenses chore: update third-party licenses (#25867) 2021-10-11 00:09:57 +00:00
ui/assets Fix .gitignore to properly handle img assets (#25106) 2021-09-20 17:32:52 +00:00
.dockerignore web: flatten frontend packages inside of the client folder (#19378) 2021-03-26 15:35:26 +08:00
.editorconfig sg: add run-set for core app (#23156) 2021-07-23 07:59:43 +00:00
.eslintignore web: flatten frontend packages inside of the client folder (#19378) 2021-03-26 15:35:26 +08:00
.eslintrc.js Allow default export for storybook stories (#23630) 2021-08-05 12:28:40 -07:00
.gitattributes monitoring: migrate monitoring docs to Sourcegraph API Docs (#22876) 2021-07-16 10:34:17 +08:00
.gitignore ci: add trivy security scanning step (#25756) 2021-10-13 16:28:07 -07:00
.gitmodules Publish Sourcegraph as open source 🚀 2018-09-30 23:13:36 -07:00
.golangci.yml Fix ioutil rule in golangci-lint (#24583) 2021-09-03 12:42:57 +02:00
.graphqlrc.yml Support multiple GraphQL schema files (#20077) 2021-04-19 14:35:49 +02:00
.mailmap Add Camden to mailmap (#19488) 2021-03-26 16:32:13 +00:00
.mocharc.js web: make web integration tests great again! (#25027) 2021-09-23 16:32:25 +02:00
.nvmrc Upgrade to node.js 16 (#24109) 2021-08-19 12:32:43 +02:00
.percy.yml web: make web integration tests great again! (#25027) 2021-09-23 16:32:25 +02:00
.prettierignore monitoring: migrate monitoring docs to Sourcegraph API Docs (#22876) 2021-07-16 10:34:17 +08:00
.stylelintignore docs: extension architecture (#15679) 2020-12-02 21:17:24 -05:00
.stylelintrc.json Publish Sourcegraph as open source 🚀 2018-09-30 23:13:36 -07:00
.tool-versions ci: add trivy security scanning step (#25756) 2021-10-13 16:28:07 -07:00
.yarnrc Ignore workspace root check (#19608) 2021-03-31 15:30:11 +01:00
babel.config.js GraphQL Client: Add Apollo/client and implement on profile settings page (#22166) 2021-06-29 09:23:33 +01:00
CHANGELOG.md upgrade cadvisor to v0.42.0 (#26126) 2021-10-14 23:02:09 +00:00
CODENOTIFY Deglobalize CODENOTIFY settings for eseliger (#16710) 2020-12-14 15:50:22 +01:00
CONTRIBUTING.md Update CONTRIBUTING.md (#26010) 2021-10-13 10:28:14 +00:00
doc.go Publish Sourcegraph as open source 🚀 2018-09-30 23:13:36 -07:00
go.mod insights: add mutation for updating a dashboard (#25985) 2021-10-14 13:06:14 -04:00
go.sum ci: determine which tests to run by diffing with previous builds (#25744) 2021-10-14 17:23:23 +04:00
graphql-schema-linter.config.js Support multiple GraphQL schema files (#20077) 2021-04-19 14:35:49 +02:00
gulpfile.js Improve integration test suite CI run script (#24666) 2021-09-07 16:07:11 +02:00
jest.config.base.js chore: Add use-resize-observer mock (#25361) 2021-09-28 14:05:41 +07:00
jest.config.js web: add empty build-config package (#25965) 2021-10-12 16:14:50 +00:00
LICENSE update licensing language (#25620) 2021-10-04 15:40:59 +01:00
LICENSE.apache Move all client code into client/ folder (#14480) 2020-10-07 22:23:53 +02:00
LICENSE.enterprise clarify license (#2543) 2019-03-03 16:39:46 +08:00
lighthouserc.js Lighthouse: Run jobs synchronously (#25947) 2021-10-12 12:41:51 +01:00
package.json Add monaco-yaml for proper yaml support (#25887) 2021-10-13 01:58:58 +02:00
postcss.config.js extensibility: add featured extensions to registry (#21665) 2021-06-10 13:55:20 -04:00
prettier.config.js Publish Sourcegraph as open source 🚀 2018-09-30 23:13:36 -07:00
README.md docs: Move "install sg" step up in quickstart (#25829) 2021-10-08 11:20:37 +02:00
renovate.json update upstream alpine (#24896) 2021-09-13 12:27:29 -05:00
SECURITY.md consolidate security policy (#7906) 2020-01-21 10:03:11 -08:00
sg.config.yaml dev/sg: introduce 'sg ci logs' with Loki support (#25835) 2021-10-12 11:14:50 -04:00
shell.nix nix: add golangci-lint (#25592) 2021-10-01 15:39:40 +02:00
tsconfig.all.json web: add empty build-config package (#25965) 2021-10-12 16:14:50 +00:00
tsconfig.json web: flatten frontend packages inside of the client folder (#19378) 2021-03-26 15:35:26 +08:00
yarn.lock Add monaco-yaml for proper yaml support (#25887) 2021-10-13 01:58:58 +02:00

Sourcegraph

build

Sourcegraph is a fast and featureful code search and navigation engine.

sourcegraph com_github com_golang_go_-_blob_src_net_http_request go_L855_6

Features

Try it now

Sourcegraph has three editions:

  • Sourcegraph Cloud lets you search over the open-source ecosystem plus your private code. Search strings, search patterns, search symbols and find references across your entire codebase and the open-source world.
  • Sourcegraph Enterprise lets you run your own Sourcegraph instance in your own environment.
  • Sourcegraph OSS is an open-source version of Sourcegraph that provides the core functionality of Sourcegraph (code search, code browsing, basic code navigation), but lacks more advanced features (enterprise authentication, repository permissions, admin controls, advanced code navigation, etc.)

Source code for all three editions is contained in this repository. See the License section for more details.

More:

  • Install the open-source browser extension to add Sourcegraph-like powers to your code review and code host.
  • File feature requests and bug reports in our issue tracker.
  • Visit about.sourcegraph.com for more information about features, use cases, and organizations that use Sourcegraph.

Self-hosted installation

Sourcegraph Enterprise (free up to 10 users)

The fastest way to run Sourcegraph self-hosted is with the Docker container. See the quickstart installation guide. There are also several additional ways of running a production instance.

Sourcegraph OSS

  1. Install dependencies
  2. Clone this repository
  3. Install sg
  4. Ensure Docker is running
  5. Initialize the PostgreSQL database
  6. Configure the HTTPS reverse proxy
  7. Start the development server
    sg start oss
    

Sourcegraph should now be running at https://sourcegraph.test:3443.

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

Development

Refer to the Developing Sourcegraph guide to get started.

Documentation

The doc directory has additional documentation for developing and understanding Sourcegraph:

License

This repository contains both OSS-licensed and non-OSS-licensed files. We maintain one repository rather than two separate repositories mainly for development convenience.

All files in the enterprise and client/web/src/enterprise fall under LICENSE.enterprise.

The remaining files fall under the Apache 2 license. Sourcegraph OSS is built only from the Apache-licensed files in this repository.