fpwebview icon indicating copy to clipboard operation
fpwebview copied to clipboard

Free Pascal binding for Webview, a tiny cross-platform library for building modern cross-platform GUIs using web technology

fpwebview

fpwebview is Free Pascal binding for webview, a tiny cross-platform library for building modern cross-platform GUIs using web technology. fpwebview supports two-way Javascript-Pascal bindings: calling Pascal from Javascript, and calling Javascript from Pascal.

Demos

  • simple web browser opening to a specific web site
  • invoking Javascript from Pascal
  • bidirectional Javascript-Pascal calling
  • embedded web server
  • LCL GUI embedding webview and web server

LCL GUI embedding

Getting Started

Binary support files for x86_64 (Linux, macOS, Windows), i386 (Windows) and aarch64 (macOS) are provided with this repo. See the files in the /dll folder.

Linux

% git clone https://github.com/PierceNg/fpwebview
% cd fpwebview/demo/browser_cli
% ./linbuild.sh
<output>
% ./linrun.sh

macOS

% git clone https://github.com/PierceNg/fpwebview
% cd fpwebview/demo/browser_cli
% ./macbuild.sh
<output>
% ./macrun.sh

Windows

C:\> git clone https://github.com/PierceNg/fpwebview
C:\> cd fpwebview\demo\browser_cli
C:\fpwebview\demo\browser_cli> winbuild.bat
<output>
C:\fpwebview\demo\browser_cli> winrun.bat

Copyright and License

Copyright (c) 2022 Pierce Ng. This repo is under MIT license, except for the following:

  • Microsoft's WebView2Loader.dll is distributed as per LICENSE.Microsoft.