JavaScript PubSub in 163 Bytes
pubsub in <100 bytes. Contribute to hassanshaikley/pico-pubsub development by creating an account on GitHub.
JavaScript PubSub in 163 Bytes launched on March 31, 2025 with 104 votes, #415 of 7,215 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 1 year on.
In plain words
JavaScript PubSub in 163 Bytes is a lightweight publish-subscribe messaging library for JavaScript developers. It enables decoupled communication between application components through a simple event-based system. The tool is designed for developers who need basic pub-sub functionality without heavyweight dependencies. What stands out is its extremely small footprint at just 163 bytes, making it ideal for projects where code size matters.
written from the facts on this page · September 2026
From the sources
The smallest PubSub library possible. Zero Dependencies. 99 bytes. I wrote this article a while back. But I realized...why not just publish the code? Built with JS13K games in mind. Such as cred which is unfortunately in need of some weight loss soon, as it is almost 25KB now. If you have any ideas that may trim off even one single byte please share it. Create an issue! I don't mind. let t = { } ; sub = ( e , c ) => ( ( t [ e ] ??= new Set ( ) ) . add ( c ) , ( _ ) => t [ e ] . delete ( c ) ) ; pub = ( e , d ) => t [ e ] ?. forEach ( ( f ) => f ( d ) ) ; Usage npm install pico-pubsub const unsub = sub ( 'jump' , function ( anything ) { console . log ( "someone jumped - " + anything ) } ) ;…from github.com
Does a similar job
all alternatives →- OJOffline JavaScript PubSub between browser tabs2025 · simon-frey.com · ▲83
1 KB JavaScript library for building front end apps2017 · github.com · ▲2421kB-ish JavaScript framework for building hypertext applications - hyperapp/hyperapp
1kb JavaScript library for building front end applications2017 · github.com · ▲1871kB-ish JavaScript framework for building hypertext applications - hyperapp/hyperapp
1 KB JavaScript library for building applications2017 · github.com · ▲1161kB-ish JavaScript framework for building hypertext applications - hyperapp/hyperapp
1 KB JavaScript framework for building front-end applications2017 · github.com · ▲2161kB-ish JavaScript framework for building hypertext applications - hyperapp/hyperapp
Iso20022.js – Create payments in 3 lines of code2024 · iso20022js.com · ▲291iso20022.js is an open source library to create and manage ISO20022 payment messages
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▲340Hi 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 · 27d ago · corespeed.io
Source: Show HN post ↗
Launched alongside, March 2025
the whole month →
Mimic Human Research & Save Findings in AI Knowledge Base
AI · 2025 · sider.ai




