Sourcebot is a self-hosted tool that helps you understand your codebase.
Find a file
Michael Sukkarieh b6dedc78ba
Add Bitbucket support (#275)
* [wip] add bitbucket schema

* wip bitbucket support

* add support for pulling bitbucket repos and UI support for bitbucket

* fix bitbucket app password auth case

* add back support for multiple workspaces and add exclude logic

* add branches to bitbucket

* add bitbucket server support

* add docs for bitbucket and minor nits

* doc nits

* code rabbit fixes

* fix build error

* add bitbucket web ui support

* misc cleanups and fix ui issues with bitbucket connections

* add changelog entry
2025-04-25 11:22:40 -07:00
.github remove --rm flag from _gcp-deploy to make it easier to debug container crashes 2025-04-01 15:19:24 -07:00
.vscode Display name improvements (#259) 2025-04-02 17:50:48 -07:00
.yarn/releases v3 effort (#158) 2025-03-31 22:34:42 -07:00
configs update example configs to use v3 schema 2025-04-01 10:26:46 -07:00
docs Add Bitbucket support (#275) 2025-04-25 11:22:40 -07:00
ee Search contexts (#273) 2025-04-24 22:28:13 -07:00
packages Add Bitbucket support (#275) 2025-04-25 11:22:40 -07:00
schemas Add Bitbucket support (#275) 2025-04-25 11:22:40 -07:00
staging v3 effort (#158) 2025-03-31 22:34:42 -07:00
vendor Search contexts (#273) 2025-04-24 22:28:13 -07:00
.dockerignore v3 effort (#158) 2025-03-31 22:34:42 -07:00
.env.development v3 effort (#158) 2025-03-31 22:34:42 -07:00
.gitignore v3 effort (#158) 2025-03-31 22:34:42 -07:00
.gitmodules update zoekt version 2025-04-01 10:38:50 -07:00
.yarnrc.yml v3 effort (#158) 2025-03-31 22:34:42 -07:00
CHANGELOG.md Add Bitbucket support (#275) 2025-04-25 11:22:40 -07:00
CONTRIBUTING.md v3 effort (#158) 2025-03-31 22:34:42 -07:00
default-config.json Config format V2 (#42) 2024-10-17 16:31:18 -04:00
demo-site-config.json v3 effort (#158) 2025-03-31 22:34:42 -07:00
Dockerfile nit fix: use SENTRY_RELEASE env var instead of NEXT_PUBLIC_SOURCEBOT_VERSION 2025-04-01 12:15:43 -07:00
entrypoint.sh Only create DB directory if using embedded DB (#267) 2025-04-10 21:39:31 -06:00
fly.toml Use main for demo site 2024-10-30 09:35:06 -07:00
grafana.alloy v3 effort (#158) 2025-03-31 22:34:42 -07:00
LICENSE Search contexts (#273) 2025-04-24 22:28:13 -07:00
Makefile Search contexts (#273) 2025-04-24 22:28:13 -07:00
package.json Add Bitbucket support (#275) 2025-04-25 11:22:40 -07:00
prefix-output.sh Config format V2 (#42) 2024-10-17 16:31:18 -04:00
README.md readme docker run nit 2025-04-07 10:23:21 -06:00
supervisord.conf v3 effort (#158) 2025-03-31 22:34:42 -07:00
yarn.lock Add Bitbucket support (#275) 2025-04-25 11:22:40 -07:00


Sourcebot uses Github Discussions for Support and Feature Requests.

About

Sourcebot is the open source Sourcegraph alternative. Index all your repos and branches across multiple code hosts (GitHub, GitLab, Gitea, or Gerrit) and search through them using a blazingly fast interface.

https://github.com/user-attachments/assets/ced355f3-967e-4f37-ae6e-74ab8c06b9ec

Features

  • 💻 One-command deployment: Get started instantly using Docker on your own machine.
  • 🔍 Multi-repo search: Index and search through multiple public and private repositories and branches on GitHub, GitLab, Gitea, or Gerrit.
  • Lightning fast performance: Built on top of the powerful Zoekt search engine.
  • 🎨 Modern web app: Enjoy a sleek interface with features like syntax highlighting, light/dark mode, and vim-style navigation
  • 📂 Full file visualization: Instantly view the entire file when selecting any search result.

You can try out our public hosted demo here!

Deploy Sourcebot

Sourcebot can be deployed in seconds using our official docker image. Visit our docs for more information.

  1. Create a config
touch config.json
echo '{
    "$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
    "connections": {
        // Comments are supported
        "starter-connection": {
            "type": "github",
            "repos": [
                "sourcebot-dev/sourcebot"
            ]
        }
    }
}' > config.json
  1. Run the docker container
docker run \
  -p 3000:3000 \
  --pull=always \
  --rm \
  -v $(pwd):/data \
  -e CONFIG_PATH=/data/config.json \
  --name sourcebot \
  ghcr.io/sourcebot-dev/sourcebot:latest
What does this command do?
  • Pull and run the Sourcebot docker image from ghcr.io/sourcebot-dev/sourcebot:latest.
  • Mount the current directory (-v $(pwd):/data) to allow Sourcebot to persist the .sourcebot cache.
  • Clones sourcebot at HEAD into .sourcebot/github/sourcebot-dev/sourcebot.
  • Indexes sourcebot into a .zoekt index file in .sourcebot/index/.
  • Map port 3000 between your machine and the docker image.
  • Starts the web server on port 3000.

  1. Start searching at http://localhost:3000

To learn how to configure Sourcebot to index your own repos, please refer to our docs.

Note

Sourcebot collects anonymous usage data by default to help us improve the product. No sensitive data is collected, but if you'd like to disable this you can do so by setting the SOURCEBOT_TELEMETRY_DISABLED environment variable to false. Please refer to our telemetry docs for more information.

Build from source

Note

Building from source is only required if you'd like to contribute. If you'd just like to use Sourcebot, we recommend checking out our self-hosting docs.

If you'd like to build from source, please checkout the CONTRIBUTING.md file for more information.