PowerChrome is a portable chromium-base web browser to enable fast and easy development of desktop applications using HTML and JavaScript.
With PowerChrome, you can quickly and easily write and run your own desktop applications, providing a seamless user experience for your users.
HTML is great for UI, and JavaScript is awesome for coding. However, developing web-base program for desktop is somehow frustrated experience as web browser revoke all accessibility of local resources. End-user will not understand why your program cannot access printer, open a file, run another program or access database. You are hacking problems with hands and legs tied up.
I had longed for a web browser which has DB connectivity and OS accessibility, so that can coding JavaScript/HTML/CSS application like Electron. so thankful that have chance to make one.
PowerChrome provides a natural approach to HTML and JavaScript application development.
It enables HTML pages to access the window shell, file system, and database, and provides
additional application services by PowerChrome JavaScript Interface in sync mode.
For example,
pb.run('notepad.exe')pb.shell('calc.exe')pb.fileCopy(sourceFile, targetFile)pb.dbConnect('O90', dbParm, dbServer, logID, logPass)rsStr = pb.dbQuery('select * from tablename')rs = JSON.parse(pb.dbQuery(sql))rs = pb.httpSource('https://hacker-news.firebaseio.com/v0/item/160705.json')pb.popup('sample-dialog.html', {width: 1024, height: 700})powerchrome.exe.powerchrome.html will be loaded to demonstrate how PowerChrome works with an HTML desktop application.PowerChrome loads the startup page using the following sequence:
/app={startup.html}start={startup.html}index.htmlpowerchrome.htmlAfter the page is loaded, powerchrome.js will be imported to initialize the interface,
then call the JavaScript function onPageLoaded().
To start coding, simply create an index.html file and write your code in any text editor.
The following files are included in the downloaded package powerchrome-0.62-with-runtime.zip
| File Name | Deploy | Description |
|---|---|---|
| powerchrome.exe | yes | PowerChrome program |
| powerchrome.js | yes | JavaScript interface |
| powerchrome.ini | no | INI config file (optional, recommended for development only) |
| powerchrome.html | no | Default HTML program. it is API quick reference |
| powerchrome.pbl | no | Source code of Powerbuilder (2019R3) |
| sample*.* | no | Sample files (HTML and MS Access Database) |
| *.dll | yes | Powerbuilder-Runtime Libraries |
| .pbcef | yes | chromium (cef) |
PowerChrome is a single execution file (powerchrome.exe), only powerchrome.exe, powerchrome.js
and Powerbuilder-Runtime are required. The other files are optional or depends on usage.
powerchrome.exe /app={startup.html} /fullscreen /script={interface.js} /save={name.html} /save={name.pdf} /select={selector}
/app={startup.html} or /url={startup.html}/fullscreen or /kiosk/script={interface.js}/url={link} /save={name.html} /css=selector/url={link} /save={name.pdf}PowerChrome will run in cloud-mode when the startup link start with https:// or http://.
In cloud mode, PowerChrome-JavaScript-Interface is available for the URL in SAME DOMAIN.
for example, run chromechrome.exe for web-application:
powerchrome.exe /app=https://casualwriter.github.io/powerchrome/powerchrome.html
API will only available for URL start with https://casualwriter.github.io/powerchrome/.
If navigate to another domain, PowerChrome works like normal chromium browser.
still working on Documentation at https://casualwriter.github.io/powerchrome