Skip to main content

deno_webview

license stars ci GitHub Releases

Still in a very early stage of development. Lots of stuff to do and not even the basics are really implemented yet (apart from opening a webview window). deno_webview uses the rust bindings for zsergeโ€™s webview.

Example image

Example

Run the following with the -A flag enabled to get the example shown above:

import { WebView } from "https://raw.githubusercontent.com/eliassjogreen/deno_webview/master/mod.ts";

const webview = new WebView({
    title: "Hello world",
    url:
        "data:text/html," +
        `
    <html>
    <body>
      <h1>Hello from deno</h1>
    </body>
    </html>
    `
});

webview.run();

Todo

  • Implement all most webview instance methods
  • Two-way deno bindings (to call deno from javascript)
  • Multiple windows?
  • Easier importing of scripts, images and css
  • Dialog
  • DialogBuilder and WebViewBuilder
  • Examples
  • Tests
  • Wait for the rust bindings to update to the latest webview version.
    • Polyfill for new API?
  • Docs