A CLI tool for mocking WebSocket endpoints using a JSON or JS file. Version 0.1.3, low release cadence (last update years ago). Inspired by json-server, it serves data based on URL path traversing the provided object. Supports live data manipulation via stdin (resend, merge, deep-merge, append). No active development or maintenance. Ideal for quick prototyping but lacks modern features (no ESM, no TypeScript types, no WebSocket library flexibility).
npm install ws-server-ftwNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install the package, create a JSON file, start the mock WebSocket server, and connect a client to receive mocked data.
Install ws-server-ftw in a clean project or use npm ls to check ws version.
Pin commander to 2.x in your project if needed.
Use child_process.spawn or npx to invoke the CLI.
npm install ws
npm install commander@2.11.0
Use npx ws-server or install globally: npm install -g ws-server-ftw