# templ を Homebrew, apk, Nix でインストール

templ のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:templ
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install templ
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add templ
```

  証拠: Alpine Linux edge package indexes: templ from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#templ
```

  証拠: nixpkgs package indexes: pkgs/by-name/te/templ/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:templ
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/templ>
- **バージョン:** 0.3.1020
- **ソース概要:** Language for writing HTML user interfaces in Go
- **ホームページ:** <https://templ.guide>
- **リポジトリ:** <https://github.com/a-h/templ>
- **上流ドキュメント:** <https://templ.guide>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/a-h/templ/archive/refs/tags/v0.3.1020.tar.gz>
- **最終更新:** 2026-07-26T00:50:34+02:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- templ (cli)
- templ (エイリアス)

## ビルド依存関係

- go

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.3.1020
- マネージャ更新日: 2026-07-26
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/a-h/templ
- 検出された最新: v0.3.1020 (最新)
## プロジェクトの歴史と使われ方

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.

### プロジェクトの歴史

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.

### 採用の歴史

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.

### 使われ方

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.

### パッケージ好きにとっての重要性

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.

### タイムライン

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

### ソース

- <https://api.github.com/repos/a-h/templ>
- <https://api.github.com/repos/a-h/templ/releases>
- <https://github.com/a-h/templ#readme>
- <https://templ.guide/>
- <https://templ.guide/core-concepts/template-generation/>
- <https://templ.guide/developer-tools/cli/>
- source_facts.package-manager


## セキュリティノート

templ に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、パッケージメタデータはここに公開されています。


## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** templ
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 他のパッケージマネージャ記録

- Nix - templ: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/templ/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - templ - 0.3.960-r7: normalized package name match | Alpine Linux edge package indexes: templ from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Language for writing HTML user interface in Go | https://templ.guide/


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/ja/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [go](https://pkg.so/ja/brew/go/) - Build dependency declared by Homebrew.
- [vnu](https://pkg.so/ja/brew/vnu/) - Shares pkgdb curated category or tags: cli, developer-tools, html, web-development.
- [djlint](https://pkg.so/ja/brew/djlint/) - Shares pkgdb curated category or tags: cli, developer-tools, html, templates.
- [go-blueprint](https://pkg.so/ja/brew/go-blueprint/) - Shares pkgdb curated category or tags: cli, developer-tools, go, templates.
- [htmltest](https://pkg.so/ja/brew/htmltest/) - Shares pkgdb curated category or tags: cli, developer-tools, go, html.
- [cascadia](https://pkg.so/ja/brew/cascadia/) - Shares pkgdb curated category or tags: cli, developer-tools, go, html.
- [go-rice](https://pkg.so/ja/brew/go-rice/) - Shares pkgdb curated category or tags: cli, developer-tools, go, templates.
- [libxml2](https://pkg.so/ja/brew/libxml2/) - Shares pkgdb curated category or tags: cli, developer-tools, html.
- [fzf](https://pkg.so/ja/brew/fzf/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [haml-coffee](https://pkg.so/ja/npm/haml-coffee/) - Both packages work with overlapping file formats or content types. Shared terms: cli, developer, developer-tools, development, html.
- [polyserve](https://pkg.so/ja/npm/polyserve/) - Both packages work with overlapping file formats or content types. Shared terms: cli, components, developer, developer-tools, development.
- [serve](https://pkg.so/ja/brew/serve/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, development, go.

## Combined YAML source

View the package source record on GitHub. [combined/templ.yml](https://github.com/mxcl/pkgdb/blob/main/combined/templ.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
