nowfound

Dev tools · March 31, 2025

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.

Visit github.com ↗Alternativestop 6% of March 2025

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 →

More dev tools this month

the category →
  • /dev/null▲472

    a social network for devs

    Dev tools · 2d ago · dev-null.sh

  • 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▲362

    Grok Bot alternative: free, local, open-source, multiplayer

    Dev tools · 22d ago · openbot.run

  • Talanoa▲340

    Hi 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▲332

    One 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

  • Turn your ideas into products that sell

    AI · 2025 · atoms.dev

  • Aha▲1,152

    The world's first AI influencer marketing team

    AI · 2025 · ahacreator.com

  • Fluently▲976

    Start speaking English as well as your native language

    AI · 2025 · getfluently.app

  • Conversational AI surveys, interviews, user tests, polls

    AI · 2025 · theysaid.io

  • Record your screen, share instantly, look like a PRO

    Growth · 2025 · supercut.ai