Bridge stdio processes to WebSocket connections. Current version is 0.2.0, with an active development cadence. It allows spawning a child process and piping its stdin/stdout to WebSocket clients, supporting line-based or raw framing. Key differentiators include built-in framing modes (line for NDJSON, raw with Content-Length stripping) and zero-config npx usage. Ideal for exposing CLI tools or AI agent protocols (e.g., Gemini CLI with ACP) over WebSocket without manual socket programming.
npm install stdio-to-wsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a WebSocket server that spawns a child process and bridges its stdio to connected clients using line framing.
Use import syntax or migrate project to ESM. For Node.js <18, use an older version or a different tool.
Use raw framing for binary or non-line-oriented output, or configure the child process to flush lines (e.g., stdio: 'pipe' in Node child_process).
Use import('stdio-to-ws') dynamic import or convert file to ESM.Provide the full path to the command or ensure it's available in the environment where the server runs.
Handle the 'close' event on the server and optionally restart the process using the 'command' option.
No dependency data recorded yet.