# kamadorueda/alejandra

The Uncompromising Nix Code Formatter

Repository: https://github.com/kamadorueda/alejandra
Canonical: https://ross.abutalabs.com/products/alejandra
Homepage: http://kamadorueda.com/alejandra/
Language: Nix
License: Unlicense
License Family: permissive
Topics: nix, rust, fmt, formatting, format, styleguide, style-guide, formatter
Last push: 2026-04-25T20:35:32+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 79, release rhythm 16, longevity 100
- inputs: {"age_days": 1680, "days_push": 130, "days_rel": 510, "gap_med": 157, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1393, forks 57 (observed 2026-08-28T04:04:36.292953+00:00)

## What it is
Alejandra is a fast, opinionated code formatter for the Nix expression language, written in Rust. It enforces a comprehensive style guide derived from Nixpkgs conventions and integrates with common editors and pre-commit workflows.

## Use cases
- format nix files automatically
- enforce a consistent nix code style across a team
- format nixpkgs quickly
- add nix formatting to pre-commit hooks
- format nix code in vscode or neovim

## When to choose
- you write Nix and want a fast, reliable, opinionated formatter
- you need to format large codebases like Nixpkgs in seconds
- you want editor or pre-commit integration for Nix formatting

## When to avoid
- you need a highly configurable formatter with many style options
- you don't work with the Nix language

## Facets
- artifact type: cli-tool
- maturity: stable
- function: formatter, cli, developer-tools
- domain: developer-tools, programming-languages
- platform: cross-platform, cli
- tags: nix, code-style, rust, style-guide, command-line, linux, macos

## Member repositories
- kamadorueda/alejandra (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:36.292953+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:39:29.268973+00:00, confidence not recorded.
  - readme: https://github.com/kamadorueda/alejandra (fetched 2026-08-28T04:04:36.292953+00:00, sha 70e87a61fa87)
  - homepage: http://kamadorueda.com/alejandra/ (fetched 2026-08-29T11:54:15.054885+00:00, sha 327adbd69654)
- Data as of 2026-08-30T08:39:29.467469+00:00.
