No doubt we are in the middle of the mobile revolution. The mobile-first mentality is prevalent. I feel like I see these types of posts every day lately:
While there is an obvious trent towards mobile in the consumer world, there is one place desktop is king: Business.
We are a long way off from getting our work done on mobile devices. Accountants, day traders, developers, and a whole litany of other careers require desktop computing of some sort. I know I sure don’t want to develop apps on my 4″ phone screen. On an ipad maybe if I was traveling, but desktop size increases my productivity and I don’t see many developers dumping their desktops/laptops for ipad only development.
At my current company we develop phone systems for dental offices. I can tell you that desktop computers will be in the dental industry for years to come.
But why run HTML apps on the desktop?
Control the browser – Bundling your app into an executable allows you to dictate what rendering engine (webkit) will be used for your app.
Cross Platform – HTML runs on all operating systems, so it can be much easier to create a cross platform desktop application.
Build once, run everywhere… – I am a huge fan of the build-once-run-everywhere methodology. While it won’t work for some projects, many applications can see a huge benefit to sharing code between the desktop, web, and mobile space.
Window sizing and control – If you want your app to run at a certain size, or do some more advanced things with popups, you get that control on the desktop. Most solutions also provide a way to access the file system and allow other more advanced controls you wouldn’t get with a regular web app.
Here are all the different options I have researched for creating HTML/JS applications on the desktop, with their pros and cons. Please leave comments if you know of other solutions I should look at.
TideSDK has so much potential. They have a great looking website and a good set of tools. Of all the solutions I looked at, TideSDK has the easiest method for packaging your app. You open up the TideSDK builder and choose your HTML files, and click the package button. It runs basic web applications with ease. But then I tried running my first AngularJS app and… FAIL. So I checked the web inspector and saw a litany of errors that I knew didn’t exist when I ran my app in chrome. Turns out the webkit version used in TideSDK is over 3 years old and Angular doesn’t like it. They haven’t had a solid update for a while as well and are pleading for money from the community.
- Great Packaging Tools
- Run PHP, Python, or Ruby code on the “backend” of your app (Awesome!)
- Documentation is thorough with good getting started guides
- No version bumps in a long time
- The webkit version is OLD
- They need more money to keep going
- NodeJS-based makes this pretty simple to get going
- Thousands of cool NodeJS libraries now available to run on the desktop
- Cool features like transparent windows, window dragging, and popups all built in
- No recent updates and appears abandoned
- Enough bugs to make this not production worthy
Along the same lines as appjs, node-webkit is a desktop runtime that combines chromium with NodeJS. This project is also backed by Intel and has regular updates. Packaging apps into Exes is not trivial, however and we had some problems running our more advanced apps on windows (popup windows in particular).
- NodeJS based is awesome
- Backed by Intel, with regular updates
- Webkit and Node run in the same memory space which allows for some cool tricks
- Packaging apps isn’t simple
- Had trouble with popup windows on Windows
Sencha’s solution is not free at almsot $700. It’s webkit version is outdated and it has a very limited feature set for controlling the windows (no transparency, no removing the chrome frame, etc).
- No breakdown. This baby isn’t worth the price, hands down.
The Brackets Shell is a customized version of Chromium Embedded Framework (CEF) that was created to run the Brackets IDE on the desktop. But this shell has some great features and is general enough to allow you to modify it and use it for your own project. Brackets Shell is backed by Adobe and is updated regularly, and they accept pull requests for features that the Brackets IDE might not even use. Building the shell is easy thanks to the bundled Grunt file, and it is using CEF3 so the webkit version is up to date. We went with this solution at my current company and have been loving it. I intend to write a whole post on customizing and using the brackets shell soon.
UPDATE: I wrote a full post on getting started with brackets-shell
- Backed by Adobe, with regular updates and an updated webkit version
- NodeJS was recently integrated into the shell for some awesome new capabilities
- Building and packaging apps is amazingly easy using GruntJS and runs on Windows and Mac
- Lacking some features for customizing the main window, like transparency
- No linux support (yet)
- No HTML5 audio? (sad)
As I see Windows and Ubuntu embracing HTML on the desktop, I can’t help but think the future is bright for desktop apps, even in a mobile first economy.
As always, let me know if you have any comments, corrections, or criticisms.