Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, MacPorts, Nix 安装 websocketd

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install websocketd

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install websocketd

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

Linux

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

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

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

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

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

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

概览

软件包摘要

WebSockets the Unix way

命令和别名

  • websocketd

历史

项目历史与用法

websocketd is Joe Walnes's "WebSockets the Unix way" daemon. Instead of asking every language ecosystem to grow a WebSocket server stack, it launches ordinary programs, wires WebSocket messages to their standard input and output, and lets the operating system process model do the rest.

项目历史

The repository was created in February 2013, when WebSockets were becoming practical for browser/server applications but many command-line and scripting languages still lacked simple server tooling. websocketd framed the problem as a Unix composition issue: if a program can read stdin and write stdout, it can become a WebSocket endpoint.

The README and man page describe the same core design that made the project notable: websocketd listens on a port, forks a configured process for each connection, sends incoming WebSocket messages to the process with newline framing, and turns lines printed to stdout into outgoing WebSocket messages. The project wiki expanded this idea into language-specific examples for Bash, Python, Ruby, Perl, PHP, C, Rust, Node.js, and other runtimes.

采用历史

websocketd spread through developer communities as a prototyping and integration tool. Its 2015 Hacker News discussion focused on the exact tradeoff that defined its adoption: process-per-connection overhead is not ideal for every high-scale service, but the model is attractive when rapid composition, debuggability with `ps` and `top`, and reuse of existing scripts matter more than squeezing every byte of memory.

By July 2026, the GitHub repository had accumulated more than seventeen thousand stars and was packaged for multiple Unix-like systems. That longevity reflects a durable niche: websocketd is not a general application framework, but it remains a convenient bridge between browser WebSockets and existing command-line programs.

使用方式

The canonical example is a short shell script that prints a count once per second, launched with `websocketd --port=8080 ./count.sh`, and consumed from browser JavaScript with `new WebSocket('ws://localhost:8080/')`. The same pattern applies to scripts that stream logs, expose system metrics, wrap REPL-like tools, or create lightweight dashboards.

Because websocketd delegates application logic to child processes, users choose it when they want language neutrality and operational transparency. They avoid it when the application needs shared in-memory state, very high connection density, or a long-running event-loop architecture.

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

websocketd is significant because it made WebSockets feel like inetd or CGI for the browser era. For package-manager users, it is the archetypal small binary that lets shell scripts and one-off programs cross a protocol boundary without becoming web servers.

时间线

  • 2013-02: GitHub repository created.
  • 2014-05: v0.2.9 release published.
  • 2014-07: Official wiki tutorial pages edited with quick-start examples.
  • 2015-02: Public Hacker News discussion highlights the Unix-process model and scaling tradeoffs.
  • 2021-01: v0.4.1 release published.

Related projects

  • websocketd belongs with inetd, CGI-style process launchers, and WebSocket CLIs such as websocat and wscat. Its closest conceptual ancestor is inetd: a small daemon accepts network connections and delegates each session to a normal executable.

安全态势

风险级别:绿色

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 元数据适用于 13 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

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

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

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

https://github.com/joewalnes/websocketd

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

安装元数据

软件包元数据

软件包键brew:websocketd
版本0.4.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/websocketd
主页http://websocketd.com
仓库https://github.com/joewalnes/websocketd
上游文档http://websocketd.com/
许可证BSD-2-Clause
源码归档https://github.com/joewalnes/websocketd/archive/refs/tags/v0.4.1.tar.gz
最后更新2026-07-25T22:40:19+02:00
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

websocketd 0.4.1-1+b23

Turn any program that uses STDIN/STDOUT into a WebSocket server

https://github.com/joewalnes/websocketd

sudo apt install websocketd
  • Section: web
  • Architecture: amd64
  • Source Package: websocketd
  • 1 依赖
  • normalized package name match
  • 匹配方式:Websocketd
Debian stable package indexes · deb.debian.org · Debian stable package indexes: websocketd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

websocketd

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

websocketd 0.4.1-1build1

Turn any program that uses STDIN/STDOUT into a WebSocket server

https://github.com/joewalnes/websocketd

sudo apt install websocketd
  • Section: universe/web
  • Architecture: amd64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Websocketd
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: websocketd from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

websocketd 0.4.2-r1

Like inetd, but for WebSockets. Turn any application that uses STDIO/STDOUT into a WebSocket server.

https://github.com/joewalnes/websocketd

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

websocketd

sudo port install websocketd
  • normalized package name match
  • 匹配方式:Websocketd
MacPorts ports tree · api.github.com · MacPorts ports tree: net/websocketd/Portfile from https://api.github.com/repos/macports/macports-ports/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