Logo

Termux-Playwright

v1.61.3 (Dual Engine)
PyPI (Python) npm (Node.js) 💖 Sponsor GitHub Repository

Dual-Engine Installation Guide (Python & Node.js)

Deploying Playwright on Android Termux requires native system packages and patched platform driver files.

⚡ 1-Line Quick Installation

🐍 Python (pip):

pip install termux-playwright && termux-playwright-install

☕ Node.js / TypeScript (npm):

npm install termux-playwright && npx termux-playwright install

🐍 Python Edition: Step-by-Step Manual Setup

Step 1: Install Termux System Packages

pkg update -y && pkg install -y   python   python-pip   python-greenlet   chromium   nodejs-lts   procps   termux-api

Step 2: Create Python Virtual Environment (If using venv)

Virtual Environment Requirement

When creating a venv on Termux, you MUST pass --system-site-packages so Python can access pre-compiled C-extensions (python-greenlet):

python -m venv --system-site-packages myenv
source myenv/bin/activate

Step 3: Install Package from PyPI

pip install termux-playwright

Step 4: Execute Core Patcher & Diagnostics

termux-playwright-patch
termux-playwright-doctor

☕ Node.js / JavaScript Edition: Step-by-Step Setup

Step 1: Install Node.js & Chromium via Termux pkg

pkg update -y && pkg install -y chromium nodejs-lts termux-api

Step 2: Install termux-playwright from npm

npm install termux-playwright

Step 3: Run Node.js Diagnostic Doctor

npx termux-playwright doctor