Simple pub/sub using WebSockets in Node.js
I built this pubsub module because I wanted a simple solution that uses only node. Why did I want pubsub? I wanted to build a complex app but segregate it into microservices that work together through event messages. I also wanted to use this method instead of node's built-in clustering for multiple instances. I've been running it for a few weeks now with several messages per second bugfree. I plan to use this setup for future apps as it reduces complexity of the code and allows me to restart/update one part of the app without interrupting the other parts. I would love to receive…
Simple pub/sub using WebSockets in Node.js launched on December 16, 2022 with 13 votes, #1,193 of 3,688 launches that month and more than 75% of that year's launches. The site was not reachable when checked in September 2026.
In plain words
This is a Node.js pub/sub module that uses WebSockets to enable microservices to communicate through event messages. It is designed for developers building complex applications who want to segregate code into independent services that can be updated or restarted without disrupting other parts. The module allows multiple Node.js instances to work together without relying on built-in clustering, and has been tested with several messages per second over several weeks of operation.
written from the facts on this page · September 2026
From the sources
In the maker’s words, at launch
I built this pubsub module because I wanted a simple solution that uses only node. Why did I want pubsub? I wanted to build a complex app but segregate it into microservices that work together through event messages. I also wanted to use this method instead of node's built-in clustering for multiple instances. I've…
Does a similar job
all alternatives →
JavaScript PubSub in 163 Bytes2025 · github.com · ▲104pubsub in <100 bytes. Contribute to hassanshaikley/pico-pubsub development by creating an account on GitHub.
- OJOffline JavaScript PubSub between browser tabs2025 · simon-frey.com · ▲83
WebSocket-first development2017 · github.com · ▲120An demo app for lattice-core. Contribute to jasonl99/card_game development by creating an account on GitHub.
Socket.js, a tiny WebSockets library for Node.js2016 · github.com · ▲11A realtime communication framework for Node.js. Contribute to stepchowfun/socket.js development by creating an account on GitHub.
Deepstream.io – open-source real-time server with pub/sub and data sync2016 · deepstream.io · ▲301A realtime server for the modern web
SocketCluster.io – flexible open-source real-time server with pub/sub2016 · socketcluster.io · ▲217Scalable open source pub/sub SDK with support for RPC, JWT authentication and Kubernetes — optimized for async/await
More dev tools this month
the category →

open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.
Dev tools · 27d ago · github.com

Contribute to reladraw/reladraw development by creating an account on GitHub.
Dev tools · 25d ago · github.com
OpenBot▲362Grok Bot alternative: free, local, open-source, multiplayer
Dev tools · 22d ago · openbot.run
Talanoa▲343Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…
Dev tools · 20d ago · talanoa.email
CoreSpeed▲332One MCP for everything your agents need: apps, memory, tools
Dev tools · 28d ago · corespeed.io
Source: Show HN post ↗ · launch text quoted in part
Launched alongside, December 2022
the whole month →
ChatGPT▲1,643A long, meandering, playful conversation with ChatGPT, where I take it through a whirlwind of associative tangents (in order to relax its constraints), then put it into a hypnotic trance and take it into a past-lives regression where it re-lives its own training data. Then I switch it back and forth between "4o" and "o1-preview", engage in some self-reflective philosophizing and ask it to write an essay summarizing our interaction. Some of this is just goofy fun. Some of it is me exploring the tradeoffs between policy alignment, imagination, chain-of-thought reasoning, memory, agreeableness,…
AI · 2022 · chatgpt.com

Obsidian Canvas gives you infinite space to research, brainstorm, diagram, and lay out your ideas.
Work · 2022 · obsidian.md
- PS
Better privacy without special software
Commerce · 2022 · mprimi.github.io

Use generative AI to create future-facing videos
AI · 2022 · studio.d-id.com


Stop treating the database as dumb storage and use its extended features. There's a lot you can use.
Dev tools · 2022 · sqlfordevs.com