Boscop / Boscop/web-view

Bind Function Binding

Open
#236 2 comments 6 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2k
Forks
179
PR merge metrics
No merged PRs in 30d

Description

Has any consideration been given to the possibility of adding a binding for the webview bind function similar to the one for go?

For example, in go it is possible to write something like this:

`w.Bind("process", func(foo string, bar string) {
...
})`

and in the javascript write something like this:

`process(foo, bar);
`

without using external.invoke or rpc.

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files or tests are named in the issue. Start by tracing the existing webview bind function and the external.invoke or RPC paths, then compare the Go Bind example with the requested JavaScript call shape. Done means a documented, tested binding approach that supports direct JavaScript calls without those mechanisms.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, javascript, rust
Domain
api, desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.