{"id":47231,"library":"cb-hyperion","title":"cb-hyperion","description":"Simple WebSocket server with custom publish/subscribe and point-to-point RPC protocol. Version 1.11.1, stable but low-activity. Offers built-in broadcast and method registration. Minimal dependencies, runs on io.js >=1.4.0. Differentiated by its simple PubSub and RPC patterns compared to raw WebSocket or Socket.IO.","status":"active","version":"1.11.1","language":"javascript","source_language":"en","source_url":"https://github.com/creative-berserkers/hyperion","tags":["javascript","websocket","broadcast","server"],"install":[{"cmd":"npm install cb-hyperion","lang":"bash","label":"npm"},{"cmd":"yarn add cb-hyperion","lang":"bash","label":"yarn"},{"cmd":"pnpm add cb-hyperion","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The package uses CommonJS, but if using ESM, named import works.","wrong":"const Server = require('cb-hyperion').Server","symbol":"Server","correct":"import { Server } from 'cb-hyperion'"},{"note":"The package does not have a default export; use require or named import.","wrong":"import hyperion from 'cb-hyperion'","symbol":"hyperion (default)","correct":"const hyperion = require('cb-hyperion')"},{"note":"Capitalization matters: 'Server' not 'server'.","wrong":"const Server = require('cb-hyperion').server","symbol":"Server (require)","correct":"const { Server } = require('cb-hyperion')"}],"quickstart":{"code":"const { Server } = require('cb-hyperion');\n\nconst server = new Server(8080);\nconst allBroadcast = server.registerBroadcast('all');\n\nserver.registerMethod('join', function(ws){\n    allBroadcast.addTarget(ws);\n    console.log('joined all');\n});\n\nserver.registerMethod('send', function(ws, msg){\n    allBroadcast.send(msg);\n    console.log('sending to all:'+msg);\n});\n\nserver.on('connection', function(ws) {\n    console.log('client connected');\n});\n\nconsole.log('Server running on port 8080');","lang":"javascript","description":"Basic WebSocket server with broadcast and method registration using cb-hyperion."},"warnings":[{"fix":"Consider migrating to ws or socket.io for modern needs.","message":"The 'cb-hyperion' package appears unmaintained; no updates since 2016.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Use an older Node.js version or switch to a different package.","message":"The package only works with io.js >=1.4.0, not modern Node.js.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use a reverse proxy or a package like ws for secure connections.","message":"No TLS/SSL support; only plain WebSocket.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'1.11.1':18 '1.4.0':37 'activ':23 'broadcast':28,54 'built':26 'built-in':25 'cb':2 'cb-hyperion':1 'compar':46 'custom':8 'depend':33 'differenti':38 'hyperion':3 'io.js':36 'javascript':52 'low':22 'low-act':21 'method':30 'minim':32 'offer':24 'pattern':45 'point':12,14 'point-to-point':11 'protocol':16 'publish/subscribe':9 'pubsub':42 'raw':48 'registr':31 'rpc':15,44 'run':34 'server':6,55 'simpl':4,41 'socket.io':51 'stabl':19 'version':17 'websocket':5,49,53","created_at":"2026-06-07T16:50:28.307452+00:00","updated_at":"2026-06-07T16:50:28.307452+00:00","problems":[{"fix":"Run 'npm install cb-hyperion' in your project directory.","cause":"Package not installed.","error":"Error: Cannot find module 'cb-hyperion'"},{"fix":"Use 'const { Server } = require('cb-hyperion');'","cause":"Incorrect import; using default import instead of named.","error":"TypeError: Server is not a constructor"},{"fix":"Ensure you are running in an environment with WebSocket support (Node.js with ws polyfill or browser).","cause":"Missing WebSocket implementation; cb-hyperion provides its own but expects a global.","error":"ReferenceError: WebSocket is not defined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/creative-berserkers/hyperion","github":"https://github.com/creative-berserkers/hyperion","docs":null,"changelog":null,"pypi":null,"npm":"cb-hyperion","openapi_spec":null,"status_page":null,"smithery":null,"categories":["messaging"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}