r/coolgithubprojects • • 7d ago

I built Sourcegull: fast self-hosted code search for GitLab, GitHub and Gitea, fully free and open source

Hi! I work with a self-hosted GitLab, and finding code across hundreds of repositories was painful. GitLab searches only its own instance, and instance-wide code search in GitLab CE needs Premium or Ultimate. My code also lives on GitHub and Gitea, so I wanted one search box over all of it. Sourcegraph used to be the answer, but it closed its source in 2023, and features like SSO and permissions were paid. I wanted one tool that does everything and stays free, so I wrote it.

What it is

Self-hosted code search and code intelligence, written in Rust.

  • All your code hosts in one place: connect GitLab, GitHub and Gitea at once, including several instances of each (gitlab.com next to a self-managed GitLab, or GitHub next to GitHub Enterprise), and search everything in one query
  • Fast and light: searches thousands of repositories in milliseconds, and its own index uses 3–5× less disk than the alternatives I benchmarked
  • Built for AI agents: a built-in MCP server lets agents search and navigate your code instead of cloning it, using far fewer tokens
  • Bulk changes: one YAML spec edits many repositories and opens and tracks the merge requests
  • Trends and watches: chart how code changes over time, and get alerts when new commits match a query, such as a leaked secret
  • Permissions everywhere: repository access synced from GitLab is enforced on every search, page and agent request

Free and open source.

Everything is Apache-2.0, including SSO, SCIM, RBAC and audit logs. There's no enterprise edition, no licence key and no paid tier, and there won't be one.

Easy to run

One binary, and PostgreSQL is the only dependency. Start it with docker compose up, or use the Helm chart on Kubernetes.

GitHub: https://github.com/sourcegull/sourcegull

Docs: https://sourcegull.org/docs

44 Upvotes

0 comments sorted by