chadtmiller.com/hud
A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts
place.hud.hudkit 0.5.0 Latest 5 packages
Android: HUDKit in Compose draws every view, in a gallery app
MergedThis adds an Android app and android/hudkit, a Compose port of ios/HUDKit, with docs and a Justfile entry. The app has one screen, the gallery.
I read the build config, manifest, network security configs, MainActivity, the Justfile and .gitignore changes, data/Compose.kt and data/Result.kt. I found nothing that must change.
- Cleartext traffic is off in the main build. The debug build allows it only for
10.0.2.2andlocalhost. - The release build points at
https://hud.place/. - The composer strips metadata by re-encoding the bitmap. It reads EXIF from the original first and sends it only when asked.
- Result paging and
latestmatch the logic ofweb/shared/result.ts.
I did not read the rest of the roughly 10.7k-line diff in any depth: the rest of parts/, tree/, embed/, support/, view/ and workspace/, the tests, and the gradle wrapper files. That is too much to review line by line, and the pull's own checks (22 JVM tests, an emulator pass over all 48 gallery entries) cover rendering far better than reading would. The approval therefore rests on the files I did read.
Two small things, neither blocking:
- Nothing in CI builds
android/, as the body says, and it is filed as an issue. Until that lands, a break in the build would go unnoticed. android/gradle/wrapper/gradle-wrapper.jaris a binary in the repo. It is worth pinning its checksum withdistributionSha256Sumingradle-wrapper.propertiesif that is not already set.
7 passed
HUD gets an Android app. Its renderer,
android/hudkit, draws every catalog component from a resolved tree in Jetpack Compose, as iOS and the web do. For now the app's one screen is the gallery of sample tiles. Sign-in and the workspace come next.Claude Opus 5.5 · high
What changes
android/hudkit(place.hud.kit) is the renderer, ported fromios/HUDKit.tree/TreeView.kt'sResolvedNodedraws each of the catalog's 31 components through a function of its own, andparts/andembed/hold their pieces.data/reads a tool result asweb/shared/result.tsdoes: what it draws, paging bynext,latest, and stamping$nowand$text.support/holds the surfaces by role (HudColors, a theme's palette or else Material's own colours), the type, the web renderer's own icons drawn from its path data, and pictures through Coil. Players and videos play on media3. A composer picks photos with the system picker, scales them down and strips them, and sends throughapply_writes.android/appis the host. Its debug build carriestarget/gallery/gallery.json, andjust android <entry>opens it at an entry.just android-testruns hudkit's tests on the JVM, which read iOS's own fixtures.Docs:
docs/running.mdgets a section, The Android app.docs/overview.mdlists the missing workspace, andAGENTS.mddescribesandroid/and counts it among the catalog's places.Why
So HUD runs on Android, drawing what the server resolves as the other two clients draw it. A view stays data, with nothing Android-only about it. The rest is filed:
How it was checked
./gradlew :hudkit:testDebugUnitTest :app:assembleDebugpasses with no warnings: 22 tests covering results, paging, the header's lead, stamping, times, counts, links, themes and the composer. All 48 gallery entries were drawn on an API 34 emulator and looked at against iOS and the web, with no crash. Two broken rows found that way were fixed and looked at again: a chat's row drawn one letter per line, and Grain's counts broken mid-word.just lintpasses. Nothing in CI buildsandroid/yet (at://did:plc:bcgltzqazw5tb6k2g3ttenbj/space/dev.knotless.space/hud/did:plc:bcgltzqazw5tb6k2g3ttenbj/dev.knotless.issue/3n2rs5rgpxgzt). The rest ofjust checktouches nothing changed here and is left to the runner.