paper-mirror
Health Uyari
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Basarisiz
- process.env — Environment variable access in api/_lib/store.js
- network request — Outbound network request in api/_lib/store.js
- process.env — Environment variable access in api/relay.js
- spawnSync — Synchronous process spawning in bridge/cli.mjs
- process.env — Environment variable access in bridge/cli.mjs
- network request — Outbound network request in bridge/cli.mjs
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Preview your paper designs live in your browser while you work in the canvas - free and open source!
See the frame you're designing in Paper as a live web page in your browser.
Quick start · Features · Guide · Troubleshooting · Get help · Website
Select a frame in Paper, and Paper Mirror shows it in your browser as real HTML and CSS: real text, real layout, at real device sizes. It follows your edits as you work. Free, open source, and nothing to sign up for.
Quick start
You need Paper Desktop and Node.js 20 or newer, on a Mac or Windows.
Open a file in Paper Desktop.
In Terminal (Mac) or PowerShell (Windows), install the helper:
npx pmirror installYour browser opens
http://localhost:47831. Select a frame in Paper and it appears.Bookmark
http://localhost:47831. That's all you need from now on.
You only do this once. The helper starts by itself whenever you log in and keeps itself up to date, so you can close the terminal and never open it again.
Just want to try it first? npx pmirror runs it without installing anything, until you close the terminal. No Node.js, or want your own web address? Host your own copy on Vercel.
Features
Real web pages, with shaders and fontsFrames are rebuilt as real HTML and CSS, so text is text. Paper shaders run just as they do on the canvas, and fonts load too: the ones installed on your computer, the rest from Google Fonts. |
Follows what you selectPick a frame in Paper and the mirror switches to it. Shift-click several frames and it shows one, with a menu in the toolbar to switch between them. |
Install once, then open your bookmarknpx pmirror install sets up a helper that starts by itself when you log in and keeps itself up to date. No terminal to keep open.
|
Fits the windowFrames built with auto layout shrink to fit a narrower window, and layouts with sidebars stack below a set width, main content first. When a frame can't adapt, a tip says why. |
Pause any timePress Space and the preview stays as it is, and Paper isn't read until you press it again. It also pauses by itself after 5 quiet minutes. Saver, the default, is easy on Paper's free plan, and Live follows every change. |
Private by designYour designs go from Paper to the helper to your browser, all on your own computer. No accounts, no tracking. Works in Chrome, Edge, Firefox and Safari. |
Using it
The toolbar floats in the corner of the mirror. Drag it anywhere.
| Control | What it does |
|---|---|
| Paper Mirror ● | Hover for the status. Click to switch between Saver and Live, or to refresh. |
| Pause / Resume | Stops reading Paper and keeps the preview on screen |
| Frame menu | Appears when several frames are selected in Paper, to switch between them |
| ⓘ | Appears when the frame won't adapt to other window sizes, with a tip to fix it |
| Download icon | Appears when an update is waiting. Click it to update; it fills up as the update downloads. |
| Key | What it does |
|---|---|
| Space | Pause or resume |
| R | Refresh now |
| Arrow keys | Move the toolbar when it has focus (hold Shift for bigger steps) |
| Home | Put the toolbar back in its corner (when it has focus) |
Saver or Live?
| Saver (default) | Live | |
|---|---|---|
| Switching frames | When you come back to the mirror tab, or press R | Within about a second |
| Edits | About a second after you stop editing. Colour and text-only edits when you come back or press R. | Within a few seconds |
| Paper calls | About 1 per update you see, none while idle | About one a second while the tab is visible |
| Best for | Paper's free plan (about 100 calls a week) | Paper Pro |
On Paper Pro, Saver also follows your selection while the mirror is on screen, for example on a second monitor. More about Saver and Live.
Two ways to run it
| From npm | Your own copy on Vercel | |
|---|---|---|
| Setup | npx pmirror install, about a minute |
Fork, deploy, paste the Install once line. About 10 minutes. |
| Needs | Node.js 20 or newer | Free GitHub and Vercel accounts. No Node.js. |
| Your mirror page | http://localhost:47831 |
Your own https://…vercel.app address |
| When the helper isn't running | The browser says it can't connect | Your site shows a setup page with the line to paste |
| Updates come from | npm | Your site |
Fork this repository, then import it into Vercel. The default settings work. (step by step)
Open your site. It shows one line to paste:
Install once (recommended) Just this time Mac (Terminal) curl -fsSL https://YOUR-SITE/install | shcurl -fsSL https://YOUR-SITE/start | shWindows (PowerShell) powershell -c "irm https://YOUR-SITE/install.ps1 | iex"powershell -c "irm https://YOUR-SITE/start.ps1 | iex"Select a frame in Paper. The preview appears.
If Node.js isn't installed, the helper downloads its own checksum-verified copy into a folder in your home. Nothing is installed system-wide and no admin password is needed.
The Getting started guide walks through both, with every choice explained.
How it works
flowchart LR
P["Paper Desktop"] --> H["Helper on your computer"]
H --> T["Mirror tab in your browser"]
Paper only shares designs with programs running on your own computer, and it blocks web pages from asking. So a small helper runs on your computer: it reads the selected frame from Paper, rebuilds it as safe HTML, and streams it to the mirror tab. It listens only to your computer, and only answers your mirror page.
How it works covers every part in detail.
Privacy and security
- Your designs never leave your computer. Paper → helper → your browser tab.
- Paper is read only while a mirror tab is open. No tab, no reads, even with the helper running.
- The helper only listens to your computer (
127.0.0.1) and refuses every other website. - Paper's export is never run as code. It's rebuilt from an allow-list of static HTML and SVG and shown in a sandboxed frame.
- No telemetry, tracking, cookies or accounts. The preview only fetches web fonts from Bunny Fonts and images from Paper's own servers. Everything it contacts.
- Installed helpers update themselves from npm, or from your Vercel site. If you host your own copy, protect your Vercel and GitHub accounts, and uninstall the helper before deleting the project.
Browser support
| Browser | Open | Notes |
|---|---|---|
| Chrome, Edge | localhost:47831, or your Vercel site |
On your Vercel site, allow "local network access" when asked |
| Firefox | localhost:47831, or your Vercel site |
|
| Safari (Mac) | localhost:47831 |
Safari doesn't let secure websites reach programs on your computer, so use this address even with a Vercel site |
Get help
- Something isn't working? Start with Troubleshooting. It has a fix for each message the mirror shows.
- Found a bug? Open a bug report.
- Tried it on your setup? Tell us how it went, especially on Windows.
- Have an idea? Suggest a feature.
- Found a security problem? Report it privately, not in a public issue. See SECURITY.md.
- Problem with Paper itself? Contact Paper. Paper Mirror isn't made by Paper.
Most problems are one of these:
- The browser can't connect to
localhost:47831. The helper isn't running. Runnpx pmirror installso it runs in the background and starts at login. More - It says "Select a frame in Paper". Paper Desktop needs a file open with a frame selected. More
- The preview doesn't update. It may be paused (press Space), or in Saver mode, which shows some edits when you come back to the tab. More
Documentation
| Guide | What's in it |
|---|---|
| Getting started | Setting up from npm or Vercel, daily use, updating, removing |
| How it works | The parts, how a frame travels, when Paper is read, rendering, install and updates |
| Troubleshooting | Fixes for each message you might see, install problems |
| Security | What you're trusting, every protection, remaining risks, a hardening checklist |
| Privacy | Where your designs go, what's stored and for how long, deleting everything |
| Development | Running it locally, repository layout, build, tests, endpoint reference, releasing |
| Changelog | What each version changes |
Project status
Paper Mirror is new. Here's what has been tested so far:
| Setup | Status |
|---|---|
| Desktop preview with real Paper | ✅ Tested |
npx pmirror on macOS |
✅ Tested |
npx pmirror install across a restart, and updates from npm |
✅ Tested |
| "Just this time" on macOS, including the private Node.js download | ✅ Tested |
| Helper self-update and launcher restart on macOS | ✅ Tested |
| macOS login item across a real restart | ✅ Tested |
| Windows install, scheduled task and Startup fallback | ✅ Tested |
| Deployed on Vercel | ✅ Tested |
| Chrome, Firefox and Safari | ✅ Tested |
Tried it on another setup? A setup report helps.
Uninstall
| Installed with | Run |
|---|---|
| npm | npx pmirror uninstall |
| Vercel, Mac | sh ~/.paper-mirror/uninstall.sh |
| Vercel, Windows (PowerShell) | powershell -ExecutionPolicy Bypass -File "$env:LOCALAPPDATA\paper-mirror\uninstall.ps1" |
Each one stops the helper, removes the login item, and deletes the helper's folder.
Contributing
Bug reports, setup reports, ideas and fixes are all welcome. See CONTRIBUTING.md.
npm install
npm test
npm run dev # the site at http://localhost:3000, plus a helper for it
Development explains the code, the build and the tests.
License
MIT. Libraries bundled into the site and the npm package keep their own licences, listed in THIRD-PARTY-NOTICES.txt.
Disclaimer
Paper Mirror is an independent, personal project. It is not affiliated with, endorsed by, or supported by Paper or its makers. "Paper" is used only to describe what this tool works with.
It's also not related to @adrianmg/paper-mirror, a separate project for previewing Paper designs on phones. That's why this project's npm package and command are called pmirror. (Helpers installed under the old name paper-mirror switch to pmirror by themselves.)
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi