What is headscale built with?

headscale is a Go repo built with chi. It stores its data in HashiCorp and Postgres, reaches it with gorm.io/gorm, signs people in with github.com/coreos/go-oidc/v3 and golang.org/x/oauth2, makes its content with github.com/tailscale/hujson, is tested with rapid, github.com/stretchr/testify, Google, Ory, and github.com/oauth2-proxy/mockoidc, deploys with github.com/rs/zerolog, Prometheus, Docker, github.com/prometheus/common, github.com/libdns/cloudflare, and 1 more, and uses github.com/glebarez/sqlite and SQLite. It has 222,641 written lines, with 257 test files.

Read on November 6, 2026, at commit 0bdc332. Read it as markdown

Backend

The base 1

Data 4

Data access 1

  • gorm.io/gorm17 files

Sign-in 2

Support

Content 1

  • github.com/tailscale/hujson3 files

Testing 5

  • github.com/stretchr/testify200 files
  • Google41 files
  • Ory18 files
  • github.com/oauth2-proxy/mockoidc7 files
  • rapid

Deploy 6

Tools 4

  • github.com/pkg/profile1 file
  • github.com/spf13/cobra17 files
  • golang.org/x/mod3 files
  • github.com/davecgh/go-spew1 file

Other 18

  • Tailscale69 files
  • github.com/spf13/viper6 files
  • github.com/miekg/dns3 files
  • github.com/caddyserver/certmagic2 files
  • github.com/go-json-experiment/json2 files
  • github.com/coder/websocket1 file
  • github.com/go-viper/mapstructure/v21 file
  • github.com/samber/lo1 file
  • go4.org/netipx14 files
  • github.com/cenkalti/backoff/v57 files
  • golang.org/x/exp3 files
  • golang.org/x/sync3 files
6 more
  • gopkg.in/yaml.v33 files
  • github.com/libdns/libdns2 files
  • github.com/mholt/acmez/v32 files
  • github.com/fsnotify/fsnotify1 file
  • github.com/sasha-s/go-deadlock1 file
  • golang.org/x/crypto1 file

Other repos with a similar stack

Ordered by how much of its stack they share with headscale, then by stars.

Frequently asked questions

What language is headscale written in?
headscale is written in Go, with 222,641 written lines.
What framework does headscale use?
headscale is built with chi.
What database does headscale use?
headscale stores its data in HashiCorp and Postgres and reaches it with gorm.io/gorm.
What does headscale sign people in with?
headscale signs people in with github.com/coreos/go-oidc/v3 and golang.org/x/oauth2.
What services does headscale use?
headscale uses github.com/glebarez/sqlite and SQLite.
Does headscale have tests?
Yes. headscale has 257 test files and is tested with rapid, github.com/stretchr/testify, Google, Ory, and github.com/oauth2-proxy/mockoidc.
Which repos have a stack like headscale's?
The ones that share most of its stack:mudler/LocalAIQuantumNous/new-apigo-gitea/gitea

See inside your code, today.

Paste your repo and see it drawn, part by part: a medium one in under a minute.

Free, no account.

Or look inside SeeRepo's own →

Is it your repo? Add its badge, keep it up to date or take it down →