browser
هذا المحتوى غير متوفر بلغتك بعد.
Browser Plugin
Section titled “Browser Plugin”Headless Chromium pool for screenshots, scraping, PDF generation, and JS execution. Pro plugin.
Requires: Basic license tier or higher.
nself license set nself_pro_...
Install
Section titled “Install”nself license set nself_pro_xxxxx...nself plugin install browserWhat It Does
Section titled “What It Does”Runs a managed pool of headless Chromium instances accessible via a REST API. Capture screenshots, scrape JavaScript-rendered pages, generate PDFs, run arbitrary JS in a sandboxed browser context, and extract structured data from web pages. Sessions are isolated and cleaned up automatically after each task.
Configuration
Section titled “Configuration”| Env Var | Default | Description |
|---|---|---|
BROWSER_PORT | 3716 | Browser service port |
BROWSER_POOL_SIZE | 3 | Number of browser instances |
BROWSER_TIMEOUT | 30s | Max time per browser task |
BROWSER_MAX_CONCURRENT | 10 | Max concurrent requests |
| Port | Purpose |
|---|---|
| 3716 | Browser service REST API |
Database Tables
Section titled “Database Tables”2 tables added to your Postgres database:
np_browser_sessions: browser session lognp_browser_results: cached task results
Nginx Routes
Section titled “Nginx Routes”| Route | Target |
|---|---|
/browser/ | Browser automation API |
POST /screenshot: Capture page screenshotPOST /scrape: Extract page contentPOST /pdf: Generate PDF from URL or HTMLPOST /execute: Run JavaScript in browser contextPOST /extract: Extract structured data with CSS selectors