Automic VaultAutomic Vault

brew

topfew を Homebrew, MacPorts, Nix でインストール

topfew のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install topfew

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install topfew

MacPorts ports tree · textproc/topfew/Portfile · ソース: api.github.com

Linux

Nix確認済み · 92%
nix profile install nixpkgs#topfew

nixpkgs package indexes · pkgs/by-name/to/topfew/package.nix · ソース: api.github.com

概要

パッケージ概要

Finds the field values which appear most often in a stream of records

コマンドとエイリアス

  • topfew

履歴

プロジェクトの歴史と使われ方

topfew is a Go command-line utility for finding the most frequent records or field combinations in text streams and files. It packages a familiar Unix analysis pattern into a faster, purpose-built binary.

プロジェクトの歴史

Tim Bray created Topfew as a utility for counting common values in streams of records, with the README crediting his version 0.1 and later work toward 1.0 to ideas from Dirkjan Ochtman and Simon Fell. The project reached a documented 1.0 release in April 2024, and the current README describes release 2.0.

The design is explicitly close to traditional shell composition: the README states that its result can be duplicated with awk, grep, sed, sort, uniq, and head, but argues that Topfew is for cases where performance matters on large inputs. The examples are package-nerd friendly: Apache logs, quoted fields, grep/vgrep filters, sed-style cleanups, and multi-threaded file processing.

採用の歴史

topfew is niche but packaged beyond its source repository. The input package metadata lists Homebrew, MacPorts, and Nix package names, matching its role as a small single-purpose CLI that is useful enough to show up in Unix package collections.

使われ方

The basic form is `topfew --fields 1 access_log`, which finds the most common first field in an Apache log. More advanced use combines field selection, regex separators, grep and inverse-grep filters, sed-style transformations, quoted-field parsing, output limits, and worker counts.

パッケージ好きにとっての重要性

topfew matters to package nerds because it is a performance-oriented replacement for a shell pipeline they already know. It is the sort of small binary people install from Homebrew or Nix when a log-analysis one-liner becomes too slow or too hard to repeat.

タイムライン

  • 2020: Author blog posts describe Topfew as a small utility replacing the `sort | uniq -c | sort -rn | head` pattern.
  • 2024: Tim Bray announced Topfew 1.0.
  • Current: README describes release 2.0 and documents Homebrew-friendly CLI usage.

Related projects

  • awk, grep, sed, sort, uniq, head, Apache httpd logs, Go runtime.

セキュリティ状態

リスクレベル: blue

broad file, network, media, or database tool signal.

リスク分類器

リスク blue · 信頼度 中 · tool

理由

  • broad file, network, media, or database tool signal

信号

  • text:stream,record

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 10 個のプラットフォームターゲットで利用できます。
  • ビルドメタデータには 1 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
topfewcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-26
マネージャ版2.0.0
マネージャ更新日
ローカルデータOK
上流最新
検出された最新v2.0.0

https://github.com/timbray/topfew

  • 情報No package-manager update timestamp was available.信頼度 低

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:topfew
バージョン2.0.0
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/topfew
ホームページhttps://github.com/timbray/topfew
リポジトリhttps://github.com/timbray/topfew
上流ドキュメントhttps://github.com/timbray/topfew#readme
ライセンスGPL-3.0-or-later
ソースアーカイブhttps://github.com/timbray/topfew/archive/refs/tags/v2.0.0.tar.gz
ビルド依存関係go
Bottle利用可能 (対象 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

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

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Nix95%

topfew

nix profile install nixpkgs#topfew
  • normalized package name match
  • 一致条件: Topfew
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/to/topfew/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

topfew

sudo port install topfew
  • normalized package name match
  • 一致条件: Topfew
MacPorts ports tree · api.github.com · MacPorts ports tree: textproc/topfew/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • 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