🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@peerbit/pubsub

Package Overview
Dependencies
Maintainers
1
Versions
410
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@peerbit/pubsub

Direct streaming for libp2p

Source
npmnpm
Version
5.2.8
Version published
Weekly downloads
552
60.47%
Maintainers
1
Weekly downloads
 
Created
Source

PubSub Transport

This package contains two related building blocks that both run on top of @peerbit/stream:

TopicControlPlane (/peerbit/topic-control-plane/1.0.0)

A DirectStream-based topic membership and forwarding layer.

This is useful for small to medium overlays and targeted messaging (explicit receiver lists) where you can tolerate subscription gossip and do not need the strict fanout economics of a tree.

FanoutTree (/peerbit/fanout-tree/0.5.0)

A scalable fanout tree for 1 writer to many subscribers (and tree-local unicast using route tokens).

This is the intended mechanism for very large audiences where you must cap per-node upload and avoid gossip-style explosion.

FanoutChannel is a small convenience wrapper around FanoutTree for channel-scoped usage.

TopicRootControlPlane

A small helper to resolve a topic root from:

  • An explicit mapping (topic -> root)
  • A set of default candidates (deterministic choice per topic)
  • Optional trackers (if configured by the application)

Keywords

peerbit

FAQs

Package last updated on 03 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts