8000 GitHub - zvadaadam/mobile-canvas: A native Mac canvas for real Expo interfaces and experimental Swift previews, with CLI and MCP access. · GitHub
[go: up one dir, main page]

Skip to content
7FFF

About

A native Mac canvas for real Expo interfaces and experimental Swift previews, with CLI and MCP access.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Mobile Canvas

Your app, on a canvas. Your agent, in the loop.

Get started · Agent setup · Try a prompt · Docs

See your app’s screens together, follow their connections, and jump straight to the UI you want to change. Mobile Canvas runs real iOS views on your Mac and gives coding agents the same screen map, source and native screenshots through MCP and CLI.

BetterMind screens running in the native Mobile Canvas

BetterMind in the native canvas · Swift previews are experimental

Get started

Apple-silicon Mac · arm64 Node 22.14+ · compatible Xcode · development signing
Expo builds also need CocoaPods. Some apps need Bun. Setup tells you what’s missing.

npm install -g https://github.com/zvadaadam/mobile-canvas/releases/download/v0.1.0/mobile-canvas-0.1.0.tgz
cd /path/to/your/expo-app
mobile-canvas setup --install
mobile-canvas open

The first open builds the native host and can take several minutes. Later opens reuse it. Keep the terminal running. Your app’s source stays in place; experiments are separate until you explicitly apply them.

No service keys? Add --offline to both setup and open for supported local previews. Downloads still need internet.

Full installation guide · Try a sample app on another Mac · Swift setup

Work with an agent

In the native canvas: browse screens, follow the flow, compare states and inspect code. The Agent panel supplies MCP configuration for your project.

In your coding agent: ask it to map the app, inspect a screen or propose a design change. MCP and CLI share the canvas’s project and undo history.

MCP configuration

Add this to your client’s MCP settings, replacing the app path. Use an absolute executable path if the client cannot find mobile-canvas.

{
  "mcpServers": {
    "mobile-canvas": {
      "command": "mobile-canvas",
      "args": ["mcp", "--app", "/absolute/path/to/app"]
    }
  }
}

Add --offline for supported disconnected previews. For an existing experiment, use --project /absolute/path/to/experiment instead of --app.

Start by asking the agent to read canvas_read_skill. CLI agents can run:

mobile-canvas skills get core

Inside an MCP Apps client: the upcoming embedded review lets you browse the flow and native captures in the conversation with canvas_view. Native interaction and animation stay in the Mac window. This feature is currently source-only; the published 0.1.0 includes CLI/MCP tools, but not the embedded review. MCP Apps setup →

Prompts to try

Explore

Use Mobile Canvas to map this app. Inspect three representative screens and explain the main flows. Tell me which previews you couldn’t verify. Don’t change any files.

Improve

Review the onboarding screens in Mobile Canvas. Propose a spacing and typography improvement in a separate experiment, then capture the result. Leave the original app unchanged.

Diagnose

Inspect this empty screen in Mobile Canvas. Check its source, route parameters and preview status. Explain what’s missing before suggesting a fix.

More prompts, expected results and a first-run checklist →

Developer preview

Linked Expo SDK 56/57 are supported; SwiftUI/UIKit support is experimental. Some screens need authentication, real records or device services. A mapped screen is not proof that it rendered correctly. Unavailable states stay in the flow.

Distribution is currently an npm-installable GitHub archive, without a notarized Mac installer or npm-registry release. Another Mac still needs its own Xcode and signing setup. Known limits and troubleshooting →


Documentation · Contributing · Report an issue · MIT license

Independent project, not affiliated with Expo. Third-party notices.

About

A native Mac canvas for real Expo interfaces and experimental Swift previews, with CLI and MCP access.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0