# Install htmltest with Homebrew, Nix

HTML validator written in Go. Version 0.17.0 via Homebrew; verified 2026-07-27. Also installable with nix: nix profile install nixpkgs#htmltest.

## Install

```sh
sudo av install brew:htmltest
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install htmltest
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#htmltest
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ht/htmltest/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:htmltest
- **Package manager:** Homebrew
- **Version:** 0.17.0
- **Source summary:** HTML validator written in Go
- **Homepage:** <https://github.com/wjdp/htmltest>
- **Repository:** <https://github.com/wjdp/htmltest>
- **Last updated:** 2026-07-27T14:32:26+02:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- htmltest (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.17.0
## Project history and usage

htmltest is a Go command-line checker for generated HTML sites. It tests links, images, scripts, alt text, and related generated-output problems, giving static-site and documentation projects a single binary alternative to heavier runtime stacks.

### Project history

The README introduces htmltest by comparing it with html-proofer: if a generated site needs checking but the user wants to avoid a Ruby environment or wants a faster standalone tool, htmltest is the Go-based option. The repository exposes `.htmltest.yml` configuration and release tags that show the project maturing through repeated 0.x releases.

The tag stream includes v0.8.1 in March 2018 and v0.17.0 in November 2022. A companion `htmltest-action` repository and GitHub Marketplace action show the project moving naturally into CI workflows where generated documentation and static sites are checked after builds.

### Adoption history

The input package facts record Homebrew, Nix, and Fedora development packaging. The official GitHub Action gives another adoption route: users can run the binary in CI without managing a local install, while package managers serve developers who want the same check available on laptops and build hosts.

### How it is used

htmltest is typically pointed at a generated output directory and optionally configured with `.htmltest.yml`. Its job is to catch broken internal or external references and markup hygiene issues before a static site, docs tree, or generated HTML artifact is published.

### Why package nerds care

For package nerds, htmltest is interesting because it packages a documentation QA pattern as a portable Go binary. It is not a browser and not a general validator; it is the small CI-friendly check that catches the boring broken-output mistakes before release.

### Timeline

- 2018: v0.8.1 was tagged in March.
- 2022: v0.17.0 was tagged in November.
- CI era: The companion `htmltest-action` repository documents running htmltest from GitHub Actions.
- Package-manager era: The input package facts record Homebrew, Fedora, and Nix packaging.

### Related projects

- htmltest is related to html-proofer, link checkers, static-site test steps, and GitHub Actions that validate generated documentation. Its practical neighbors are documentation build pipelines rather than browser-based HTML validators.

### Sources

- <https://api.github.com/repos/wjdp/htmltest/commits/91ffb25a2a211de20da425cf21c584afd358a2c6>
- <https://api.github.com/repos/wjdp/htmltest/commits/ec73febdcb639acbeb983089db2df6732e8199bd>
- <https://api.github.com/repos/wjdp/htmltest/tags?per_page=20>
- <https://github.com/marketplace/actions/htmltest-action>
- <https://github.com/wjdp/htmltest>
- <https://github.com/wjdp/htmltest-action>
- <https://github.com/wjdp/htmltest/releases>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .htmltest.yml
## Other Package-Manager Records

- Nix - htmltest: normalized package name match | nixpkgs package indexes: pkgs/by-name/ht/htmltest/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
