# avh4/elm-format

elm-format formats Elm source code according to a standard set of rules based on the official Elm Style Guide

Repository: https://github.com/avh4/elm-format
Canonical: https://ross.abutalabs.com/products/elm-format
Language: Haskell
License: BSD-3-Clause
License Family: permissive
Topics: elm, formatter, code-style
Last push: 2025-06-19T02:56:33+00:00

## Health v2 (maintenance only)
Score: 35/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 27, release rhythm 8, longevity 100
- inputs: {"age_days": 4008, "days_push": 440, "days_rel": 441, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1333, forks 147 (observed 2026-08-28T04:04:24.580149+00:00)

## What it is
elm-format is a command-line tool that automatically formats Elm source code according to a standard set of rules based on the official Elm Style Guide, inspired by Go's gofmt. It supports Elm 0.18 and 0.19, integrates with editors via plugins, and is distributed via npm or standalone binaries.

## Use cases
- format elm source code automatically
- enforce consistent code style across an elm codebase
- eliminate formatting-only diffs in code review
- format elm files on save in my editor
- stop team debates about elm code formatting

## When to choose
- you write or maintain Elm code and want automatic, opinionated formatting
- your team wants a single standard style with no configuration debates
- you want gofmt-style format-on-save integration in editors like VS Code, Atom, or Emacs

## When to avoid
- you need configurable or customizable formatting styles - elm-format is intentionally opinionated with no style options
- you work in languages other than Elm

## Facets
- artifact type: cli-tool
- maturity: stable
- function: formatter, cli, developer-tools
- domain: developer-tools, programming-languages, frontend
- platform: cli, cross-platform
- tags: elm, code-style, gofmt-inspired, editor-integration, nodejs

## Member repositories
- avh4/elm-format (main) score 35

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:24.580149+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:44:40.320586+00:00, confidence not recorded.
  - readme: https://github.com/avh4/elm-format (fetched 2026-08-28T04:04:24.580149+00:00, sha 4c11a13666d2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
