github.com/goddtriffin/helmet

helmet

HTTP security middleware for Go(lang) inspired by HelmetJS.

54

Decision Signals

Health score 54/100, confidence 95/100.

Caution
Maintenance 8
Adoption 46
Security 92
Maturity 94
Developer DX 77
Confidence 95

Install

go get github.com/goddtriffin/helmet

Package Data

updated Jun 11, 2026
Latest versionv1.0.2
Imported by7 packages
Stars34
Forks3
Last activity3 years ago
Latest releasev1.0.2 (4 years ago)
LicenseMIT
Known vuln records0

API Surface

244 symbols
SymbolKindSynopsis
CSPDirective Type type CSPDirective string
DeprecatedDirectiveBlockAllMixedContent Constant const DeprecatedDirectiveBlockAllMixedContent
DeprecatedDirectivePluginTypes Constant const DeprecatedDirectivePluginTypes
DeprecatedDirectiveReferrer Constant const DeprecatedDirectiveReferrer
DeprecatedDirectiveReportURI Constant const DeprecatedDirectiveReportURI
DirectiveBaseURI Constant const DirectiveBaseURI
DirectiveChildSrc Constant const DirectiveChildSrc
DirectiveConnectSrc Constant const DirectiveConnectSrc
DirectiveDefaultSrc Constant const DirectiveDefaultSrc
DirectiveFontSrc Constant const DirectiveFontSrc
DirectiveFormAction Constant const DirectiveFormAction
DirectiveFrameAncestors Constant const DirectiveFrameAncestors

Maintained Alternatives

limited recent repository activity

#1 Caddy

Package caddy implements the Caddy server manager.

Go Security Middleware 73.3K stars 0 imported-by 80% confidence
91

#2 go-jwt-middleware

A Middleware for Go Programming Language to check for JWTs on HTTP requests

Go Security Middleware 1.2K stars 874 imported-by 60% confidence
91

#3 nosurf

Package nosurf implements an HTTP handler that mitigates Cross-Site Request Forgery Attacks.

Go Security Middleware 1.7K stars 2.5K imported-by 100% confidence
81

#4 authelia

The Single Sign-On Multi-Factor portal for web apps, now OpenID Certified™

Go Security Middleware 28.0K stars 0 imported-by 95% confidence
81

#5 gorilla/csrf

Package gorilla/csrf provides Cross Site Request Forgery (CSRF) prevention middleware for Go web applications & services đź”’

Go Security Middleware 1.2K stars 1.1K imported-by 65% confidence
67

#6 secure

Package secure is an HTTP middleware for Go that facilitates some quick security wins.

Go Security Middleware 0 stars 921 imported-by 80% confidence
64

Similar Packages

Go Security Middleware

#1 Caddy

Package caddy implements the Caddy server manager.

Go Security Middleware 73.3K stars 0 imported-by 80% confidence
91

#2 go-jwt-middleware

A Middleware for Go Programming Language to check for JWTs on HTTP requests

Go Security Middleware 1.2K stars 874 imported-by 60% confidence
91

#3 nosurf

Package nosurf implements an HTTP handler that mitigates Cross-Site Request Forgery Attacks.

Go Security Middleware 1.7K stars 2.5K imported-by 100% confidence
81

#4 authelia

The Single Sign-On Multi-Factor portal for web apps, now OpenID Certified™

Go Security Middleware 28.0K stars 0 imported-by 95% confidence
81

#5 gorilla/csrf

Package gorilla/csrf provides Cross Site Request Forgery (CSRF) prevention middleware for Go web applications & services đź”’

Go Security Middleware 1.2K stars 1.1K imported-by 65% confidence
67