Lightpanda is an installer and runner for the Lightpanda headless browser.
Configuration
Configure in your config/config.exs:
config :lightpanda,
version: "0.2.9",
default: [
args: ~w(serve --host 127.0.0.1 --port 9222)
]Global options
:version- the expected lightpanda version.:path- the path to the lightpanda binary. By default it is automatically downloaded and placed inside the_builddirectory.:release- which release to track. Either a version string like"0.2.9"(default, derived from:version) or"nightly"to track the nightly build.
Profiles
Each profile accepts:
:args- arguments to pass to the lightpanda binary.:cd- the working directory.:env- environment variables as a map of string key/value pairs.
Summary
Functions
Returns the path to the Lightpanda binary.
Returns the version of the installed Lightpanda binary, or nil if not found.
Returns the configured version of the Lightpanda binary.
Installs the Lightpanda binary.
Installs the binary if missing, then runs it with the given profile and extra arguments.
Returns the latest known version of the Lightpanda binary.
Runs the Lightpanda binary with the given profile and extra arguments.
Returns the platform target string (e.g., "aarch64-macos").
Functions
Returns the path to the Lightpanda binary.
Returns the version of the installed Lightpanda binary, or nil if not found.
Returns the configured version of the Lightpanda binary.
Installs the Lightpanda binary.
Installs the binary if missing, then runs it with the given profile and extra arguments.
Returns the exit status.
Returns the latest known version of the Lightpanda binary.
Runs the Lightpanda binary with the given profile and extra arguments.
Returns the platform target string (e.g., "aarch64-macos").