macOS
brew install websocketdlocal Homebrew formula metadata
sudo port install websocketdMacPorts ports tree · net/websocketd/Portfile · 来源: api.github.com
安装
brew install websocketdlocal Homebrew formula metadata
sudo port install websocketdMacPorts ports tree · net/websocketd/Portfile · 来源: api.github.com
sudo apk add websocketdAlpine Linux edge package indexes · websocketd · 来源: dl-cdn.alpinelinux.org
sudo apt install websocketdDebian stable package indexes · websocketd · 来源: deb.debian.org
nix profile install nixpkgs#websocketdnixpkgs package indexes · pkgs/by-name/we/websocketd/package.nix · 来源: api.github.com
概览
WebSockets the Unix way
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
websocketd | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/joewalnes/websocketd
安装元数据
| 软件包键 | 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 |
| Pulse | updated |
| 构建依赖 | 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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | websocketd |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 websocketdwebsocketd
nix profile install nixpkgs#websocketdwebsocketd 0.4.1-1build1
Turn any program that uses STDIN/STDOUT into a WebSocket server
https://github.com/joewalnes/websocketd
sudo apt install websocketdwebsocketd 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 websocketdwebsocketd
sudo port install websocketd来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.