BonAHA is a framework that aims to simplify building ad-hoc applications for mobile and mesh networks by handling service discovery and maintaining state of nodes and metadata, without requiring applications to resolve services or maintain their own state. It provides object-oriented APIs and events to register services, browse for other nodes and services, and get updated when the network changes. This allows building ad-hoc applications with much less code than using the lower-level Bonjour APIs directly. Examples demonstrate how it can reduce the code needed for a location sharing application from 148 lines to just 8 lines.