Liking cljdoc? Tell your friends :D

com.blockether.spel.driver

External Playwright driver management for native-image builds.

Instead of bundling Playwright's ~600MB Node.js driver in the native binary, this module downloads and caches it on first use.

Cache: ~/.cache/spel/<version>/<platform>/ CDN: https://cdn.playwright.dev/builds/driver/playwright-<version>-<platform>.zip

Configuration (checked in order):

  1. playwright.cli.dir system property — points to pre-installed driver dir
  2. SPEL_DRIVER_DIR env var — overrides cache location
  3. Default: ~/.cache/spel/<version>/<platform>/
External Playwright driver management for native-image builds.

Instead of bundling Playwright's ~600MB Node.js driver in the native binary,
this module downloads and caches it on first use.

 Cache:  ~/.cache/spel/<version>/<platform>/
 CDN:    https://cdn.playwright.dev/builds/driver/playwright-<version>-<platform>.zip

 Configuration (checked in order):
   1. playwright.cli.dir system property — points to pre-installed driver dir
   2. SPEL_DRIVER_DIR env var — overrides cache location
   3. Default: ~/.cache/spel/<version>/<platform>/
raw docstring

driver-ready?clj

(driver-ready?)

Checks if the driver is already extracted and ready to use. Verifies both the Node.js binary and the CLI entry point exist.

Checks if the driver is already extracted and ready to use.
Verifies both the Node.js binary and the CLI entry point exist.
sourceraw docstring

ensure-driver!clj

(ensure-driver!)

Ensures the Playwright Node.js driver is available locally.

Downloads from Playwright CDN on first use (~120MB per platform). Sets the playwright.cli.dir system property so Playwright Java uses the external driver instead of trying to extract from bundled resources.

No-op if playwright.cli.dir is already set (for custom installations).

Ensures the Playwright Node.js driver is available locally.

Downloads from Playwright CDN on first use (~120MB per platform).
Sets the playwright.cli.dir system property so Playwright Java uses
the external driver instead of trying to extract from bundled resources.

No-op if playwright.cli.dir is already set (for custom installations).
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close