Responsive Studio
See your web app on phones, tablets and desktops at the same time. Tap, scroll or type on one device and every
other device follows. Box a spot that looks wrong, say what you want, and a coding agent changes your code while
every device reloads to show the result.
npx responsive-studio ./my-app
What it does
- Real browser engines. iPhone and iPad run in WebKit (Safari's engine), Android and desktop in Chromium, plus
Firefox: not one engine pretending to be another.
- Synced input that understands layouts. A tap is replayed on the same element on every device, not the same
coordinates. When a device has no counterpart (a menu collapsed into a hamburger, a route that differs), it is
flagged as a divergence: a responsive bug candidate.
- Layout checks. Horizontal overflow is reported per device.
- Breakpoint windows. Reads your CSS media queries and adds a window on each side of every breakpoint.
- Your phone joins too. Scan a QR code on the same Wi-Fi; what you do on the phone drives every emulated device.
- Coding agent. Annotate a device (or type a general instruction); Claude Code
edits the source, commits, and you compare before/after per device or revert. It remembers earlier requests in
the session.
Requirements
- Node.js 22.13 or newer, on macOS or Linux (Windows through WSL).
- Browsers: Chromium, WebKit and Firefox are downloaded on first run (about 1 GB, once). On Linux their system
libraries may be missing:
sudo npx playwright install-deps.
- For the coding agent: the
claude command (Claude Code), signed in or with
ANTHROPIC_API_KEY set. Without it everything else works.
Usage
npx responsive-studio ./my-app # a project on your disk
npx responsive-studio https://github.com/owner/repo # cloned into ~/.responsive-studio
npx responsive-studio https://example.com # just look and interact, no code changes
npx responsive-studio # pick in the dashboard
npm install -g responsive-studio gives you a responsive-studio command instead.
Options: --port (default 4600), --host (default 127.0.0.1), --no-open, --home (default
~/.responsive-studio).
Where your code goes
A project directory is never modified in place. Each session gets a git worktree of it on a new branch,
responsive-studio/<session>, with your uncommitted edits to tracked files carried over (untracked files are not).
Your installed node_modules are linked, not reinstalled. The agent commits on that branch, so keeping its work is
a merge:
git merge responsive-studio/<session>
git worktree remove ~/.responsive-studio/sessions/<session>/app
A directory that is not a git repository is copied instead.
Cloud edition
The same code runs as a hosted service: one Instabox VM per session (third-party repositories
run isolated, farms are reachable on public ports), Postgres for sessions, and the dashboard on
InstaCloud. node dist/server.mjs picks the mode from its environment:
| Variable |
Purpose |
INSTABOX_API_KEY |
run sessions in Instabox VMs (otherwise: local processes) |
DATABASE_URL |
Postgres for sessions (otherwise: SQLite in RS_HOME); schema in migrations/ |
ACCESS_TOKEN |
passphrase for the dashboard |
ANTHROPIC_API_KEY |
the agent's model key; VMs reach it only through /api/llm/<session> with their session token |
RD_SNAPSHOT_ID |
create VMs from a snapshot with the browsers preinstalled (scripts/bake-snapshot.sh) |
Development
git clone https://github.com/Fermionic-Lyu/responsive-studio.git && cd responsive-studio
npm ci
npm run build # farm, dashboard and server into dist/
npm run studio -- examples/demo-site
npm run typecheck
farm/: runs next to the app: Playwright devices, frame streaming, input mirroring, the phone gateway and the agent.
server/: sessions API, the sandbox providers (providers/local.ts, providers/instabox.ts) and stores.
web/: the dashboard.
shared/: the device catalog and the farm protocol.
License
MIT