Repository navigation
examples: app-builder preview, a phone per end user embedded in your page - #68
Merged
Merged
Conversation
…page A copyable reference integration for products that show their users a live phone preview (two files, Node 20+, no dependencies): API key server-side; one phone per end user (end_user, display_hz: 30), reused and restarted; an APK URL installs, an Expo link opens in the matching Expo Go; the live phone embedded through /embed locked to the page's origin; signed webhooks verified and shown; usage per end user. Run end to end against production on 2026-11-25 (RUNS.md, demo.gif). Lint runs its signature self-check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A reference integration for app builders. Two files, no dependencies, Node 20+:
end_useranddisplay_hz: 30, reused and started again when parked.exp://,exps://,https://expo.dev/…) opens in the Expo Go that matches the project's SDK./embed, locked to the page's origin, interactive.Mobilebox-Signature, 5 min window) and shown as phone state./v1/account/usage?by=end_user.On start it adds the page origin to the embed origins (keeping existing ones) and points the workspace webhook here, unless the webhook already points elsewhere (
MOBILEBOX_TAKE_WEBHOOK=1overrides).Run against production on 2026-11-25 through a Cloudflare quick tunnel, driven in Chrome (RUNS.md,
demo.gif):phone.parkedwebhooks, and usage per user updated.The page polls instead of using server-sent events, because Cloudflare quick tunnels hold an SSE stream back (measured: nothing arrived in 22 s).
UI: impeccable critique (dual-agent; detector clean, design review 31/40). Fixed before this PR:
npm run lintrunsserver.mjs --self-check(signature tests).🤖 Generated with Claude Code