Automic VaultAutomic Vault

brew

Install djhtml with Homebrew, Nix

Django/Jinja template indenter. Version 3.0.11 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install djhtml

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#djhtml

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

overview

Package summary

Django/Jinja template indenter

Commands and aliases

  • djcss
  • djhtml
  • djjs
  • djtxt

history

Project history and usage

DjHTML is a pure-Python indenter for Django and Jinja templates, with companion commands for CSS, JavaScript, and text-like template files. It intentionally calls itself an indenter rather than a formatter: it changes leading whitespace but does not restructure markup.

Project history

The official repository was created in May 2021 and describes DjHTML as a dependency-free template indenter. Its README positions the tool near formatters such as Black while making a narrower promise: fix indentation for already well-structured mixed HTML, CSS, JavaScript, Django, and Jinja templates.

DjHTML's design is conservative for template-heavy projects because it avoids inserting newlines or other non-whitespace characters. The same repository ships multiple entry points: `djhtml` for template files, `djcss` for style sections or CSS mode, `djjs` for script sections or JavaScript mode, and `djtxt` for text-oriented indentation.

Adoption history

Adoption has been strongest in Python web projects that already use pre-commit. The README provides a `.pre-commit-config.yaml` example using the official repository as the hook source, which lets teams run DjHTML automatically without adding a broader HTML formatter to the application runtime.

Package-manager interest is modest but durable: the Homebrew package exposes the CLI tools for users who prefer system package managers, while the upstream project remains a small Python utility with regular 3.x releases.

How it is used

Users run `djhtml template.html` or `djhtml .` to rewrite indentation, and use `--check` in automation when they want a nonzero status if files would change. The `fmt:off` and `fmt:on` markers, plus ignored pre/comment blocks, keep generated or intentionally odd sections out of the indenter.

Why package nerds care

DjHTML is package-nerd interesting because it occupies the narrow space between no formatter and a full syntax-changing HTML formatter. Its no-dependency Python implementation, pre-commit hook, and separate mode commands make it a small, easy-to-package tool for template repositories.

Timeline

  • 2021-05-08: Official GitHub repository created.
  • 2023-02: 3.0.x releases appear in official GitHub release metadata.
  • 2026-03-26: 3.0.11 release published.

Related projects

  • Related template-formatting tools include djLint, djangofmt, Black for Python style culture, and pre-commit as the hook runner commonly used to apply DjHTML.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 1 platform targets.
  • Installs with 1 runtime 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
djcsscliglobal executable
djhtmlcliglobal executable
djjscliglobal executable
djtxtcliglobal 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 version3.0.11
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/rtts/djhtml

  • infoNo package-manager update timestamp was available.low confidence
  • infoNo cached GitHub release or tag data was available.https://github.com/rtts/djhtmlnone confidence

install metadata

Package metadata

Package keybrew:djhtml
Version3.0.11
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/djhtml
Homepagehttps://github.com/rtts/djhtml
Repositoryhttps://github.com/rtts/djhtml
Upstream docshttps://github.com/rtts/djhtml#readme
LicenseGPL-3.0-or-later
Source archivehttps://files.pythonhosted.org/packages/22/57/5771714b5961b7ee275a5696cabc3bd8c4a602d7cca103a44016109509fd/djhtml-3.0.11.tar.gz
Dependenciespython@3.14
Bottleavailable (on all)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namedjhtml
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%

djhtml

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

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