Skip to main content

browser

browser — ɳSelf documentation.

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

nself license set nself_pro_xxxxx...
nself plugin install browser

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

Env VarDefaultDescription
BROWSER_PORT3716Browser service port
BROWSER_POOL_SIZE3Number of browser instances
BROWSER_TIMEOUT30sMax time per browser task
BROWSER_MAX_CONCURRENT10Max concurrent requests

Ports

PortPurpose
3716Browser service REST API

Database Tables

2 tables added to your Postgres database:

  • np_browser_sessions: browser session log
  • np_browser_results: cached task results

Nginx Routes

RouteTarget
/browser/Browser automation API

API

POST /screenshot: Capture page screenshot
POST /scrape: Extract page content
POST /pdf: Generate PDF from URL or HTML
POST /execute: Run JavaScript in browser context
POST /extract: Extract structured data with CSS selectors