Paul Krill
Editor at Large

Quark taps JavaScript to build ‘native’ desktop apps

news
Jul 23, 20192 mins

Tool combines the Electron framework and a shared JavaScript runtime to create lightweight “sketches” with native app capabilities

row of desktop computers
Credit: Thinkstock

A new open source tool dubbed Quark promises rapid creation of desktop applications with native capabilities while leveraging web development technologies. Built on top of GitHub’s Electron framework for cross-platform desktop apps, Quark is a general purpose tool that leverages JavaScript, CSS, and HTML.

Currently in a beta release stage, with a production release possible next month, Quark uses the Electron JavaScript runtime to produce native-like functionality. The project also includes the Quark development environment, an IDE that emits a single output file called a sketch that provides the capabilities of full-fledged Electron apps.

Thanks to a shared JavaScript runtime, Quark sketches consume only a few kilobytes instead of hundreds of megabytes for the typical Electron app. This is because the runtime accounts for about 99 percent of the weight of an Electron app. As a result, users potentially could have hundreds of sketches on their machine while consuming resources equivalent to a single app. 

Quark creator Nishkal Kashyap calls Quark a sketchbook for native desktop apps and not a desktop app builder. Other features of Quark include:

  • Access to Node.js and Electron renderer process APIs.
  • Sketches are compatible with Mac, Windows, and Linux, with applications able to be written once and run anywhere.
  • Out-of-the-box support is offered for TypeScript, JavaScript, React.js, and Vue.js.
  • The IDE offers a layout intended to maximize space for the editor while leaving enough room to browse and access full context of a project or folder.
  • The Monaco code editor provides IntelliSense, validation, and support for web development technologies. This is the same editor used in Microsoft’s Visual Studio Code.
  • Use of a virtual file system means all code and files created within the IDE are easily shared among projects.
  • The webpack module bundler is used to build projects. The Babel JavaScript compiler is supported, as well.

Where to download Quark

You can download Quark from quarkjs.io.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author