# Install djlint with Homebrew, Nix

Lint & Format HTML Templates. Version 1.40.3 via Homebrew; verified 2026-07-05.

## Install

```sh
sudo av install brew:djlint
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install djlint
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#djlint
```

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

## Package facts

- **Package key:** brew:djlint
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/djlint>
- **Version:** 1.40.3
- **Source summary:** Lint & Format HTML Templates
- **Homepage:** <https://djlint.com>
- **Repository:** <https://github.com/djlint/djLint>
- **Upstream docs:** <https://djlint.com/docs/configuration>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://files.pythonhosted.org/packages/75/98/fdee72fa3bd20af0ca42c136d076c8a2069cd7303d66cb77c60fc901914f/djlint-1.40.3.tar.gz>
- **Last updated:** 2026-07-05T14:53:00Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- djlint (cli)
- djlint (alias)

## Dependencies

- libyaml
- python@3.14

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.40.3
- Package-manager updated: 2026-07-05
- Local data: ok
- Upstream repository: https://djlint.com
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

djLint is an HTML template linter and formatter for Django, Jinja, Nunjucks, Twig, Handlebars, Mustache, Go templates, Angular, and related template syntaxes. It fills the gap between generic HTML tooling and framework-aware template code that contains tags ordinary HTML formatters do not understand.

### Project history

The official repository was created in July 2021 and describes djLint as a formatter and linter for HTML templates. The README frames the project as a response to template files being left out while many programming languages already had standard formatters and linters.

The project grew around both formatting and linting modes: users can lint, check formatting, reformat, run pre-commit hooks, and configure behavior through `pyproject.toml`, `djlint.toml`, `.djlint.toml`, or `.djlintrc`. The official docs and README also show multilingual documentation and integrations as part of the public surface.

### Adoption history

djLint adoption is visible in its packaging spread: the official README documents PyPI, Homebrew, npm experimental installation, and pre-commit hooks. That mix fits web teams that want the same tool in Python environments, JavaScript-heavy repositories, and system package managers.

The official release metadata shows continued activity through the mid-2020s, including the 1.36 series in 2024 and the 1.39 series in 2026. The project also advertises downloads and community links from the README, signaling that it had moved beyond a one-off formatter experiment.

### How it is used

Typical use is `djlint . --lint`, `djlint . --check`, or `djlint . --reformat`, often with an explicit template extension such as `html.j2`. Teams put options in project config files and use pre-commit hooks for automatic reformatting and lint checks.

### Why package nerds care

djLint matters to package nerds because it packages a messy cross-template problem into one CLI while still fitting Python, npm, Homebrew, and pre-commit ecosystems. It also sits next to smaller tools like DjHTML, making the template-formatting space unusually visible in package-manager catalogs.

### Timeline

- 2021-07-12: Official GitHub repository created.
- 2024-12-24: v1.36.4 release published.
- 2026-06-04: v1.37.0 and v1.38.0 releases published.
- 2026-06-30: v1.39.6 release published.

### Related projects

- Related projects include DjHTML for indentation-only Django and Jinja templates, HTMLHint for HTML linting, curlylint for template linting, Black as a formatting-culture reference point, and pre-commit for hook-based adoption.

### Sources

- <https://github.com/djlint/djLint>
- <https://raw.githubusercontent.com/djlint/djLint/master/README.md>
- <https://djlint.com/docs/getting-started/>
- <https://djlint.com/docs/configuration/>
- <https://api.github.com/repos/djlint/djLint>
- <https://api.github.com/repos/djlint/djLint/releases?per_page=12>


## 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: pyproject.toml, djlint.toml, .djlint.toml, .djlintrc
## Source Database Details

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

## Other Package-Manager Records

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


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [djhtml](https://www.automicvault.com/pkg/brew/djhtml/) - Shares av.db curated category or tags: cli, developer-tools, django, formatter, html.
- [panache](https://www.automicvault.com/pkg/brew/panache/) - Shares av.db curated category or tags: cli, developer-tools, formatter, linter, linting-formatting.
- [biome](https://www.automicvault.com/pkg/brew/biome/) - Shares av.db curated category or tags: cli, developer-tools, formatter, linter.
- [copier](https://www.automicvault.com/pkg/brew/copier/) - Shares av.db curated category or tags: cli, developer-tools, jinja, templates.
- [gdtoolkit](https://www.automicvault.com/pkg/brew/gdtoolkit/) - Shares av.db curated category or tags: cli, developer-tools, formatter, linter.
- [htmlhint](https://www.automicvault.com/pkg/brew/htmlhint/) - Shares av.db curated category or tags: cli, developer-tools, html, linter.
- [isort](https://www.automicvault.com/pkg/brew/isort/) - Shares av.db curated category or tags: cli, developer-tools, formatter, linter.
- [js-beautify](https://www.automicvault.com/pkg/brew/js-beautify/) - Shares av.db curated category or tags: cli, developer-tools, formatter, html.
- [sqlfluff](https://www.automicvault.com/pkg/brew/sqlfluff/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, formatter, libyaml.

## Combined YAML source

View the package source record on GitHub. [combined/djlint.yml](https://github.com/automic-vault/db/blob/main/combined/djlint.yml)


## Sources

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