Code AI platform with Code Search & Cody
Go to file
2021-10-08 16:12:05 +02:00
.buildkite codeintel-qa: Rewrite precise-code-intel-tester (#25412) 2021-10-04 09:46:24 -05:00
.github Use GitHub Beta API for labeler (#25734) 2021-10-06 15:28:13 +02:00
.vscode vscode: exclude *.scss.d.ts (generated) files from explorer (#22572) 2021-09-07 20:29:41 -07:00
client web: fix flaky localStorage reset (#25444) 2021-10-08 20:05:14 +08:00
cmd move commit/diff limit checks into commit package (#25805) 2021-10-07 14:20:55 -06:00
dev dev/sg: add ci build command (#25810) 2021-10-08 12:25:18 +00:00
doc doc/dev: fix link to sg step (#25842) 2021-10-08 09:55:21 -04:00
docker-images Remove left-over mentions of dev/start.sh (#25745) 2021-10-07 16:38:00 +02:00
enterprise Make batch_spec_id on resolution jobs unique (#25832) 2021-10-08 16:12:05 +02:00
internal Make batch_spec_id on resolution jobs unique (#25832) 2021-10-08 16:12:05 +02:00
lib codeintel/lsif/protocol: commit SymbolKind stringer generated file (#25757) 2021-10-06 17:54:32 +00:00
migrations Make batch_spec_id on resolution jobs unique (#25832) 2021-10-08 16:12:05 +02:00
monitoring Fix executor queue metric (#25582) 2021-10-04 15:01:48 +02:00
schema Move executor shared secret in site config (#25789) 2021-10-07 16:43:47 +02:00
third-party-licenses chore: update third-party licenses (#25625) 2021-10-04 00:10:43 +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 symbols: replace pcre lib with a Go function (fixup 2) (#25421) 2021-09-27 19:38:37 -06: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 search: replace RepoBranches with space optimized BranchesRepos (#25554) 2021-09-30 19:58:26 +02: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 Enable search contexts experimental features by default (#25674) 2021-10-06 07:46:48 +02:00
CODENOTIFY Deglobalize CODENOTIFY settings for eseliger (#16710) 2020-12-14 15:50:22 +01:00
CONTRIBUTING.md update code of conduct link to new handbook (#25703) 2021-10-05 11:16:00 -07:00
doc.go Publish Sourcegraph as open source 🚀 2018-09-30 23:13:36 -07:00
go.mod search: repurpose debug dataset as honeycomb search-zoekt (#25639) 2021-10-05 07:24:37 +00:00
go.sum codeintel-qa: Rewrite precise-code-intel-tester (#25412) 2021-10-04 09:46:24 -05: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 fix types for jest.config.base.js (using @jest/types package) (#24339) 2021-08-26 02:33:21 -07: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
package.json Update browserslist to include support for Safari 13 (#25831) 2021-10-08 09:55:50 +00: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 Make executor secret pass validation (#25795) 2021-10-07 16:24:24 +00:00
shell.nix nix: add golangci-lint (#25592) 2021-10-01 15:39:40 +02:00
tsconfig.all.json extensibility: create integration test harness for browser extension (#23235) 2021-08-04 09:28:47 -04:00
tsconfig.json web: flatten frontend packages inside of the client folder (#19378) 2021-03-26 15:35:26 +08:00
yarn.lock batches: cache batch change query by swapping to Apollo useQuery (#25378) 2021-10-06 16:04:21 -07: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.