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
- chi5 files
Data 4
- HashiCorp2 files
- Postgres2 files · hscontrol/db/db.go, line 19
- SQLite1 file · go.mod, line 84
- github.com/glebarez/sqlite1 file
Data access 1
- gorm.io/gorm17 files
Sign-in 2
github.com/coreos/go-oidc/v32 files
- golang.org/x/oauth21 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?
What framework does headscale use?
What database does headscale use?
What does headscale sign people in with?
What services does headscale use?
Does headscale have tests?
Which repos have a stack like headscale's?
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.
Is it your repo? Add its badge, keep it up to date or take it down →

