# websocketd を Homebrew, apk, apt, MacPorts, Nix でインストール

websocketd のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:websocketd
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install websocketd
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install websocketd
```

  証拠: MacPorts ports tree: net/websocketd/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add websocketd
```

  証拠: Alpine Linux edge package indexes: websocketd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install websocketd
```

  証拠: Debian stable package indexes: websocketd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#websocketd
```

  証拠: nixpkgs package indexes: pkgs/by-name/we/websocketd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:websocketd
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/websocketd>
- **バージョン:** 0.4.1
- **ソース概要:** WebSockets the Unix way
- **ホームページ:** <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
- **生成日時:** 2026-07-26T07:20:29+00:00

## 実行可能ファイル

- websocketd (cli)
- websocketd (エイリアス)

## ビルド依存関係

- go

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## バージョンと鮮度

- ページ生成日: 2026-07-26
- マネージャ版: 0.4.1
- マネージャ更新日: 2026-07-25
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/joewalnes/websocketd
- 検出された最新: v0.4.1 (最新)
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://api.github.com/repos/joewalnes/websocketd>
- <https://api.github.com/repos/joewalnes/websocketd/releases?per_page=10>
- <https://github.com/joewalnes/websocketd>
- <https://github.com/joewalnes/websocketd/blob/master/release/websocketd.man>
- <https://github.com/joewalnes/websocketd/wiki/Ten-second-tutorial>
- <https://news.ycombinator.com/item?id=9050970>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

- **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:** stable

## 他のパッケージマネージャ記録

- Debian apt - websocketd - 0.4.1-1+b23: normalized package name match | Debian stable package indexes: websocketd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Turn any program that uses STDIN/STDOUT into a WebSocket server | https://github.com/joewalnes/websocketd
- Nix - websocketd: normalized package name match | nixpkgs package indexes: pkgs/by-name/we/websocketd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - websocketd - 0.4.1-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: websocketd from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Turn any program that uses STDIN/STDOUT into a WebSocket server | https://github.com/joewalnes/websocketd
- apk - websocketd - 0.4.2-r1: normalized package name match | Alpine Linux edge package indexes: websocketd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Like inetd, but for WebSockets. Turn any application that uses STDIO/STDOUT into a WebSocket server. | https://github.com/joewalnes/websocketd
- MacPorts - websocketd: normalized package name match | MacPorts ports tree: net/websocketd/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 関連リンク

- [Terminal utility packages](https://www.automicvault.com/ja/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/ja/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://www.automicvault.com/ja/pkg/web-dev-tools/) - Matched web development metadata.
- [Homebrew utility packages](https://www.automicvault.com/ja/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [go](https://www.automicvault.com/ja/pkg/brew/go/) - Build dependency declared by Homebrew.
- [ttyd](https://www.automicvault.com/ja/pkg/brew/ttyd/) - Shares av.db curated category or tags: cli, networking, server, websocket.
- [vsftpd](https://www.automicvault.com/ja/pkg/brew/vsftpd/) - Shares av.db curated category or tags: cli, networking, server, unix.
- [bind](https://www.automicvault.com/ja/pkg/brew/bind/) - Shares av.db curated category or tags: cli, networking, server.
- [bitchx](https://www.automicvault.com/ja/pkg/brew/bitchx/) - Shares av.db curated category or tags: cli, networking, unix.
- [center-im](https://www.automicvault.com/ja/pkg/brew/center-im/) - Shares av.db curated category or tags: cli, networking, unix.
- [coredns](https://www.automicvault.com/ja/pkg/brew/coredns/) - Shares av.db curated category or tags: cli, networking, server.
- [coturn](https://www.automicvault.com/ja/pkg/brew/coturn/) - Shares av.db curated category or tags: cli, networking, server.
- [dante](https://www.automicvault.com/ja/pkg/brew/dante/) - Shares av.db curated category or tags: cli, networking, server.
- [mongoose](https://www.automicvault.com/ja/pkg/brew/mongoose/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, networking, server, websocket.
- [websocat](https://www.automicvault.com/ja/pkg/brew/websocat/) - Local package facts share a topical domain. Shared terms: cli, networking, websocket, websockets.

## Combined YAML source

View the package source record on GitHub. [combined/websocketd.yml](https://github.com/automic-vault/db/blob/main/combined/websocketd.yml)


## ソース

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
