bonsoir
7.1.6, released 4 weeks ago by skyost.eu
A Zeroconf library to discover network services and broadcast your own.
What it does
Bonsoir is a Zeroconf library based on Apple Bonjour and Android NSD. It allows Flutter apps to broadcast network services and discover other services on the local network.
AI-written summary of version 7.1.6, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need local network service discovery between devices.
- You want to broadcast a service (like a local server) for other devices to find.
Skip it when
- You need communication over the internet rather than a local network.
- Target platforms do not support mDNS or local networking.
Strengths
- Cross-platform support (Android, iOS, Windows, macOS, Linux).
- Stream-based discovery events for monitoring found, resolved, updated, and lost services.
Weaknesses
- Platform and service-dependent address families can require careful handling of IPv4/IPv6 addresses.
- Requires platform-specific configuration for local network usage.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 5
Requires native configuration as detailed on the Bonsoir website and local network permissions.
BonsoirService service = BonsoirService(name: 'My service', type: '_service._tcp', port: 3030);
BonsoirBroadcast broadcast = BonsoirBroadcast(service: service);
await broadcast.initialize();
await broadcast.start();Alternatives
Packages that do the same job and could replace bonsoir.
- http2
An HTTP/2 implementation in Dart for low-level transport and pooled HTTP/2 requests.
91Compare - dbus
Native Dart D-Bus client for Linux and Windows.
91Compare - multicast_dns
Dart package for performing mDNS queries, Bonjour, and Avahi service discovery.
86Compare - nm
Client for interacting with Linux NetworkManager via D-Bus
81Compare