SpawnDev.Swarm
0.2.6
Prefix Reserved
See the version list below for details.
dotnet add package SpawnDev.Swarm --version 0.2.6
NuGet\Install-Package SpawnDev.Swarm -Version 0.2.6
<PackageReference Include="SpawnDev.Swarm" Version="0.2.6" />
<PackageVersion Include="SpawnDev.Swarm" Version="0.2.6" />
<PackageReference Include="SpawnDev.Swarm" />
paket add SpawnDev.Swarm --version 0.2.6
#r "nuget: SpawnDev.Swarm, 0.2.6"
#:package SpawnDev.Swarm@0.2.6
#addin nuget:?package=SpawnDev.Swarm&version=0.2.6
#tool nuget:?package=SpawnDev.Swarm&version=0.2.6
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 | Versions 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. |
-
net10.0
- SpawnDev.RTC (>= 2.5.2)
- SpawnDev.SpawnJS.Cryptography (>= 2.1.6)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on SpawnDev.Swarm:
| Package | Downloads |
|---|---|
|
SpawnDev.Hive
A model-level hive of trusted devices on SpawnDev.Swarm: skills, capability adverts, a placement planner and a router. Browser and desktop .NET. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.3.10 | 54 | 12/2/2026 |
| 0.3.9 | 60 | 12/2/2026 |
| 0.3.8 | 79 | 12/2/2026 |
| 0.3.7 | 86 | 12/2/2026 |
| 0.3.6 | 79 | 12/2/2026 |
| 0.3.5 | 87 | 12/1/2026 |
| 0.3.4 | 85 | 12/1/2026 |
| 0.3.3 | 77 | 12/1/2026 |
| 0.3.2 | 88 | 12/1/2026 |
| 0.3.1 | 87 | 12/1/2026 |
| 0.3.0 | 85 | 12/1/2026 |
| 0.2.13 | 77 | 12/1/2026 |
| 0.2.12 | 88 | 12/1/2026 |
| 0.2.11 | 98 | 12/1/2026 |
| 0.2.10 | 92 | 11/30/2026 |
| 0.2.9 | 88 | 11/30/2026 |
| 0.2.8 | 83 | 11/30/2026 |
| 0.2.7 | 117 | 11/30/2026 |
| 0.2.6 | 88 | 11/30/2026 |
| 0.2.5 | 113 | 11/30/2026 |
v0.2.6 - SwarmLink.ConnectAsync takes an RTCPeerConnectionConfig (rtcConfig): on desktop the SCTP burst settings cap data channel throughput (defaults 4 chunks / 50 ms: 0.23 MB/s measured; 256 / 2 ms: 10.5 MB/s). Bench_BulkThroughput test. v0.2.5 - Forward compatibility for wires built on Swarm: CanonicalWriter/CanonicalReader.Extensions (a canonical, bounded tag/bytes list read last, unknown tags skipped), CanonicalReader.BytesSlice (no copy), and SwarmSession.ReserveRange (an unregistered type inside a reserved range is dropped and counted instead of closing the session). v0.2.4 - On SpawnDev.SpawnJS.Cryptography 2.1.6 (one explicit WebCrypto Ed25519 probe; a malformed key from a peer can no longer move the process to managed keys). SwarmKey.VerifyAsync returns false, never throws, for a key that cannot be imported. v0.2.3 - SwarmLink.ConnectAsync: two devices over real RTC in one process with a session on each side (for tests of anything built on Swarm). The coordinator also renews on peers' heartbeats, so a background-tab coordinator keeps ~L/3 renewals while its timers are throttled. v0.2.2 - Heartbeat echo: a session answers each received heartbeat at once (capped at one per half interval), so a background browser tab keeps showing life through network events while its timers are throttled. Wire-compatible with 0.2.0 / 0.2.1. SwarmConnector.HeartbeatInterval and MissedBeatsBeforeClose (connector users could not set them before). v0.2.1 - On SpawnDev.RTC 2.5.2: connector sessions no longer die at tracker re-announces (RTC let a re-announce replace an established connection, ~every 30 s). SwarmConnector closes a session's peer connection when the session closes, so a dead peer can reconnect at once. Interoperates with 0.2.0. 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.