Automic VaultAutomic Vault

brew

Install templ with Homebrew, apk, Nix

Language for writing HTML user interfaces in Go. Version 0.3.1020 via Homebrew; verified 2026-05-10.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install templ

local Homebrew formula metadata

Linux

Alpine Linux apkverified · 92%
sudo apk add templ

Alpine Linux edge package indexes · templ · source: dl-cdn.alpinelinux.org

Nixverified · 92%
nix profile install nixpkgs#templ

nixpkgs package indexes · pkgs/by-name/te/templ/package.nix · source: api.github.com

overview

Package summary

Language for writing HTML user interfaces in Go

Commands and aliases

  • templ

history

Project history and usage

templ is a Go-focused HTML component language and code generator. Its documentation describes it as a way to build HTML with Go by creating components that render fragments of HTML and compose them into screens, pages, documents, or apps.

Project history

The public repository was created in April 2021, and early GitHub releases appeared in May 2021. The README positions the project as an HTML templating language for Go with strong developer tooling, including generated Go code and editor/LSP support.

Adoption history

templ's adoption grew with the renewed interest in server-rendered Go web applications, htmx-style partial updates, and type-checked component composition. Package-manager coverage in Homebrew, Nix, and Alpine reflects its use as a build-time CLI installed alongside Go toolchains.

How it is used

The official docs say most users run `templ generate` to generate Go code from `*.templ` files. The CLI also provides formatting, an LSP server, environment information, and version reporting; watch/proxy modes support live reload during web development.

Why package nerds care

For package nerds, templ is notable because the package is primarily a generator executable: projects often commit generated `*_templ.go` files or wire generation into CI, so the tool affects reproducible builds, editor setup, and source packaging.

Timeline

  • 2021: GitHub repository created.
  • 2021: Early v0.0.x releases published.
  • 2023: Official docs include GopherCon UK 2023 material for templ's language-server tooling.

Related projects

  • templ is commonly used with Go's `net/http` package and web frameworks such as Chi, Echo, Gin, and Fiber.
  • The docs explicitly discuss htmx integration and React interoperability for cases where server-rendered Go components need client-side interactivity.

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for templ. Nucleus package metadata is still published here so future coverage has a stable package URL.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
templcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version0.3.1020
manager updated2026-05-10
local dataok
upstreamcurrent
latest detectedv0.3.1020

https://github.com/a-h/templ

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:templ
Version0.3.1020
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/templ
Homepagehttps://templ.guide
Repositoryhttps://github.com/a-h/templ
Upstream docshttps://templ.guide/
LicenseMIT
Source archivehttps://github.com/a-h/templ/archive/refs/tags/v0.3.1020.tar.gz
Last updated2026-05-10T09:31:27Z
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nametempl
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

templ

nix profile install nixpkgs#templ
  • normalized package name match
  • Matched by: Templ
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/te/templ/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

templ 0.3.960-r6

Language for writing HTML user interface in Go

https://templ.guide/

sudo apk add templ
  • License: MIT
  • Architecture: x86_64
  • Source Package: templ
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Templ
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: templ from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment