# Supported ecosystems

`cooldown` auto-detects the package managers in a directory and drives each one with the same
commands and config. Every package manager is its own `--tool`, with a page of its own:

| Ecosystem | `--tool` | Registry | Reads |
|---|---|---|---|
| Rust | [`cargo`](https://romnn.github.io/cooldown/docs/tools/cargo/) | crates.io | `Cargo.toml` / `Cargo.lock` |
| Go | [`go`](https://romnn.github.io/cooldown/docs/tools/go/) | GOPROXY | `go.mod` / `go.sum` |
| Python (uv) | [`uv`](https://romnn.github.io/cooldown/docs/tools/uv/) | PyPI | `pyproject.toml` / `uv.lock` |
| Python (pip) | [`pip`](https://romnn.github.io/cooldown/docs/tools/pip/) | PyPI | `requirements.txt` |
| Python (Poetry) | [`poetry`](https://romnn.github.io/cooldown/docs/tools/poetry/) | PyPI | `pyproject.toml` / `poetry.lock` |
| Python (conda) | [`conda`](https://romnn.github.io/cooldown/docs/tools/conda/) | anaconda.org (+ PyPI) | `conda-lock.yml` |
| Python (pixi) | [`pixi`](https://romnn.github.io/cooldown/docs/tools/pixi/) | anaconda.org (+ PyPI) | `pixi.lock` |
| npm | [`npm`](https://romnn.github.io/cooldown/docs/tools/npm/) | npm registry | `package.json` / `package-lock.json` |
| pnpm | [`pnpm`](https://romnn.github.io/cooldown/docs/tools/pnpm/) | npm registry | `pnpm-lock.yaml` |
| Yarn (Classic v1 and Berry v2+) | [`yarn`](https://romnn.github.io/cooldown/docs/tools/yarn/) | npm registry | `yarn.lock` |
| Bun | [`bun`](https://romnn.github.io/cooldown/docs/tools/bun/) | npm registry | `bun.lock` |
| Deno | [`deno`](https://romnn.github.io/cooldown/docs/tools/deno/) | npm + JSR | `deno.json` / `deno.lock` |
| Ruby | [`bundler`](https://romnn.github.io/cooldown/docs/tools/bundler/) | rubygems.org | `Gemfile` / `Gemfile.lock` |
| Elixir | [`hex`](https://romnn.github.io/cooldown/docs/tools/hex/) | hex.pm | `mix.exs` / `mix.lock` |
| Java (Maven) | [`maven`](https://romnn.github.io/cooldown/docs/tools/maven/) | Maven Central | `pom.xml` |
| Java (Gradle) | [`gradle`](https://romnn.github.io/cooldown/docs/tools/gradle/) | Maven Central | `gradle.lockfile` |
| Swift | [`swift`](https://romnn.github.io/cooldown/docs/tools/swift/) | GitHub Releases | `Package.resolved` |

Aliases are accepted wherever a `--tool` name is, and each names exactly one tool:

- `crates`, `rust`: `cargo`
- `golang`: `go`
- `pypi`, `python`: `uv`
- `mamba`, `micromamba`: `conda`
- `spm`, `swiftpm`: `swift`
- `node`, `js`, `javascript`, `typescript`: `npm`
- `bundle`, `ruby`, `gem`, `rubygems`: `bundler`
- `mix`, `elixir`: `hex`
- `mvn`: `maven`

> [!NOTE]
> To act on an ecosystem, its native tool must be installed and on your `PATH`. Ecosystems you
> don't use need nothing: detection skips them. See
> [Getting started](https://romnn.github.io/cooldown/docs/getting-started/#1-install-it).

## How each is driven

`cooldown` never treats a native package manager as the source of policy. The cooldown verdict is
computed in one core evaluator, the same for every ecosystem. The native tool is used only to
**resolve** a lockfile graph and to **apply** changes back to it. That keeps "adoptable" identical
across ecosystems.

One generic adapter is specialised per lockfile format. Publish times come from each registry's own
metadata:

- **Go:** GOPROXY `@v/<ver>.info`.
- **Rust:** crates.io.
- **Python:** PyPI and anaconda.org.
- **JavaScript:** the npm registry and JSR.
- **SwiftPM:** GitHub Releases.

Adapters that mix registries resolve each dependency against its own source: Deno's `npm:` and
`jsr:`, conda and PyPI, pixi and PyPI.

## Registries and native cooldowns

Some ecosystems already ship a native cooldown:

- **[uv](https://romnn.github.io/cooldown/docs/tools/uv/):** `exclude-newer`
- **[pnpm](https://romnn.github.io/cooldown/docs/tools/pnpm/):** `minimumReleaseAge`
- **[Yarn](https://romnn.github.io/cooldown/docs/tools/yarn/):** `npmMinimalAgeGate`
- **[Cargo](https://romnn.github.io/cooldown/docs/tools/cargo/#cargos-own-publish-age):** `min-publish-age`

Where one exists, [`cooldown sync`](https://romnn.github.io/cooldown/docs/commands/other/#sync) (or the global
`--sync` flag) writes the resolved policy *down* into that native config. `cooldown.toml` stays the
single source of truth, and the native tool sees the same window you set once.

## Which binary runs

`cooldown` runs each package manager as the program its name finds on `PATH`. `COOLDOWN_<BIN>`
names a different program, with the binary's name in upper case and `-` spelled `_`:
`COOLDOWN_CARGO`, `COOLDOWN_GO`, `COOLDOWN_UV`, `COOLDOWN_PNPM`. Each tool's page names the binaries
it runs.

When `PATH` leads to a [mise](https://mise.jdx.dev) shim, every command first runs mise, which picks
the tool and its environment for the command's directory. That costs tens of milliseconds per call,
and a cargo `upgrade` makes hundreds of calls. `cooldown` still goes through the shim, because the
shim also applies the environment, wrappers and installs from the project's `mise.toml`, and a
direct call would skip them.

A tool that mise does not manage reaches its real binary through the shim's fallback anyway, so
naming that binary directly loses nothing and skips the overhead. For a rustup-managed cargo, set
`COOLDOWN_CARGO="$HOME/.cargo/bin/cargo"`, or put `~/.cargo/bin` ahead of mise's shims on `PATH`.

An override names a program and nothing else. It applies no mise environment, so use it only for a
tool whose mise configuration you do not need.

## Several ecosystems at once

In a polyglot repository every detected ecosystem runs in its own lane, and the lanes run
concurrently: while `cargo` waits on crates.io, `uv` is already resolving against PyPI, whether
they live in different directories or share one. A lane runs its own projects one after another,
since concurrent invocations of one package manager block on that manager's own cache lock.

Some work still takes turns:

- **Ecosystems that rewrite the same manifest:** only these take turns under `upgrade`, `fix`, or
  `--lock`. uv and poetry both own `pyproject.toml`, and every npm-family tool owns
  `package.json`, so two of them at one root, or one nested in the other's workspace, run in turn.
  `--dry-run` mutates a throwaway copy, so it reads side by side too.
- **`--build` steps:** run one at a time across ecosystems, since every ecosystem installs into the
  environment shared at a root (`node_modules`, `.venv`).
- **Upgrades of tools whose native command installs as it pins** (`poetry add`, `conda install`,
  `swift package update`): run one at a time too, and so does `outdated`'s preview of such an
  update, which runs the same command on a copy.

`--jobs <N>` caps how many ecosystems run at once; `--jobs 1` runs them one after another. The
reports, their order, and the exit code are the same as a sequential run's. The interactive
progress display shows one block per live ecosystem, and the plain transcript names the tool and
project on every per-project line.

## Scoping to a subset

In a polyglot repository, restrict a run to one or more ecosystems with `--tool`, repeatable or
comma-separated:

```sh
cooldown outdated --tool cargo,go
cooldown check --tool uv
```

`--cargo` is a shorthand for `--tool cargo`. It is the right default for a Rust workspace living
inside a polyglot monorepo, since it skips detecting and enumerating everything else. When no
`--tool` is given, every detected ecosystem is included.
