pkg.soopen package index

brew / rank 4732

Install templ with Homebrew, apk, Nix

Language for writing HTML user interfaces in Go. Version 0.3.1020 via Homebrew; verified 2026-07-26. Also installable with nix: nix profile install nixpkgs#templ.

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 bottle metadata was recorded.

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
templexecutableindexed executableDiscovered from the local executable index.

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-08-03
manager version0.3.1020
manager updated2026-07-26
local dataunknown
upstreamnot available
latest detectednot detected
  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:templ
Version0.3.1020
Package managerHomebrew
Homepagehttps://templ.guide
Repositoryhttps://github.com/a-h/templ
Last updated2026-07-26T00:50:34+02:00
Pulseupdated
Bottlenot recorded
Servicenone declared

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-r7

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
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation