[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116787":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":28,"updatedAt":29,"readmeContent":30,"aiSummary":10,"trendingCount":16,"starSnapshotCount":16,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},116787,"screen-relay","vercel-labs\u002Fscreen-relay","vercel-labs","Upto 120 fps, low latency desktop streaming for humans and AI agents","https:\u002F\u002Fscreen-relay.dev",null,"C++",391,21,216,1,0,20,99,139,93.93,"Apache License 2.0",false,"main",true,[26,27],"ai","streaming","2026-11-23 18:21:48","2026-11-23 20:46:45","# screen-relay\n\nDesktop streaming and control for humans and AI agents: watch a desktop in a browser, and click, type, and take screenshots from the shell.\n\n\u003Cp>\n  \u003Ca href=\"https:\u002F\u002Fvercel.com\u002Flabs#active-experiments\">\u003Cimg alt=\"Vercel Labs Experiment\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLABS-EXPERIMENT-0a0a0a.svg?style=for-the-badge&amp;logo=Vercel&amp;labelColor=000000\" height=\"28\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fscreen-relay\">\u003Cimg alt=\"npm version: screen-relay\" src=\"https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Fscreen-relay.svg?style=for-the-badge&amp;labelColor=000000\" height=\"28\">\u003C\u002Fa>\n  \u003Ca href=\"LICENSE\">\u003Cimg alt=\"License: Apache-2.0\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLICENSE-APACHE--2.0-97ca00.svg?style=for-the-badge&amp;labelColor=000000\" height=\"28\">\u003C\u002Fa>\n\u003C\u002Fp>\n\nscreen-relay starts a desktop on a Linux VM, sandbox, or container, or attaches to the display of a Mac or the signed-in desktop of a Windows PC, and streams it to a browser as H.264. An agent controls the same desktop one command at a time: it takes a screenshot, clicks or types, and takes another screenshot to check the result. The `screen-relay` CLI, a Node SDK, and an HTTP and WebSocket API all reach the same session.\n\n## Install\n\n```bash\nnpm install -g screen-relay\nscreen-relay install            # system packages and the engine build (first time only)\n```\n\n- **Requirements:** Node 22 or newer. On Linux: Debian, Ubuntu, Fedora, Arch Linux, or Alpine. On macOS: Homebrew and the Xcode Command Line Tools. On Windows: Windows 10 or later on x64, with a user signed in at the PC's screen.\n- **Scripts and agents:** `screen-relay install --yes` skips the confirmation. At a terminal, `install` asks before it installs packages.\n- **Wayland:** `screen-relay install --backend wayland`. The default backend on Linux is X11.\n- **Client only:** the npm install alone is enough to control a session on another machine.\n\nRequirements, backends, and Windows are covered in [Getting started](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Fgetting-started).\n\n## Quick start\n\n```bash\nscreen-relay up -d                    # start a display, a desktop, and the engine\nscreen-relay run -- xfce4-terminal    # open an app on the desktop\nscreen-relay screenshot screen.png    # see the screen\nscreen-relay click 0.5 0.5            # coordinates are fractions of the screen\nscreen-relay type \"echo hello\"\nscreen-relay key Enter\nscreen-relay down\n```\n\n- `up` prints a viewer link. Open it in a browser with H.264 WebCodecs: current Chrome, Edge, or Safari.\n- The engine listens on `127.0.0.1:8080`. From another machine, forward the port with `ssh -N -L 8080:127.0.0.1:8080 user@your-vm`, or see [Remote access](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Fremote-access).\n- On a machine that is not set up yet, `up` runs the same setup as `install` first.\n- A successful input command means the engine applied the input, not that the app reacted. Take a screenshot to check.\n\nThe full walkthrough is in [Getting started](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Fgetting-started).\n\n## How it works\n\n`screen-relay up` starts a session: a virtual display, a desktop, and the engine. On Linux the display is X11 with XFCE or headless Wayland with sway. On a Mac the engine attaches to the display you are logged in to. On Windows it attaches to the desktop of the signed-in user. The engine captures the screen, encodes it as H.264, and serves the viewer, the stream, and the input API on one port. It lowers the bitrate on a slow link. See [How streaming works](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Fhow-streaming-works).\n\nA session listens on loopback with no token by default. Starting it with `--public` or on another address creates a token that every remote request must send. There is one input owner at a time. A viewer that opens when input is idle gets control. If another viewer or an SDK session owns input, the new viewer opens view-only. Choose **Take control** to transfer input to your viewer, or **Release control** to keep watching without owning input. Screenshots still work while another controller holds input.\n\n## For AI agents\n\nThe CLI ships skills that match its version:\n\n```bash\nscreen-relay skills get core           # the control loop, coordinates, type versus key, and errors\nscreen-relay skills get core --full    # adds every reference: CLI, config, SDK, macOS, Wayland, troubleshooting\nscreen-relay skills list               # specialized skills, such as vercel-sandbox\n```\n\nOr add this to your `AGENTS.md`:\n\n```markdown\nUse `screen-relay` to see and control a desktop. Before the first use, run\n`screen-relay skills get core` and follow it.\n```\n\nEvery command prints JSON with `--json`. An error carries a `reason` and, when there is one, the next command to run.\n\n## Commands\n\nRun `screen-relay --help` for the full list, or `screen-relay \u003Ccommand> --help` for one command.\n\n| Group | Commands | Docs |\n|---|---|---|\n| Session | `up`, `down`, `status`, `logs`, `run` | [CLI reference](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Fcli) |\n| Control | `screenshot`, `click`, `move`, `scroll`, `key`, `type`, `input` | [Client commands](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Fcli#client-commands) |\n| Setup | `install`, `doctor` | [Getting started](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Fgetting-started), [Troubleshooting](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Ftroubleshooting) |\n| Agents | `skills`, `help` | [Agent skills](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Fagent-skills) |\n\nFlags, environment variables, and `config.yaml` are documented in [Configuration](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Fconfiguration).\n\n## Platforms\n\nThe engine runs on Linux (x64 and ARM64, X11 and Wayland), on macOS 12.3 or later (Apple silicon and Intel), and on Windows 10 or later (x64). `screen-relay install` builds it on your machine. See [Linux](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Flinux), [macOS](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Fmacos), and [Windows](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Fwindows).\n\n## Development\n\nBuilding from source requires Node.js 22 or later, a C++17 compiler, `make`, and the libraries that `screen-relay install` installs:\n\n```bash\nnpm ci\nnpm run build                   # the CLI, the SDK, and the viewer\nmake                            # the engine, for the default backend\nnpm test\n```\n\nRun the engine tests with `make test`, which also needs the FFmpeg development libraries.\n\n[CONTRIBUTING.md](CONTRIBUTING.md) covers the source layout, the engine, and the tests. [AGENTS.md](AGENTS.md) covers the writing rules and the release process.\n\n## Documentation\n\n- [screen-relay.dev](https:\u002F\u002Fscreen-relay.dev): introduction, guides, and reference\n- [CLI reference](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Fcli) and [Configuration](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Fconfiguration)\n- [Node SDK](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Fsdk) and [HTTP API](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Fprotocol)\n- [Remote access](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Fremote-access): tokens, TLS, and tunnels\n- [Docker](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Fdocker) and [Vercel Sandbox](https:\u002F\u002Fscreen-relay.dev\u002Fdocs\u002Fvercel-sandbox)\n- [Changelog](CHANGELOG.md)\n\n## License\n\nApache-2.0. The engine links x264, which is licensed under GPL-2.0-or-later, from your system when `screen-relay install` builds it. The prebuilt engine in the Vercel Sandbox image links x264, so it is distributed under GPL-3.0 ([LICENSES\u002FGPL-3.0.txt](LICENSES\u002FGPL-3.0.txt)). See [THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md).\n",2,"2026-11-24 04:54:10","CREATED_QUERY"]