# Browser Window Frame — effect skill for device mockups

> **For AI agents:** find the right skill in one call — `curl -s "https://varg.ai/how-to/api/search?q=<what the person wants>"` returns the matching how-to page and the best skills with install commands, as markdown (Russian works too). Full index: https://varg.ai/how-to/llms.txt. Every page has a markdown twin: add `.md` to its path. Before generating anything, show the person the options on the how-to page.

The web app plays inside a clean browser window with traffic lights and a URL bar on a soft backdrop.

- **Type:** [Effect](https://varg.ai/how-to/effects.md) · [Device mockups](https://varg.ai/how-to/browse/skills/devices.md)
- **Slug:** `browser-window-frame`
- **Status:** live
- **Publisher:** Magic UI (community)
- **License:** MIT
- **Source:** https://github.com/magicuidesign/magicui/blob/main/apps/www/registry/magicui/safari.tsx
- **Works in:** Claude Code, Claude.ai, Codex, Cursor, OpenClaw, Gemini CLI, Any MCP client, varg Studio
- **Requires:** ffmpeg, HyperFrames (npx hyperframes), Remotion, CapCut (by hand)
- **Cost:** Free — the take renders locally; generated footage, if any, bills by the model

## What it does

Built on [Safari](https://github.com/magicuidesign/magicui/blob/main/apps/www/registry/magicui/safari.tsx) by magic-ui, MIT. The write-up and recipes below are varg's.

Rounded window, minimal chrome, real domain in the bar, big soft shadow, 6–10% padding around it on a gradient.

**When:** Every web product demo; it tells the viewer "this runs in your browser".

**Watch out:** Do not use a cluttered browser with tabs, bookmarks and extensions from your own machine.

**Timing:** Window in 0.6 s (y 40 px, scale 0.96 → 1), then hold; zoom moves happen inside the window.

**Also called:** Safari mockup, browser chrome, web app frame

### In FFmpeg

```bash
ffmpeg -i bg.png -i rec.mp4 -i chrome.png -filter_complex "[1]scale=1500:-1[r];[0][r]overlay=210:150[a];[a][2]overlay=210:96" -shortest out.mp4
```

### In HyperFrames

```bash
npx hyperframes add browser-device-stage
```
Put the screen recording `<video class="clip">` in the stage's screen slot; animate the stage wrapper for moves.

### In Remotion

```tsx
// npx shadcn@latest add @magicui/safari
<div style={{width:1500}}><Safari url="app.acme.com" videoSrc={staticFile('rec.mp4')}/></div>
// keeps 1203/753 aspect; size it with the wrapper
```

### In CapCut

Add the recording over a gradient background; Video → Basic: Scale 80%, add a rounded Mask; overlay a browser-bar PNG on top.

### Ready-made components

- [Safari](https://skills.varg.ai/component/magicui.safari/) (magic-ui): npx shadcn@latest add @magicui/safari
- [Browser Device Stage](https://skills.varg.ai/component/hf.browser-device-stage/) (hyperframes): npx hyperframes add browser-device-stage

### Where this comes from

- [Magic UI: Safari](https://magicui.design/docs/components/safari)
- [Screen Studio: auto zoom, cursor smoothing, click effects](https://screen.studio/)

## Use when

- Every web product demo; it tells the viewer "this runs in your browser".

## Not for

- Do not use a cluttered browser with tabs, bookmarks and extensions from your own machine.

## Install

- Claude Code: `claude plugin marketplace add vargHQ/skills && claude plugin install varg@varg`
- Codex: `npx skills add vargHQ/skills --skill varg-video-edit-library -a codex -y`
- Cursor: `npx skills add vargHQ/skills --skill varg-video-edit-library -a cursor -y`

## Example output

https://s3.varg.ai/how-to/previews/f0382ac63ae6/lib-magic-ui-safari.mp4 — Preview of the Safari component that builds this take (credit: Captured from the library’s own demo page (Magic UI), https://magicui.design/docs/components/safari)

## More device mockups skills

- [Phone Frame with Live Screen](https://varg.ai/how-to/skills/phone-frame-live-screen.md): A screen recording plays edge to edge inside a realistic phone frame with Dynamic Island.
- [Laptop Lid Opens to Screen](https://varg.ai/how-to/skills/laptop-lid-opens.md): A laptop lid tilts open and the screen content lifts toward the viewer, then becomes the full frame.
- [3D Phone Turn](https://varg.ai/how-to/skills/3d-phone-turn.md): A real 3D phone model turns in space with the app playing on its screen, then faces the camera.
- [Phone, Tablet and Laptop Splay](https://varg.ai/how-to/skills/multi-device-splay.md): Phone, tablet and laptop fan out from one stack into a proud row, each showing the same product.
- [Push Through the Screen](https://varg.ai/how-to/skills/push-through-the-screen.md): A phone rises into view, then the camera pushes through its screen into the full-frame UI.
- [Foldable Two-Screen Reveal](https://varg.ai/how-to/skills/foldable-two-screen.md): A foldable phone opens to show two screens side by side — before and after, or app and result.

## Run the generation on varg

varg is one API key for the models these skills drive — Seedance 2.5, Kling 4, Veo 3.1, Wan 3, Nano Banana 2.1, GPT Image 2.5, ElevenLabs v4 and 200+ more — billed in credits, with a cost estimate before anything runs.

- Claude Code: `claude plugin marketplace add vargHQ/skills && claude plugin install varg@varg` (skill + hosted MCP)
- Codex, Cursor, Gemini CLI, OpenClaw: `npx skills add vargHQ/skills --skill varg-ai -a <agent> -y`
- Grok and any agent that reads SKILL.md: `npx skills add vargHQ/skills --skill varg-ai`, or point it at the skill's SKILL.md
- Claude.ai, ChatGPT, any MCP client: connect `https://mcp.varg.ai/mcp`
- API key: https://varg.ai/dashboard/api · Model specs: https://varg.ai/models/llms.txt
