DEV Community

Cover image for PowerChrome - a chromium-base browser for desktop html/javascript application
Casualwriter
Casualwriter

Posted on • Updated on

PowerChrome - a chromium-base browser for desktop html/javascript application

I had longed for a web browser which has DB connectivity and shell accessibility, so that can develop html/JavaScript application like Electron. PowerChrome comes for this purpose.

PowerChrome is a powerful and portable web browser that uses the Chromium engine to enable fast and easy development of desktop applications using HTML and JavaScript.

PowerChrome provides a natural approach to HTML and JavaScript application development. It allows HTML pages to access the window shell, file system, and database, and provides additional application support through the PowerChrome JavaScript Interface (which runs in sync mode).

Examples of the PowerChrome JavaScript Interface include:

  • Calling notepad.exe: pb.run('notepad.exe')
  • Execute a file: pb.shell('calc.exe')
  • Copy a file: pb.fileCopy(sourceFile, targetFile)
  • Connect to Oracle database: pb.dbConnect('O90', dbParm, dbServer, logID, logPass)
  • Run SQL query (in sync mode): rsStr = pb.dbQuery('select * from tablename')
  • Run a SQL query and convert results to JSON: rs = JSON.parse(pb.dbQuery(sql))
  • Get HTML source of a page (in sync mode): rs = pb.httpSource('https://hacker-news.firebaseio.com/v0/item/160705.json')
  • Popup an HTML dialog: pb.popup('sample-dialog.html', {width: 1024, height: 700})

Features

  • Portable - no installation required
  • Chromium-based - can use Chrome/Chromium for testing and debugging
  • HTML as the application and JavaScript ES6 for programming
  • API that runs in sync mode - no callback or promise objects
  • Works with Powerbuilder for advanced functionality
  • Simple console support
  • Cloud-app enabled
  • Run on Windows 7/8/10/11

Get Started

  1. Download powerchrome-0.60-with-runtime.zip and unzip the all-in-one package.
  2. Run powerchrome.exe.
  3. powerchrome.html will be loaded to demonstrate how PowerChrome works as an HTML desktop application.

screen cap

Please visit github-repo: https://github.com/casualwriter/powerchrome
for more informaiton.

Looking forward to your comments for improvment,
thanks in advanced,

Top comments (0)