Commit Graph
140 Commits
Author SHA1 Message Date
Karl Seguin 67927b9bde Add PDF support
adds --dump screen.pdf and CDP's Page.printToPDF (along with IO.read and
IO.read). Builds ontop of https://github.com/lightpanda-io/browser/pull/3231

This generates a text-based PDF, not just our PNG placed into a PDF. The biggest
change to the existing (isolated) code was adding href information so that links
are actually clickable.

Like 3231 the hard parts are all Claude but isolated. The one place it diverged
from the plan was NOT using the subsetter rust crate for trimming the size of
the embedded font. It felt that the dependencies were too much (e.g. a second
version of skrifa, ...). One subsetter was removed, the pdf rendering, while
still a blackbox, was moved from Rust to Zig (pdf.zig), which is kind of nice.
2026-08-28 12:53:36 +08:00
Adrià Arrufat 60c7bbc086 readme: list all agent providers and gateway examples
The agent section still listed the provider set from a few releases ago,
omitting Vercel AI Gateway, Mistral, llama.cpp and OPENAI_BASE_URL-based
OpenAI-compatible endpoints. Add them with examples, plus --list-models.

Prompted by #3290.
2026-08-27 09:18:54 +02:00
Karl Seguin ff5b791b7e wip: screenshot 2026-08-19 21:49:02 +08:00
Karl Seguin ff339f0342 chore: link to our daily wpt results 2026-08-13 20:04:35 +08:00
Adrià Arrufat 78f24b5da5 docs: prefer lightpanda run for replaying scripts
The `run` subcommand is the intended way to replay a recorded
PandaScript (`agent <script>.js` still works, but `run` carries no LLM
options and states the intent). Update the generated script-writing
skill, the recorder doc comment, and the README accordingly.
2026-08-06 13:02:17 +02:00
Adrià Arrufat fb36c20eb5 docs: fix typo in installation command for nightly build 2026-07-13 23:05:46 +02:00
Adrià Arrufat 2c4803b1cf mcp: ensure clean http server shutdown
Track active connections and shut down sockets during deinit to unblock
pending reads. Drain the job queue properly before stopping the worker.
Also fix `--http-port` references to `--port` in docs and errors.
2026-07-13 10:07:37 +02:00
Adrià Arrufat f66f0c191d mcp: add HTTP transport and multi-session support
Introduces an HTTP transport option to serve multipleagents from a
single process. Each connection is routed to its own isolated
browsing session using the `Mcp-Session-Id` header.

Also adds new session management tools (`session_new`, `session_list`,
`session_close`) and refactors the MCP server to support multiple V8
isolates with parking.
2026-07-12 15:27:20 +02:00
Adrià Arrufat ff7545a8c3 agent: add Google Vertex AI support
Supports both express mode (via VERTEX_API_KEY) and project mode
(via GOOGLE_CLOUD_PROJECT and gcloud auth). Handles automatic
OAuth token retrieval and refresh.
2026-07-03 20:23:51 +02:00
Pierre Tachoire b11eb35de7 add LIGHTPANDA_DISABLE_CORE_DUMP desc into README 2026-07-01 09:25:00 +02:00
Pierre Tachoire 208ca4e539 update the README for agent 2026-06-16 17:48:14 +02:00
Francis Bouvier 8824174afa agent: run recorded scripts as JavaScript
Replace recorded agent replay with a standalone JavaScript script runtime.
Install synchronous agent primitives in an isolated V8 context, add console
output, return structured extract values as JS objects/arrays, and route script
execution through the new runtime.

Update recording to emit .js function calls, default /save filenames to .js,
drop script-level extract save support, and refresh agent docs/tutorials for
the new format.

Self-healing is disabled for now.
2026-06-01 15:43:37 +02:00
Adrià Arrufat de00deb899 Merge branch 'main' into agent 2026-05-17 19:13:54 +02:00
willmafh c52356b6d7 chore: lowercase demo word 2026-05-16 20:07:32 +08:00
willmafh c1e64232e5 chore: typo fix 2026-05-16 20:05:52 +08:00
Adrià Arrufat 258d6463e5 Merge branch 'main' into agent 2026-05-12 14:42:29 +02:00
Pierre Tachoire 538f194090 report test options examples from AGENTS to README 2026-05-12 09:30:22 +02:00
Adrià Arrufat b5777ce35c agent: support listing LP_* variables in getEnv 2026-05-11 12:34:36 +02:00
Adrià Arrufat 16b83f5093 agent: add provider auto-detection and --no-llm flag 2026-05-09 19:52:42 +02:00
Adrià Arrufat 7bf69a9a34 agent: remove integrated mcp server
Removes the `--mcp` flag and the internal `task` tool from the agent.
Users should use `lightpanda mcp` for external agent integrations.
2026-05-07 17:12:46 +02:00
Adrià Arrufat a00161f54c Merge branch 'main' into agent 2026-05-05 08:05:57 +02:00
Pierre Tachoire a266ae7c51 README: add hombrew and AUR install 2026-05-04 11:36:52 +02:00
Adrià Arrufat eb14783af7 agent: rename Pandascript to PandaScript and .panda to .lp 2026-04-30 17:29:36 +02:00
Adrià Arrufat 300fdfb34c agent: add MCP server mode with task tool 2026-04-30 17:11:48 +02:00
Adrià Arrufat 5b66a4f227 agent: add agent mode and pandascript documentation 2026-04-30 16:06:47 +02:00
Karl Seguin 2275416505 Page -> Frame
This is to pave the way for introducing a new "Page" container, which will take
over the page lifecycle currently burdening Session. The ultimate goal of that
is to allow the Session to have multiple pages (mostly for better transitions
between pages), which is hard to do now since the Session has so much state.

This rename was aggressive, e.g. currentPage() -> currentFrame() so that, when
the new Page container is added, you won't see "currentPage()" and wonder:

  "Does 'currentPage' mean the new Page container, or the Frame (which
  used to be called Page)".
2026-04-22 08:42:18 +08:00
Matt Van Horn b7ed8447a9 docs: note glibc requirement for Linux release binaries
Closes #2166

The Linux release binary is linked against glibc, so musl-based distros
(Alpine and similar) hit 'cannot execute: required file not found' on
first run because the glibc dynamic linker is missing.

Adds a note to the install section directing Alpine users to a
glibc-based base image or the build-from-sources path.
2026-04-17 09:00:11 -04:00
gujishh 68ca3907ec docs: suggest verifying nightly binary 2026-04-16 15:20:30 +09:00
Pierre Tachoire d2785603f3 Merge pull request #2147 from Gujiassh/docs/windows-wsl-instructions
Clarify Windows WSL installation notes
2026-04-15 10:58:45 -04:00
gujishh b15fc158c2 docs: expand WSL installation guidance 2026-04-15 15:08:53 +09:00
gujishh ea67e41660 docs: match WSL section formatting 2026-04-13 21:09:27 +09:00
gujishh 1923877a74 Clarify WSL install notes 2026-04-13 00:12:43 +09:00
Pierre Tachoire 0905306c79 Add skill link in README 2026-04-09 10:57:25 +02:00
Pierre Tachoire cb3cc9cd8c update benchmark 2026-04-09 10:56:08 +02:00
Pierre Tachoire 2d2b1584cf update contribution and why section 2026-04-09 10:56:08 +02:00
Pierre Tachoire d1883ad211 cleanup README, add MCP 2026-04-09 09:56:39 +02:00
Pierre Tachoire 65151e9a4c README: expose browser on localhost w/ docker 2026-04-07 09:19:57 +02:00
katie-lpd cafa16d190 Update README.md
Updating benchmark text to fit the image
2026-03-30 13:38:46 +02:00
Pierre Tachoire e6d644998a mention CORS is missing in the README's status 2026-03-27 08:26:56 +01:00
Karl Seguin 61dabdedec Support (and prefer) dash-separated command line arguments
--log_level -> --log-level

Underscored arguments are still supported for backwards compatibility.
2026-03-24 12:55:08 +08:00
katie-lpd 08c8ba72f5 Update README.md
Update benchmark images and text to real benchmark over the network
2026-03-23 12:05:44 +01:00
Francis Bouvier e14c8b3025 REAMDE: again references to js-runtime 2026-03-18 16:45:44 +01:00
Francis Bouvier db5fb40de0 README: remove again references to js-runtime 2026-03-18 16:42:31 +01:00
Francis Bouvier 60936baa96 README: remove reference to zig-js-runtime 2026-03-18 16:39:26 +01:00
katie-lpd a70da0d176 Update README.md 2026-03-15 16:57:09 +01:00
katie-lpd 8c52b8357c Update README.md 2026-03-15 16:33:53 +01:00
ireydiak 7c18d857f0 chore: removed gitsubmodules from README and Makefile 2026-02-28 12:36:40 -05:00
Pierre Tachoire 3f92e388be allow insecure TLS when running WPT tests 2026-02-27 10:09:23 +01:00
Pierre Tachoire 24b6934d3b remove WPT specific code
Using both lightpanda-io/wpt and lightpanda-io/demo/wptrunner remove the
need for code specific to run WPT from browser.
2026-02-27 10:09:07 +01:00
Pierre Tachoire 09087401b4 update README examples 2026-02-10 14:35:39 +01:00