Back to services

Sourcehut

A full web git interface with no javascript.

View alternatives to Sourcehut
Suggest edit
Open source
Self-hostable
GPL-2.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: Fetching the official website failed. The content below was written based on known information about SourceHut. For specific pricing and details, please refer to the official website at https://sourcehut.org/.

Introduction

SourceHut (often written as sr.ht) is a development collaboration platform for software projects, launched by Drew DeVault in 2018. Rather than a single, all-in-one monolithic application, it is made up of several services that are independent of one another but work well together, each handling one kind of task. The entire platform is open source under the AGPL-3.0 license, and you can use either the official hosted service or host it yourself.

Main Components

  • git.sr.ht / hg.sr.ht: Git and Mercurial repository hosting
  • builds.sr.ht: Continuous integration and build service that runs build jobs in virtual machines, supports many Linux distributions and BSD systems, and describes jobs with YAML manifests
  • lists.sr.ht: Mailing lists, which can be used for discussion, submitting patches (git send-email), and code review
  • todo.sr.ht: Issue and ticket tracking
  • man.sr.ht: Git-based wiki documentation
  • paste.sr.ht: Code snippet sharing
  • pages.sr.ht: Static website hosting
  • meta.sr.ht: Management of accounts, SSH/PGP keys, and authentication
  • hub.sr.ht: A project hub that organizes the resources above into projects

Key Strengths

  • Lightweight and fast: Pages are small and don't depend on JavaScript, so the site works fine even with an older browser or a poor network connection.
  • Modular: Each service can be used on its own, for example using only builds.sr.ht for CI while keeping your code elsewhere.
  • Email-driven collaboration: It follows the email patch workflow long used by projects such as the Linux kernel, so participants can contribute code and report issues by email without needing to register an account.
  • Fully open source: All of the platform's code is public, with no closed-source "enterprise edition" features.
  • Privacy-focused: No ads and no tracking.

Target Users

  • Open source maintainers and developers who like the email patch workflow
  • Individuals or teams looking for an alternative to GitHub or GitLab who value simplicity and open source
  • Projects that need CI on multiple operating systems (including BSD)
  • Organizations that want to self-host a complete development platform

Deployment and Usage

  • Hosted service: Sign up at sr.ht to get started. The official hosted service has long been in alpha and runs on a paid subscription model; for specific pricing and payment requirements, please check the official website.
  • Self-hosting: The components are mainly written in Python and Go, and depend on PostgreSQL, Redis, and other components; you usually also need to set up a mail service. The project provides installation documentation and distribution packages (mainly for Alpine Linux and similar), and deployment is somewhat more complex than all-in-one solutions, making it best suited to users with operations experience.

Notable Characteristics

  • The workflow differs considerably from GitHub-style Pull Requests, so new users need to get used to email-based code review.
  • It provides APIs such as GraphQL, as well as webhooks, making integration and automation easier.