Who it is forA developer who wants to modify MobileCode itself or test changes to its mobile preview features before using a release build.
The problemUsing a release binary does not let you test changes to the device preview code or the fork's mobile detection.
The outcomeA local backend and web UI run from source, and you can run the typecheck and tests before sending a change.
What you need first
- macOS with Xcode for iOS previews
- Node 20 or newer (serve-sim needs it)
- Android SDK platform-tools with at least one AVD for Android previews
- A JDK that your project's Gradle version supports
- Bun, for the install from source path
Steps
- Run
git clone https://github.com/hsandhu/mobilecode.gitand thencd mobilecode. - Run
bun installin the repo root. - Run
bun run --cwd packages/opencode src/index.ts serve --port 4096to start the backend. - Run
bun --cwd packages/app dev -- --port 4444and open http://localhost:4444 for the web UI. - Run
bun typecheckinside the package directory you changed, thenbun testin packages/opencode before sending changes.
Prompt for your agent
Clone https://github.com/hsandhu/mobilecode into a local folder, run bun install, then start the backend with `bun run --cwd packages/opencode src/index.ts serve --port 4096`. Expected output: the backend running on port 4096. Verify by confirming the server responds locally before reporting that the source build works.
Caveat. The README gives development commands only and does not describe a contribution process, so check the repo before opening a pull request.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for hsandhu/mobilecode and "Run MobileCode from source to change it"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer