Janet bindings to the webview project. Use an embedded browser view to build UI with minimal dependencies.
To build, one must have janet installed on their system.
So far, these bindings have only been tested on linux, but should work on macos and windows with some debugging.
Use the build.janet script to build the file webview.so
on macos and linux, and webview.dll
on windows.
jpm build
Run a sample application that opens Hacker News with
jpm test
The API pretty closely matches the C API for webview. See the C api for more information.
Create a new webview handle. The options are:
- :title - string
- :width - integer
- :height - integer
- :url - string
- :debug - boolean
- :resizable - boolean
Process on event in a loop. Typical usage looks like
(while (webview/loop my-handle) nil)
Set the title of the webview.
Closes the window.
Exists the webview loop.
Prints a string to the appropriate debug console.
Evaluate some JavaScript inside the webview browser.