Overview
Bonsoir is a zero-configuration networking library for Flutter that enables discovery of network services and broadcasting of local services, inspired by Apple Bonjour and Android NSD. It simplifies peer-to-peer communication across devices on the same network without requiring manual configuration. The package supports multiple platforms including Android, iOS, macOS, Windows, and Linux, making it ideal for apps needing automatic service detection in local networks. It's lightweight and integrates seamlessly with existing Flutter projects.
Use cases
- Local device discovery
- Service broadcasting
- Peer-to-peer app communication
- LAN-based IoT device interaction
- Networked multiplayer game setup
Key features
- Cross-platform support
- Zeroconf (mDNS) integration
- Service discovery and registration
- Simple API for broadcast and listen
- Works on Android, iOS, macOS, Windows, and Linux
Suitable for
- Developers building LAN apps
- IoT applications
- Multiplayer games on local networks
- Apps requiring automatic device detection
- Projects needing mDNS functionality
Considerations
- Requires network permissions on Android and iOS
- Limited to local network scope
- No built-in encryption for discovered services
- May require firewall adjustments
- Performance depends on network conditions
