Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin system #388

Open
pspsdev opened this issue Jan 28, 2025 · 1 comment
Open

plugin system #388

pspsdev opened this issue Jan 28, 2025 · 1 comment
Assignees

Comments

@pspsdev
Copy link

pspsdev commented Jan 28, 2025

At current state it's very hard to use it, because one single unimplemented api can break everything. Would it be feasible to somehow have a plugin system so that user himself can write code to return response to web api. Such as window.atob just run it with any language and return it via some http/ws api or something else. This would also be useful if user would want to change how specific web api works compared to official lightpanda implementation.

@krichprollsch krichprollsch self-assigned this Jan 28, 2025
@krichprollsch
Copy link
Member

krichprollsch commented Jan 28, 2025

Hello @pspsdev,

Thanks for your issue.

First I do think the better way to improve the API Support is to implement web APIs directly in the browser itself.
It would benefit to everyone.

This can be achieve via pure Zig implementation (example for window) or we can also load pure javascript implementation (used for fetch).

This would also be useful if user would want to change how specific web api works compared to official lightpanda implementation.

I agree. I guess the simplest way to achieve that would be to allow users to pass a list of javascripts files to load at startup.
But you can also do that already via CDP: executing JS in the env before loading a web page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants