Automic VaultAutomic Vault

brew

使用 Homebrew, apk, Nix 安装 xdg-ninja

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install xdg-ninja

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add xdg-ninja

Alpine Linux edge package indexes · xdg-ninja · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#xdg-ninja

nixpkgs package indexes · pkgs/by-name/xd/xdg-ninja/package.nix · 来源: api.github.com

概览

软件包摘要

Check your $HOME for unwanted files and directories

命令和别名

  • xdg-ninja

历史

项目历史与用法

xdg-ninja is a shell-based checker for users who want a cleaner home directory and better XDG Base Directory compliance. It scans for known dotfiles and directories in $HOME, then reports whether each one can be moved and how to do it.

项目历史

The project began in May 2022 with an initial shell implementation and an early import of supported-program data from the Arch Wiki XDG Base Directory page. The README still describes the configuration corpus as coming from the Arch Wiki, antidot, and user contributions.

The tool deliberately keeps the main checker simple: a POSIX-like shell script, jq, and find are enough to run the tests. Later work added a Haskell helper, xdgnj, for generating and editing the JSON program configurations, while the README emphasizes that the shell script remains the core checker.

采用历史

xdg-ninja grew with dotfiles culture and the recurring frustration that many command-line programs still create legacy ~/.name files even after the freedesktop.org XDG Base Directory Specification defined preferred locations for config, data, state, cache, and runtime files.

The README documents Nix and Homebrew usage, but also warns that because upstream does not cut regular releases, Homebrew users should install and upgrade from HEAD. That is an unusually transparent adoption note and explains why package-manager versions may lag behind the living configuration database.

使用方式

Users run xdg-ninja in their home environment. The script checks known paths, prints warnings for unwanted files or directories, and renders Markdown help explaining whether the item is movable and what setting or migration step can relocate it.

Contributors add JSON files under programs/. Each file names a program and the $HOME paths it creates, plus Markdown help for movable or unsupported cases. The XN_PROGRAMS_DIR environment variable can point the checker at an alternate configuration directory.

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

xdg-ninja is important to package nerds because it turns the messy social problem of XDG compliance into a testable, crowd-maintained catalog. It is half lint tool, half living index of which CLI programs respect modern Unix home-directory conventions.

It also exposes a subtle packaging issue: data freshness matters more than binary freshness. A stale packaged xdg-ninja can miss newly documented offenders even if the shell code itself still works.

时间线

  • 2021-05-08: XDG Base Directory Specification 0.8 publication date.
  • 2022-05-12: xdg-ninja initial commit and first implementation.
  • 2022-05-12: Early supported-program data imported from the Arch Wiki article.
  • 2022-06-06: v0.2.0.0 tag.
  • 2024-02-03: v0.2.0.2 tag for the xdgnj helper release line.

Related projects

  • XDG Base Directory Specification: defines the directory conventions xdg-ninja checks against.
  • Arch Wiki XDG Base Directory page: one of the configuration-data sources named by upstream.
  • antidot: another source of XDG migration knowledge credited by the README.
  • xdgnj: upstream helper for creating and previewing xdg-ninja program configuration files.

来源

  • Git history and tags: https://github.com/b3nj5m1n/xdg-ninja
  • README, b3nj5m1n/xdg-ninja: https://github.com/b3nj5m1n/xdg-ninja#readme
  • XDG Base Directory Specification: https://specifications.freedesktop.org/basedir-spec/latest/
  • xdg-ninja shell script: https://github.com/b3nj5m1n/xdg-ninja/blob/main/xdg-ninja.sh

安全态势

风险级别:绿色

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 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

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

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
./programs/

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

页面生成时间2026-07-25
管理器版本0.2.0.2
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/b3nj5m1n/xdg-ninja

安装元数据

软件包元数据

软件包键brew:xdg-ninja
版本0.2.0.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/xdg-ninja
主页https://github.com/b3nj5m1n/xdg-ninja
仓库https://github.com/b3nj5m1n/xdg-ninja
上游文档https://github.com/b3nj5m1n/xdg-ninja#readme
许可证MIT
源码归档https://github.com/b3nj5m1n/xdg-ninja/archive/refs/tags/v0.2.0.2.tar.gz
依赖glow
macOS 提供的库jq
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Nix95%

xdg-ninja

nix profile install nixpkgs#xdg-ninja
  • normalized package name match
  • 匹配方式:Xdg Ninja
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/xd/xdg-ninja/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

xdg-ninja 0.2.0.2-r0

Shell script which checks your home directory for unwanted files and directories

https://github.com/b3nj5m1n/xdg-ninja

sudo apk add xdg-ninja
  • License: MIT
  • Architecture: x86_64
  • Source Package: xdg-ninja
  • 1 依赖
  • normalized package name match
  • 匹配方式:Xdg Ninja
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: xdg-ninja from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

此页面由 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 configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment