@adikuma/peek
v0.1.0
Published
Give Claude eyes that work from your phone. Screenshot and record local apps, surface phone-viewable URLs through a free Cloudflare tunnel.
Maintainers
Readme
Peek
Peek lets Claude take screenshots and short recordings of your local app and hand you a link you can open on your phone.
It is built for the exact moment when Claude changed a UI and you want to see it, not read about it.
Install
Recommended:
npm install -g @adikuma/peek
peek installThis installs Peek globally and registers it in Claude.
Then restart Claude Code or run /reload-plugins.
Local repo setup:
pnpm install
pnpm build
pnpm setupRemove it from Claude:
peek uninstallThe first install may download Chromium and cloudflared. After that they are cached.
What it does
Peek gives Claude three tools:
screenshotrecordlist
Typical flow:
- Claude opens your app URL in Chromium
- Peek captures a screenshot or short video
- Peek serves the file from your machine
- Cloudflare gives it a temporary public URL
- Claude sends you the preview and the link
When to use it
Use screenshot for static UI checks.
Use record when motion or interaction matters, like:
- toggles
- hover states
- modals
- navigation
- small flows
Important notes
- Files stay on your machine
- The public link is temporary
- Peek captures the supplied URL in Chromium
- It does not capture the native Tauri or Electron window
- For Tauri or Electron apps, Chromium can look different from the real app window
- The viewer also supports
?theme=darkand?theme=light
Config
All env vars are optional.
| Env var | Default | What it does |
|---|---|---|
| PEEK_PORT | random | pin the local HTTP server port |
| PEEK_VIEWPORT | phone | default viewport: phone or desktop |
| PEEK_MAX_SECONDS | 15 | cap on record duration |
| PEEK_DEV_URL | unset | prefer this host label in the viewer |
| PEEK_SKIP_TUNNEL | 0 | skip Cloudflare and use local-only URLs |
| PEEK_DEBUG | 0 | verbose logs to stderr |
Tests
pnpm test
pnpm test:tunnel
pnpm test:allUI preview:
pnpm preview:ui