SpawnDev.Swarm 0.2.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package SpawnDev.Swarm --version 0.2.0
                    
NuGet\Install-Package SpawnDev.Swarm -Version 0.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SpawnDev.Swarm" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SpawnDev.Swarm" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="SpawnDev.Swarm" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SpawnDev.Swarm --version 0.2.0
                    
#r "nuget: SpawnDev.Swarm, 0.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SpawnDev.Swarm@0.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SpawnDev.Swarm&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=SpawnDev.Swarm&version=0.2.0
                    
Install as a Cake Tool

SpawnDev.Swarm

Membership, identity, authority and transport for a swarm of trusted devices on WebRTC - browser and desktop .NET from one codebase.

  • Devices are enrolled by the swarm owner (QR pairing), and every connection proves it holds an enrolled key, bound to that connection's DTLS fingerprints.
  • Roles come from an owner-signed registry and are checked on every message.
  • A term-numbered lease decides who coordinates; partitions heal deterministically.
  • Framed control messages and chunked bulk payloads with flow control, with no copies through the .NET heap.

Status: spec for review. See Plans/PLAN-Swarm.md.

Used by SpawnDev.Hive (model-level hive) and SpawnDev.ILGPU.P2P (kernel-level distributed compute). Built on SpawnDev.RTC.

License

MIT. See LICENSE.txt.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.1 0 11/30/2026
0.2.0 0 11/30/2026
0.1.0 0 11/29/2026

v0.2.0 - BREAKING: does not interoperate with 0.1.0 (handshake version 2; the whole hive upgrades together). Session heartbeat: a crashed peer is closed PeerUnresponsive in ~6 s instead of ICE's ~17.5 s (default 6 missed 1 s beats, sized from a measured background browser tab; desktop-only hives can set 3). Relaying for a partial mesh (SwarmRelayer) with bounded registry sync, and leases through relays (SwarmCoordinator.UseRelay). One role table for service types. A failed handshake or pairing closes the whole connection. On SpawnDev.SpawnJS.Cryptography 2.1.5. v0.1.0 - First release. Owner-signed registry with root rotation; a handshake bound to the verified DTLS fingerprints; authenticated sessions (per-channel Seq, fragmentation, one authorization gate, revocation close, credit flow control, goodbye); QR pairing with a commit-before-reveal 6-digit code; SwarmConnector over a WebTorrent tracker; term-and-lease coordinator (SwarmCoordinator). Browser and desktop .NET.