A lightweight Node.js web server and WebSocket framework with built-in WebSocket client and cluster support. Version 3.2.2 is the latest stable release, with no clear release cadence. It provides a simple API for creating HTTP servers and WebSocket endpoints, and includes a Dart/Flutter client library via wssnet_ghost3a. Compared to alternatives like Socket.IO, it is more minimal and does not rely on external dependencies, but lacks features like automatic reconnection and fallback transports. Documentation is primarily in Chinese with source code comments.
npm install node-ghost3aNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a simple HTTP server on port 3000 that responds with 'Hello World' on GET /hello.
Refer to the source code or community translations for usage details.
For Node.js WebSocket client, use an established library like 'ws' instead.
Migrate by comparing API usage in source code examples or open issues on GitHub.
Consider using actively maintained alternatives like Express.js or Fastify.
Run 'npm install node-ghost3a' in your project directory.
Use 'import { GhostServer } from 'node-ghost3a'' or 'const { GhostServer } = require('node-ghost3a')'.Install 'ws' library: 'npm install ws' and use 'const WebSocket = require('ws')'.