How yuredazo/manifold works
Manifold is an Android live-feed SDK and hub, with optional encrypted sharing between hubs, including a Windows hub. The main local workflow is an app announcing a feed, another app subscribing with a Surface, and the hub mediating access before handing the Surface to the sender. The graph also preserves screen sharing, remote feeds, and Windows capture/encoding. Internal links are limited to relationships shown in the excerpts or SOURCE INDEX; broader product behavior is attributed to the README.
Main entry points: Network.kt Network transport · ManifoldSender.kt Sender API · ManifoldReceiver.kt Receiver API · ManifoldConnection.kt Hub connection
Components 21
Android SDK
- Sender API
sdk/src/main/kotlin/dev/mkzk/manifold/ManifoldSender.kt - Receiver API
sdk/src/main/kotlin/dev/mkzk/manifold/ManifoldReceiver.kt - Hub connection
sdk/src/main/kotlin/dev/mkzk/manifold/ManifoldConnection.kt - SDK contract
sdk/src/main/kotlin/dev/mkzk/manifold/Manifold.kt
Android Hub
- Hub app
hub/src/main/kotlin/dev/mkzk/manifold/hub/app/HubActivity.kt - Broker service
hub/src/main/kotlin/dev/mkzk/manifold/hub/broker/HubService.kt - Feed registry
hub/src/main/kotlin/dev/mkzk/manifold/hub/broker/Registry.kt - Access decisions
hub/src/main/kotlin/dev/mkzk/manifold/hub/broker/AccessBook.kt - Local previews
hub/src/main/kotlin/dev/mkzk/manifold/hub/broker/ui/PreviewSession.kt - Screen sharing
hub/src/main/kotlin/dev/mkzk/manifold/hub/screen/ScreenShareService.kt
Device Networking
- Network lifecycle
hub/src/main/kotlin/dev/mkzk/manifold/hub/network/NetworkService.kt - Network transport
hub/src/main/kotlin/dev/mkzk/manifold/hub/network/Network.kt - Wire protocol
hub/src/main/kotlin/dev/mkzk/manifold/hub/network/protocol/Session.kt - Stream handling
hub/src/main/kotlin/dev/mkzk/manifold/hub/network/stream
Windows Hub
- Media capture
desktop/windows/runner/capture/capture_host.cpp - Audio capture
desktop/windows/runner/audio/app_audio_capturer.cpp - Media encoding
desktop/windows/runner/encode/h264_encoder.cpp - Desktop host
desktop/windows/runner/viewer/window_host.cpp
Other components
- Sending app
- Receiving app
- Paired hub
Connections 21
- Sending app → Sender API: announces feed
README.md - Receiving app → Receiver API: subscribes by name
README.md - Sender API → Hub connection: binds to hub
sdk/src/main/kotlin/dev/mkzk/manifold/ManifoldSender.kt - Receiver API → Hub connection: binds to hub
sdk/src/main/kotlin/dev/mkzk/manifold/ManifoldReceiver.kt - Sender API → SDK contract: uses constants
sdk/src/main/kotlin/dev/mkzk/manifold/ManifoldSender.kt - Receiver API → SDK contract: validates requests
sdk/src/main/kotlin/dev/mkzk/manifold/ManifoldReceiver.kt - Hub connection → Broker service: binds remotely
sdk/src/main/kotlin/dev/mkzk/manifold/ManifoldConnection.kt - Broker service → Feed registry: registers feeds
hub/src/main/kotlin/dev/mkzk/manifold/hub/broker/HubService.kt - Feed registry → Access decisions: checks access
hub/src/main/kotlin/dev/mkzk/manifold/hub/broker/Registry.kt - Hub app → Network lifecycle: restores networking
hub/src/main/kotlin/dev/mkzk/manifold/hub/app/HubActivity.kt - Hub app → Screen sharing: starts sharing
hub/src/main/kotlin/dev/mkzk/manifold/hub/app/HubActivity.kt - Local previews → Feed registry: subscribes preview
hub/src/main/kotlin/dev/mkzk/manifold/hub/broker/ui/PreviewSession.kt - Network lifecycle → Network transport: starts transport
hub/src/main/kotlin/dev/mkzk/manifold/hub/network/NetworkService.kt - Network transport → Wire protocol: exchanges sessions
- Network transport → Stream handling: handles media streams
- Network transport → Paired hub: sends encrypted feeds
README.md - Paired hub → Network transport: returns remote feeds
README.md - Media capture → Media encoding: supplies video
- Audio capture → Media encoding: supplies audio
- Desktop host → Media capture: hosts capture
- Desktop host → Paired hub: pairs over network
README.md