xfetch-cli/xfetch
حول
Fast, cross-platform system information fetch written in Rust. Clean defaults, deep customization, plugin-ready.
أدوات التطويرما يمكنك فعله
- Cross-platform: Works on Linux, Windows, and macOS.
- Customizable: Configure modules, layouts, icons and colors via config.jsonc.
- Fast: Written in Rust for performance.
- Animated logos: Animate the ASCII logo with plugins (e.g. animate-logo).
النمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- +١
- خلال 15 يومًا
- +١
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلMenu
Previews
More...
Quick Install
Linux / macOS (no sudo required):
curl -fsSL https://raw.githubusercontent.com/xfetch-cli/xfetch/main/install.sh | bash
The installer asks automatically for anything missing (Rust, C compiler, git, curl) — sudo is only used to install those dependencies, after your confirmation. For non-interactive runs (CI):
curl -fsSL https://raw.githubusercontent.com/xfetch-cli/xfetch/main/install.sh | bash -s -- --install-deps
Windows (PowerShell):
# Prebuilt binary (no Rust needed)
irm https://raw.githubusercontent.com/xfetch-cli/xfetch/main/install-prebuilt.ps1 | iex
# From source
irm https://raw.githubusercontent.com/xfetch-cli/xfetch/main/install.ps1 | iex
Windows (winget):
winget install xfetch
Cargo (crates.io):
cargo install xfetch-cli
macOS (Homebrew):
brew tap xfetch-cli/tap && brew install xfetch
Arch Linux (AUR, via yay):
yay -S xfetch-core-bin # precompiled binary
yay -S xfetch-git # build from source
For detailed installation steps — prerequisites, manual builds, package managers, and uninstallation — see the Installation Guide.
Features
- Cross-platform: Works on Linux, Windows, and macOS.
- Customizable: Configure modules, layouts, icons and colors via
config.jsonc. - Fast: Written in Rust for performance.
- Animated logos: Animate the ASCII logo with plugins (e.g.
animate-logo). - Effects: Installable intro animations that reveal the info with style (e.g. a "decrypt" effect) — opt-in via
"effects"in the config. - Daemon mode: Pin an animated fetch at the top of the terminal and keep using the shell below.
- Live stats daemon: Turn the pinned fetch into a live panel — re-probes cpu/memory/battery/... every few seconds (
daemon_live), with hot reload of the config on the fly (daemon_live_reload). - Themes, plugins, extensions & commands: Switch visual themes, extend info with plugins, transform the config with extensions, and add CLI commands.
- WebAssembly guests: Plugins, effects and extensions can be sandboxed
.wasmartifacts written in Rust, Python, Go, C and more, with manifest-based capabilities. See docs/WASM.md. - Share mode:
xfetch --shareprints a plain report without logo, icons or colors and hides sensitive modules by default; add more withshare_hidein the config. - Interactive TUI:
xfetch --tuiedits the config with a live preview, addon options, module groups and the JSONC file preserved on save.
What's new in 1.0.5
- Interactive TUI:
xfetch --tuinow edits the logo,custom_x, palette and runtime fields, module groups/order, plugin/effect/extension options and installed commands. It creates a missing JSONC config on save and preserves comments and unknown fields. - Addon admin API: the plugin, effect, command and extension APIs gained
describe, so the TUI can show and edit addon options and extension resources. All four API crates are published as0.3.2. - Share mode:
xfetch --shareprints a shareable, privacy-filtered report with optionalshare_hiderules. - Security hardening: restore path confinement, validated theme keys, SHA-256-required remote wasm downloads and cosign verification for updates.
- Reliability: atomic cache writes with limits, validated daemon PID files, structural JSONC edits and clearer invalid-config warnings.
Configuration
xfetch looks for a configuration file at:
- Linux:
~/.config/xfetch/config.jsonc - Windows:
%APPDATA%\xfetch\config.jsonc - macOS:
~/Library/Application Support/xfetch/config.jsonc
Additional curated presets and example configs are maintained in
xfetch-cli/configs.
Example Config (config.jsonc)
// Configuration for xfetch
{
// Path to custom ASCII art file (optional)
"ascii": null,
// Modules to display
"modules": [
"os",
"kernel",
"wm",
"packages",
"shell",
"cpu",
"gpu",
"memory",
"disk",
"battery",
"uptime",
"terminal"
],
// Enable colors
"show_colors": true
}
Usage
Simply run xfetch in your terminal.
xfetch # render the fetch
xfetch --json # machine-readable fetch
xfetch --share # plain report with sensitive modules hidden
xfetch --share --json # filtered machine-readable report
xfetch --get os,cpu,memory # print specific values
xfetch --modules os,kernel,cpu # override the rendered modules
xfetch --layout right # runtime layout override
xfetch --theme dracula # runtime theme override
xfetch --format 'os={{os}}' # inline output template
xfetch modules # list module keys
xfetch doctor # diagnose config, terminal and addons
xfetch doctor --fix # apply safe fixes
xfetch doctor --bench --image # probe timings and logo preview
xfetch paths # resolved config/addon/cache paths
xfetch env # platform, environment and settings
xfetch build-info # build profile and enabled features
xfetch config validate # validate the config file
xfetch config edit # edit and validate the config
xfetch --backup # back up the current config
xfetch --restore # restore the latest backup
xfetch command install github # install a command addon
xfetch run github -- owner/repo # run it
xfetch theme search dark # search the remote theme registry
xfetch logo preview arch # preview a catalog logo
xfetch schema fetch # JSON Schema for machine output
xfetch --log-json --log-level debug # structured logs on stderr
xfetch completions zsh # shell completions
xfetch man # man page
xfetch --daemon # pin an animated fetch at the top (daemon mode)
xfetch --daemon-stop # stop the daemon
xfetch --no-daemon-live # disable the live stats daemon (config: "daemon_live": true)
xfetch --daemon-live-stop # stop the live stats daemon
xfetch --daemon-live-reload # hot reload the live stats daemon ("daemon_live_reload": true)
xfetch --config path/to/config.jsonc
xfetch --gen-config # generate a starter config
xfetch --clean-cache # clear the module cache
xfetch plugin install <name> # install a plugin
xfetch plugin install --all # install every catalog plugin
xfetch plugin update --all # update every installed plugin
xfetch plugin search <query> # search the plugin catalog
xfetch plugin available # list the plugin catalog
xfetch extension install <name> # install an extension
xfetch extension search <query> # search the extension catalog
xfetch theme list # list themes
xfetch effects install <name> # install an intro effect (e.g. decrypt)
xfetch effects search <query> # search the effect catalog
xfetch update --check # check for a newer release
xfetch update # update to the latest release
Full documentation: see the docs below.
Related Documents
Contribute to the project, report issues, or connect with the developer using the links around
License
The xfetch core and first-party addons are licensed under GPL-3.0-only. Third-party addons may use their own licenses under the addon exception included in the LICENSE; a GPL-3.0-only compatible license is recommended. Dependency licenses are listed in docs/ATTRIBUTIONS.md.
Related Repos
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…