10 KiB
10 KiB
network
Mesh networking, WebSocket transports, bootstrap, and discovery protocols.
Packages in network
44 packages.
| Package | Description |
|---|---|
@suaveplan/network |
Core network interfaces and runtime for the mesh system. |
@suaveplan/network-bootstrap |
Pluggable peer-discovery chain, persistent peer cache, and NetworkPlugin wrapper for the @suaveplan/network mesh. Provides the canonical way for a freshly… |
@suaveplan/network-discovery-crdt |
Browser-tier DiscoveryStrategy for @suaveplan/network-bootstrap. Wraps an awareness-document CRDT (Yjs or Automerge — chosen at construction) and produce… |
@suaveplan/network-discovery-gundb |
Browser-tier DiscoveryStrategy for @suaveplan/network-bootstrap chains. Wraps a GunDB instance — gossip-over- WebSocket decentralised graph database — and… |
@suaveplan/network-discovery-hybrid |
Browser-tier multi-strategy DiscoveryStrategy orchestrator: composes any subset of the five Wave-2 sibling strategies (peerjs / crdt / trystero / webtorrent / gundb) into a single HybridDiscoveryManager with priority-based peer selection, per-strategy health tracking, automatic fallback, de-duplicated peer set with PeerSource provenance, and unified lifecycle. Implements the network-bootstrap DiscoveryStrategy contract so it can itself be chained. |
@suaveplan/network-discovery-peerjs |
Browser-tier DiscoveryStrategy for @suaveplan/network-bootstrap that wraps a PeerJS signalling-server client + WebRTC DataConnections into a deduped peer… |
@suaveplan/network-discovery-trystero |
Browser-tier DiscoveryStrategy for @suaveplan/network-bootstrap. Serverless WebRTC peer discovery via Trystero, with four interchangeable transports — BitT… |
@suaveplan/network-discovery-webtorrent |
Browser-tier DiscoveryStrategy for @suaveplan/network-bootstrap chains. Wraps a p2pt instance — WebTorrent-tracker-driven WebRTC peer discovery — and exp… |
@suaveplan/network-gundb-server |
Server-tier GunDB relay daemon. Hosts a Gun relay peer plus standard /health / /ready / /live probes on a single Node http.Server. Browser-tier clients… |
@suaveplan/network-libp2p-server |
Server-tier libp2p relay daemon paired with @suaveplan/network-transport-libp2p. Hosts a libp2p node configured as a bootstrap + circuit-relay-v2 server alon… |
@suaveplan/network-plugin-assignment |
Mesh auto-assignment and load balancing: live MeshCapacityTracker, weighted-multi-criteria AssignmentEngine, imbalance-detecting MeshBalancer planner, an… |
@suaveplan/network-plugin-audit-mesh |
Tamper-evident, cryptographically signed, append-only audit log chain for the Suaveplan mesh. SignedLog produces hash-chained LogEntry records keyed by mon… |
@suaveplan/network-plugin-auth |
Mesh membership authentication and cross-mesh relay authorization. Bridges @suaveplan/auth into the mesh: peer join verification, capability-tier-bound token… |
@suaveplan/network-plugin-circuit-breaker |
Mesh-level circuit breakers: per-path state machine (CLOSED → OPEN → HALF_OPEN), registry, half-open probe loop, and relay middleware integration. Fast-fails… |
@suaveplan/network-plugin-content-delivery |
Mesh-as-CDN core for the Suaveplan network. ChunkIndex maintains a distributed holder map keyed by chunk hash with gossip-style merge over `ChunkAdvertisemen… |
@suaveplan/network-plugin-crypto-messages |
Cryptographic integrity layer for the Suaveplan mesh. Ed25519-backed MessageSigner (sign on send, verify against the registry on receive); `SessionTokenAutho… |
@suaveplan/network-plugin-devtools |
Developer-tools plugin for the Suaveplan mesh. Bundles four subsystems behind a single NetworkPlugin lifecycle so engineers can inspect, visualise, and profi… |
@suaveplan/network-plugin-failover |
Mesh failover plugin: per-peer heartbeat manager, alive→suspect→dead→recovering health monitor, debounced promoter that triggers emergency elections, and a coo… |
@suaveplan/network-plugin-governance |
Election engine for the Suaveplan mesh: candidate scoring, reputation tracking, voting, and host transitions. |
@suaveplan/network-plugin-intra-relay |
Intra-mesh peer-to-peer relay for the Suaveplan network. When direct WebRTC fails (symmetric NAT, restrictive firewall), IntraRelayPlugin routes the message… |
@suaveplan/network-plugin-middleware |
Priority-ordered middleware chain for the Suaveplan mesh. Inbound and outbound message flow each pass through the same five-band pipeline (CRITICAL → HIGH → NO… |
@suaveplan/network-plugin-migration |
Peer state migration between meshes: 8-step MigrationCoordinator, snapshot serialize/deserialize via StateTransferProtocol, graceful-handoff `ForwardingTun… |
@suaveplan/network-plugin-monitor |
Production monitoring + distributed tracing for the Suaveplan mesh. Collects metrics across four categories (node / connection / message / hierarchy), supports… |
@suaveplan/network-plugin-partition |
Split-brain detection and resolution for the mesh: epoch-based PartitionDetector (deterministic partition-id from sorted reachable set), QuorumResolver wit… |
@suaveplan/network-plugin-protocol |
Network protocol plugin for the mesh system. |
@suaveplan/network-plugin-qos |
Bandwidth management and quality-of-service for the mesh: bandwidth-quota enforcer, message-priority classifier, QoS router (bypass / drop / queue / defer), co… |
@suaveplan/network-plugin-registry |
Fixed-capacity peer registry with bitpacker-based binary encoding. |
@suaveplan/network-plugin-relay |
Cross-mesh relay — the federation layer that lets Tier 0 hosts of different meshes route messages to each other. Composes RelayRouter, `HostBackboneTransport… |
@suaveplan/network-plugin-server-bridge |
Tier-0 host ↔ central-server bridge for the Suaveplan mesh. |
@suaveplan/network-plugin-session |
Hierarchical session management for the Suaveplan mesh. SessionTree maintains a parent-child session graph rooted at a single auto-created root; `SessionMana… |
@suaveplan/network-plugin-simulation |
Deterministic virtual-network simulation framework for the Suaveplan mesh. NetworkSimulator runs scenarios against a seeded RNG with simulated time (accelera… |
@suaveplan/network-plugin-state |
Mesh-wide synchronized state for the Suaveplan network. Path-based StateManager (versioned history with sequence numbers + per-path subscriptions); `DeltaCom… |
@suaveplan/network-plugin-topology |
Tiered mesh topology plugin: 3-tier HierarchicalTopology (Host / SubHost / Leaf) with promote/demote, latency-bucket-based LatencyAssigner, GroupManager,… |
@suaveplan/network-plugin-transport-manager |
Multi-transport orchestration for the Suaveplan mesh. Maintains a pool of registered transports per peer, negotiates capability bitmaps during handshake, route… |
@suaveplan/network-testing |
|
@suaveplan/network-transport-hyperswarm |
Server-tier Hyperswarm DHT transport for @suaveplan/network. Provides hole-punched peer-to-peer streams discovered via Kademlia DHT topics. |
@suaveplan/network-transport-libp2p |
Universal libp2p Transport for @suaveplan/network. Composes WebSockets or WebRTC sub-transports with Noise + Yamux, identify + ping + bootstrap + circ… |
@suaveplan/network-transport-standby |
Pre-emptive WebRTC standby transport for @suaveplan/network. Maintains a pool of warm RTCPeerConnection-like slots so peer attach completes in ~10 ms inste… |
@suaveplan/network-transport-webrtc |
WebRTC transport plugin for mesh networking. |
@suaveplan/network-transport-websockets |
WebSocket client utilities with typed message framing, connection lifecycle management, heartbeat, backpressure queue, and injectable transport adapters. |
@suaveplan/network-trystero-server |
Server-tier Trystero signaling daemon. Hosts an MQTT-style or Nostr-style WebSocket broker shim plus standard /health / /ready / /live probes on a single… |
@suaveplan/react-network-libp2p-demo |
React-tier demo UI for @suaveplan/network-transport-libp2p. Splits the upstream 749-LOC monolithic demo into per-concern subcomponents (<NodeStatusPanel>,… |
@suaveplan/service-discovery |
Universal service-registry primitives. Provides the shared ServiceDescriptor, ServiceQuery, RegistryEvent, and ServiceRegistry contract consumed b… |
@suaveplan/websocket-gateway |
Server-tier WebSocket gateway daemon with rooms, presence tracking, and channel-multiplexed pub/sub. Pairs with @suaveplan/network-transport-websockets on th… |