caddyserver/caddy
Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Go★ 76,652+24 that day#4 on trendingD 51.3 health5.57% duplicated
D51.3/100
Duplication63
5.7% in go, bash, perlDead coden/a
the languages dead code reads are under 5% of the codeComplexity42
64%Most complex files
- modules/caddyhttp/reverseproxy/caddyfile.go452 cx
- caddyconfig/httpcaddyfile/httptype.go443 cx
- modules/caddyhttp/reverseproxy/reverseproxy.go375 cx
- caddyconfig/httpcaddyfile/tlsapp.go340 cx
- modules/caddyhttp/matchers.go311 cx
- caddyconfig/httpcaddyfile/builtins.go248 cx
- modules/caddyhttp/server.go247 cx
- admin.go243 cx
- modules/caddyhttp/reverseproxy/selectionpolicies_test.go227 cx
- modules/caddytls/connpolicy.go226 cx
Dead code 0% unused · 0 findings
No dead code found — everything here is reachable.
397files
125,184lines
663,193tokens
547clones
6,969duplicated lines (5.57%)
43,697duplicated tokens (6.59%)
By format
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| go | 358 | 115,640 | 508 | 6,605 | 5.71% |
| markup | 2 | 2,661 | 31 | 217 | 8.15% |
| yaml | 13 | 2,034 | 5 | 69 | 3.39% |
| txt | 6 | 367 | 3 | 78 | 21.25% |
| css | 1 | 2,836 | 0 | 0 | 0% |
| markdown | 6 | 777 | 0 | 0 | 0% |
| bash | 10 | 701 | 0 | 0 | 0% |
| perl | 1 | 168 | 0 | 0 | 0% |
Largest clones
- 127 lines · 479 tokens golisteners_test.go:236–362⇆listeners_test.go:362–488
- 67 lines · 469 tokens gomodules/caddyhttp/metrics_test.go:36–102⇆modules/caddyhttp/metrics_test.go:210–276
- 12 lines · 357 tokens gocaddyconfig/caddyfile/parse_test.go:783–794⇆caddyconfig/caddyfile/parse_test.go:886–898
- 17 lines · 289 tokens gocaddyconfig/httpcaddyfile/httptype_test.go:91–107⇆caddyconfig/httpcaddyfile/httptype_test.go:234–249
- 16 lines · 286 tokens gocaddyconfig/httpcaddyfile/builtins_test.go:259–274⇆caddyconfig/httpcaddyfile/httptype_test.go:91–107
- 17 lines · 270 tokens gocaddyconfig/httpcaddyfile/builtins_test.go:322–338⇆caddyconfig/httpcaddyfile/builtins_test.go:395–411
- 50 lines · 269 tokens gomodules/caddyhttp/celmatcher.go:757–806⇆modules/caddyhttp/fileserver/matcher.go:665–714
- 44 lines · 269 tokens gomodules/caddyhttp/reverseproxy/selectionpolicies_test.go:345–388⇆modules/caddyhttp/reverseproxy/selectionpolicies_test.go:488–531
- 42 lines · 248 tokens gomodules/caddyhttp/reverseproxy/caddyfile.go:1555–1596⇆modules/caddyhttp/reverseproxy/caddyfile.go:1655–1696
- 48 lines · 241 tokens gocaddytest/integration/reverseproxy_test.go:457–504⇆caddytest/integration/reverseproxy_test.go:515–562
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | Duplication | Health | Commit |
|---|---|---|---|---|---|---|---|---|
| Oct 5, 2026 | #4 | 76,652 (+24) | 397 | 125,184 | 547 | 5.57% | D 51.3 | 8507b63 |
Want this for your own project? Install jscpd and run jscpd .