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.10"(default, derived from:version) or"nightly"to track the nightly build.:url- the base URL template to download the binary from. Defaults toLightpanda.default_base_url/0. Supports the placeholders$versionand$target(e.g."https://my-mirror.example.com/lightpanda/$version/lightpanda-$target").:version_check- set tofalseto skip the boot-time check that warns when the installed binary's version doesn't match the configured:version. Defaults totrue.
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.
Returns the default URL template used to fetch the binary.
Ensures the Lightpanda binary is installed.
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.
Returns the default URL template used to fetch the binary.
Supports the $version and $target placeholders. Configure via
config :lightpanda, :url, "..." to redirect downloads at a mirror
or local cache.
Ensures the Lightpanda binary is installed.
Concurrent callers are deduplicated via Lightpanda.Installer so
that parallel install_and_run/2 invocations (or Lightpanda.Server
startups) only download once.
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").