You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@vercel/next-browser

Package Overview
Dependencies
Maintainers
388
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/next-browser

Headed Playwright browser with React DevTools pre-loaded

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
287
Maintainers
388
Weekly downloads
 
Created
Source

@vercel/next-browser

Programmatic access to React DevTools and the Next.js dev server. Everything you'd click through in a GUI — component trees, props, hooks, PPR shells, build errors, Suspense boundaries — exposed as shell commands that return structured text.

Built for agents. An LLM can't read a DevTools panel, but it can run next-browser tree, parse the output, and decide what to inspect next. Each command is a stateless one-shot against a long-lived browser daemon, so an agent loop can fire them off without managing browser lifecycle.

Install

pnpm add -g @vercel/next-browser

Requires Node >=20.

Usage

next-browser open http://localhost:3000
next-browser tree
next-browser ppr lock
next-browser push /dashboard
next-browser ppr unlock
next-browser close

Commands

open <url> [--cookies-json <file>]  launch browser and navigate
close              close browser and daemon

goto <url>         full-page navigation (new document load)
push [path]        client-side navigation (interactive picker if no path)
back               go back in history
reload             reload current page
restart-server     restart the Next.js dev server (clears fs cache)

ppr lock           enter PPR instant-navigation mode
ppr unlock         exit PPR mode and show shell analysis

tree               show React component tree
tree <id>          inspect component (props, hooks, state, source)

screenshot         save full-page screenshot to tmp file
eval <script>      evaluate JS in page context

errors             show build/runtime errors
logs               show recent dev server log output
network [idx]      list network requests, or inspect one

License

MIT

FAQs

Package last updated on 06 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts