Paper Mirror

Experience your Paper design in a real browser

Select a frame in Paper and Paper Mirror shows it in your browser as real HTML and CSS. Edit the frame and the page follows.

View on GitHub
localhost:47831

Get started

Install it once, in about a minute, and your mirror is always a bookmark away. You need Paper Desktop and Node.js 22 or newer.

  1. Run this once in Terminal, or PowerShell on Windows. macOS may show a “Background Items Added” notice: that is the helper.

    npx pmirror install
  2. Open localhost:47831 in your browser and bookmark it. You won’t need the terminal again.

  3. Select a frame in Paper. The preview appears.

From then on the helper starts by itself when you log in, and updates itself from npm. Only want a quick look first? Run npx pmirror without “install” and it works until you close the terminal. To remove it, run npx pmirror uninstall. Installed it as npx paper-mirror before? The package is now pmirror, and your helper switches over by itself.

Features

A few things the preview does besides following your edits.

  • Hello, Paper.localhost:47831Hello, Paper.

    Shaders and fonts, live

    Paper shaders run in the browser just as they do on the canvas, with Paper’s own open-source shader package. Fonts load too: the ones installed on your computer through the helper, the rest from Bunny Fonts.

  • localhost:47831

    Narrow windows

    Frames built with auto layout shrink to fit a narrower window, and a layout with sidebars stacks below a set width, main content first. It’s a best guess, so check key screens on a real device.

  • HomePricingshiftlocalhost:47831HomePricingHomePricing

    Several frames

    Shift-click frames in Paper and the mirror shows one, with a menu to switch between them. Switching back to a frame it has already shown is free, as long as nothing on that Paper page has changed.

  • localhost:47831space

    Pause

    Press Space and the preview stays as it is, and Paper isn’t read until you press it again. After 5 minutes with no changes, clicks or key presses, it pauses by itself.

Host your own copy

No Node.js, or want your own address and your own code? Host a copy on Vercel’s free plan. It takes about 10 minutes, once, and needs free GitHub and Vercel accounts.

  1. Fork the repository on GitHub.

  2. Import your fork into Vercel and deploy. The default settings work.

  3. Open your site. It shows one line to paste into Terminal, or PowerShell on Windows.

    curl -fsSL https://your-site/install | sh
  4. Go back to your site and select a frame in Paper. The preview appears.

The helper brings its own copy of Node.js, starts by itself at login and updates from your site. When it isn’t running, your site shows the line to run. One line in Terminal removes it again.

Using it

Once it is installed, every day is the same: open Paper, then open your bookmark. The preview follows the frame you are working in.

  • Select a frame: it appears as a real web page, at its real size.

  • Select a layer inside it: the preview stays on that frame. Select another frame and it switches.

  • R and Space: R refreshes now. Space pauses and keeps the current preview on screen.

  • Close Paper, or every file in it: the page waits on “Select a frame in Paper”, spending no calls, and picks your selection up by itself once a file is open again.

  • Close the tab: the helper stops reading Paper at once.

How it works

Paper Desktop runs an MCP server on your computer: the connection AI agents use to read and edit your designs. Paper Mirror uses the same connection, only to read. Paper blocks web pages from it, so Paper Mirror has two parts.

  • The helper: a small program on your computer, and the only part that talks to Paper. It connects through the paper mcp command that Paper Desktop installs, the way Paper documents for agents. With an older Paper Desktop, it uses Paper’s local address instead.

  • The mirror page: where you watch. From npm, the helper serves it itself at localhost:47831. On Vercel it is your own site, and your frames never go to it.

  • What the helper asks Paper: get_selection, to see which frame you have selected, and get_jsx, to read that frame. These count against your weekly MCP allowance, and so does get_screenshot, used only for layers a browser can’t draw. To notice edits it calls get_basic_info, which Paper doesn’t count.

  • What it never asks: the tools that create, change or delete layers, so it never edits your file. While it reads, Paper may outline the frame as if an agent were working on it, and the helper clears that right after.

Paper sends the frame as JSX. The helper reads it without running any of it, and rebuilds the frame as static HTML and SVG. Text, web fonts and Paper shaders are live. Buttons and inputs look right but do not respond.

Modes: Saver and Live

Paper counts MCP calls against a weekly allowance, shared with any AI agents you connect: about 100 on the free plan and 1 million on Pro. Two modes let you choose how much of it the mirror spends.

  • Saver, the default: about one call per update you see, and none while idle. Layout edits show a second after you stop. Color and text edits show when you return to the tab.

  • Live: about one call a second while the tab is visible. Every edit shows within a few seconds. It rests after 5 minutes without changes, so a tab left open over lunch doesn’t use up your week. Best on Paper Pro.

If the allowance runs out, the mirror keeps the last frame on screen and stops spending calls.

Privacy and security

Paper Mirror runs on your computer, from npm or from your own Vercel site. There is no Paper Mirror server or account between Paper and your browser.

  • Designs stay on your computer: they go from Paper to the helper to your tab, and never reach npm or Vercel.

  • The helper is local: it listens on 127.0.0.1 only, answers only its own page or your site, and reads Paper only while a mirror tab is open.

  • Nothing from Paper runs: the frame is rebuilt from an allow-list of HTML and SVG and shown in a sandboxed frame.

  • Nothing is collected: no telemetry, tracking or cookies. The preview only fetches web fonts and the images in your frame.

  • You choose what to trust: installed from npm, the helper takes each new release of the pmirror package. Host your own fork to run only code you have reviewed.

Works with

Paper Desktop on a Mac, kept up to date (it installs the paper mcp command the helper connects through), with any current browser. The npm route also needs Node.js 22 or newer.

  • Installed from npm: every browser opens the same page, localhost:47831.

  • Your own site in Chrome and Edge: allow local network access when asked.

  • Your own site in Firefox and Safari: nothing else to do.

  • Not yet tested: Windows, and the npm install starting at login and updating itself.

Pricing

Free. Paper Mirror is open source under the MIT license.

  • Hosting: none needed from npm. Your own copy runs on Vercel’s free plan.

  • Paper: Saver mode fits Paper’s free plan. Live is meant for Paper Pro.

  • Contributing: fork it, make it better, raise a PR.