Skip to content
B

Browser Run

Run code inside a browser from the command line

by juliangruberFree

#3467in Developer Tools
0In stores

Description

browser-run runs code inside a browser environment from the command line, so you can test or run browser code without setting up a page your…

Highlights

  • Runs code in a browser from the command line
  • Electron bundled by default
  • Console output forwarded to the terminal
  • Custom HTML files and static directories
  • Mock back-end routes under /mock

Ratings & Reviews

No ratings yet

Be the first to rate Browser Run.

People also visit

B

Browsercode

Run AI Agent CLIs in your browser

AI
Launch
D

Dev Browser

by Sawyer Hood - A browser-automation plugin/skill

AI Skills
Get
B

browserbase/browserbase-cli

CLI wrapper around the Browserbase platform

AI Skills
Get
P

Pocket Mocker

In-page HTTP controller for frontend development

Developer Tools
Launch
T

terminal-browser

Terminal-based web browser

Utilities
Launch
R

Runno

An open-source sandbox that runs inside and outside the browser

Developer Tools
Launch

Browser Run FAQ

What is browser-run?

A command line tool and Node module for running code in a browser environment, with the page's console output shown in your terminal.

Which browsers can it use?

Electron is the default and is bundled. The README also lists chrome, firefox, ie and safari as options when they are installed.

Can I use my own HTML page?

Yes. Use --input html or the input option. The README says the custom page needs a browser-run script tag above your other scripts so logs reach the terminal.

Can I mock a back end?

Yes. Pass --mock with a file that exports a function taking req and res. It handles requests to paths beginning with /mock.

Can I use it from my own code?

Yes. The run function accepts options such as port, browser, static, mock and input, and returns a duplex stream.

What are the best Browser Run alternatives?

Popular alternatives to Browser Run include Pocket Mocker, Runno and Tape Run. See all Browser Run alternatives

Developer Stuff

Badges