Skip to content

Using WebRTC to connect to puppeteer which running on remote server.

License

Notifications You must be signed in to change notification settings

zvirot1/remote-browser

 
 

Repository files navigation

Remote Browser

Using WebRTC to connect to puppeteer which running on remote server.

Notice

This project is still under developing, open issue if you encounter any bug.

Following is known bug:

  • Do not support file download.
  • Bad performance.

Screenshot

duckduckgo

Installation

  1. clone this repo git clone https://github.com/bepsvpt-me/remote-browser.git
  2. run chrome-dependencies-installer.sh as root to install chrome dependencies(only test on Ubuntu 19.10)
  3. run yarn install or npm install to install node dependencies
  4. copy .env.example to .env and setup environment variables

Start Server

Run following command to start server:

xvfb-run -a --server-args="-screen 0 1x1x24 -ac -nolisten tcp +extension RANDR" yarn serve

Daemon

We have provide pm2 ecosystem config file, just follow commands below.

start pm2 instance

./node_modules/.bin/pm2 start ecosystem.config.cjs

save process list

./node_modules/.bin/pm2 save

setup startup script

./node_modules/.bin/pm2 startup

You can find more information from pm2 document.

Resources

License

This project is licensed under GNU Affero General Public License v3.0 only.

About

Using WebRTC to connect to puppeteer which running on remote server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.4%
  • HTML 8.8%
  • CSS 7.7%
  • Shell 2.1%