Automic VaultAutomic Vault

brew

使用 Homebrew, apk, MacPorts, Nix, pacman, scoop 安装 websocat

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install websocat

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install websocat

MacPorts ports tree · net/websocat/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add websocat

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

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

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

Arch Linux pacman已验证 · 92%
sudo pacman -S websocat

Arch Linux sync databases · websocat · 来源: geo.mirror.pkgbuild.com

Windows

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

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

概览

软件包摘要

Command-line client for WebSockets

命令和别名

  • websocat

历史

项目历史与用法

websocat is a Rust command-line WebSocket client and relay tool created by Vitaly "Vi" Shukela. Its own documentation describes it as the WebSocket analogue of netcat, curl, or socat: a small CLI that connects standard input/output, TCP, Unix sockets, subprocesses, and WebSocket endpoints.

项目历史

The GitHub repository and crates.io package both date from November 2016, placing websocat in the wave of developer tools that treated RFC 6455 WebSockets as a normal Unix-stream target rather than only a browser API. The project grew around a compact idea: make `ws://` and `wss://` endpoints scriptable from a shell while still supporting more advanced socat-style addressing and overlays.

The reference manual documents three enduring modes: simple client mode, simple server mode, and an advanced mode that connects two address specifications. Later releases kept that model while adding a large address/overlay vocabulary, binary and text handling, subprocess bridging, proxying, TLS/WebSocket options, and server-side use cases.

采用历史

websocat became a common package-manager tool because it filled the same niche for WebSockets that `curl` fills for HTTP and `nc` fills for TCP: quick inspection, smoke testing, and shell automation. By July 2026, the GitHub repository had more than eight thousand stars, and the crates.io package metadata showed publication continuity from 2016 through the 1.14.x line.

Its README explicitly lists sibling tools such as wscat, websocketd, wstunnel, and wsd, which situates websocat in a small ecosystem of command-line WebSocket utilities. Compared with simpler clients, its package-nerd appeal is the socat-like address system that lets it act as a connector, relay, or miniature protocol adapter.

使用方式

Typical use starts with `websocat wss://example/path` to send terminal lines as WebSocket messages and print replies. The same binary can listen as a WebSocket server, forward between WebSocket and TCP or Unix sockets, or run an external program and connect that process to a WebSocket stream.

Because it is useful in pipelines, CI smoke tests, reverse-proxy debugging, and ad hoc protocol work, websocat is often installed alongside curl, netcat, socat, and jq on developer machines rather than deployed as an application dependency.

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

websocat matters to package-manager users because it turns WebSockets into a first-class shell transport. It is the boring, dependable diagnostic binary people reach for when a browser console, custom script, or full application client would be too much machinery.

时间线

  • 2016-11: GitHub repository and crates.io package created.
  • 2019: Public issues and examples show users applying websocat to JSON requests, recording output, and WebSocket testing workflows.
  • 2024-11: v1.14.0 release described as the 1.x line nearing sunset while Websocat4 previews began.
  • 2025-12: v1.14.1 maintenance release and v4.0.0 alpha releases published.

Related projects

  • The README points users toward wstunnel, wscat, websocketd, and wsd as related WebSocket command-line tools. websocat is closest in spirit to socat and netcat because it focuses on connecting endpoints rather than embedding a WebSocket library in an application.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:client

安装行为

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

建议审查

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

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

页面生成时间2026-07-25
管理器版本1.14.1
管理器更新时间
本地数据OK
上游当前
检测到的最新版本v1.14.1

https://github.com/vi/websocat

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键brew:websocat
版本1.14.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/websocat
主页https://github.com/vi/websocat
仓库https://github.com/vi/websocat
上游文档https://github.com/vi/websocat#readme
许可证MIT
源码归档https://github.com/vi/websocat/archive/refs/tags/v1.14.1.tar.gz
构建依赖pkgconf, rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Nix95%

websocat

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

websocat 1.14.1-r0

Netcat, curl and socat for WebSockets

https://github.com/vi/websocat

sudo apk add websocat
  • License: MIT
  • Architecture: x86_64
  • Source Package: websocat
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Websocat
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: websocat from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
pacman95%

websocat 1.14.1-1

Command-line client for web sockets, like netcat/curl/socat for ws://

https://github.com/vi/websocat/

sudo pacman -S websocat
  • License: MIT
  • Architecture: x86_64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Websocat
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: websocat from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

websocat

sudo port install websocat
  • normalized package name match
  • 匹配方式:Websocat
MacPorts ports tree · api.github.com · MacPorts ports tree: net/websocat/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/websocat

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

来源线索

由仓库数据生成

此页面由 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