Automic VaultAutomic Vault

brew

使用 Homebrew, apt, Nix, scoop, winget 安装 chroma

查看 chroma 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install chroma

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install chroma

Debian stable package indexes · chroma · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#chroma

nixpkgs package indexes · pkgs/by-name/ch/chroma/package.nix · 来源: api.github.com

Windows

Scoop已验证 · 92%
scoop install main/chroma

Scoop official bucket manifest trees · bucket/chroma.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id Ubisoft.Chroma -e

Windows Package Manager source index · Ubisoft.Chroma · 来源: cdn.winget.microsoft.com

概览

软件包摘要

General purpose syntax highlighter in pure Go

命令和别名

  • chroma

历史

项目历史与用法

Chroma is a pure-Go general-purpose syntax highlighter, usable both as a Go library and as the `chroma` command-line tool.

项目历史

The GitHub repository was created in June 2017. The README describes Chroma as converting source code and structured text into highlighted HTML, ANSI-colored text, and other output, with lexers, formatters, and styles modeled heavily on Pygments.

The project published v0.1.0 in September 2017, v2.0.0 in May 2022, and continued a fast v2 release line through 2026, with v3 alpha releases introducing Go iterator changes and a new module path.

采用历史

Chroma's adoption is partly library-driven: it has Go package documentation, a playground, and a CLI, while static-site and documentation tooling can embed it to avoid a Python/Pygments runtime. Homebrew packages the CLI and reports stable version 2.27.0.

The supplied package-manager facts list Homebrew, Debian, Ubuntu, Nix, and Scoop packages, showing distribution beyond the Go module ecosystem.

使用方式

Library users select a lexer, formatter, and style, or use the `quick.Highlight` helper. CLI users can run `chroma` directly and inspect available lexers with `chroma --list`.

为什么软件包爱好者会关心

Chroma is package-nerd interesting because it made Pygments-style highlighting available as a native Go dependency and standalone binary. That matters for self-contained Go programs, static-site generators, and container images that want syntax highlighting without a Python toolchain.

时间线

  • 2017: Repository created and v0.1.0 release published.
  • 2022: v2.0.0 release published.
  • 2025: v2 line continues with frequent releases through v2.20.0.
  • 2026: v2.27.0 and v3.0.0-alpha releases published.

Related projects

  • Pygments is the explicit design ancestor; the README says Chroma is based heavily on it and includes translators for Pygments lexers and styles. Related surfaces include Go package documentation, the Chroma playground, and the `pygments2chroma_xml.py` conversion script.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
chromacli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本2.27.0
管理器更新时间2026-06-17
本地数据OK
上游当前
检测到的最新版本v2.27.0

https://github.com/alecthomas/chroma

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:chroma
版本2.27.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/chroma
主页https://github.com/alecthomas/chroma
仓库https://github.com/alecthomas/chroma
上游文档https://github.com/alecthomas/chroma#readme
许可证MIT
源码归档https://github.com/alecthomas/chroma/archive/refs/tags/v2.27.0.tar.gz
最后更新2026-06-17T03:40:19Z
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namechroma
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

chroma 1.19-2

Abstract puzzle game - graphical version

http://level7.org.uk/chroma/

sudo apt install chroma
  • Section: games
  • Architecture: amd64
  • 6 依赖
  • normalized package name match
  • 匹配方式:Chroma
Debian stable package indexes · deb.debian.org · Debian stable package indexes: chroma from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

chroma-curses 1.19-2

Abstract puzzle game - terminal version

http://level7.org.uk/chroma/

sudo apt install chroma-curses
  • Section: games
  • Architecture: amd64
  • Source Package: chroma
  • 4 依赖
  • normalized package name match
  • 匹配方式:Chroma
Debian stable package indexes · deb.debian.org · Debian stable package indexes: chroma-curses from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

chroma-data 1.19-2

Abstract puzzle game - data files

http://level7.org.uk/chroma/

sudo apt install chroma-data
  • Section: games
  • Architecture: all
  • Source Package: chroma
  • normalized package name match
  • 匹配方式:Chroma
Debian stable package indexes · deb.debian.org · Debian stable package indexes: chroma-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

chroma

nix profile install nixpkgs#chroma
  • normalized package name match
  • 匹配方式:Chroma
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ch/chroma/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

chroma 1.19-1ubuntu1

Abstract puzzle game - graphical version

http://level7.org.uk/chroma/

sudo apt install chroma
  • Section: universe/games
  • Architecture: amd64
  • 6 依赖
  • normalized package name match
  • 匹配方式:Chroma
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: chroma from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

chroma-curses 1.19-1ubuntu1

Abstract puzzle game - terminal version

http://level7.org.uk/chroma/

sudo apt install chroma-curses
  • Section: universe/games
  • Architecture: amd64
  • Source Package: chroma
  • 4 依赖
  • normalized package name match
  • 匹配方式:Chroma
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: chroma-curses from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

chroma-data 1.19-1ubuntu1

Abstract puzzle game - data files

http://level7.org.uk/chroma/

sudo apt install chroma-data
  • Section: universe/games
  • Architecture: all
  • Source Package: chroma
  • normalized package name match
  • 匹配方式:Chroma
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: chroma-data from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Scoop95%

main/chroma

scoop install main/chroma
  • normalized package name match
  • 匹配方式:Chroma
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/chroma.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

Ubisoft.Chroma

winget install --id Ubisoft.Chroma -e
  • normalized package name match
  • 匹配方式:Chroma
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Ubisoft.Chroma from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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