73

I know there's JScript.NET, but it isn't the same as the JavaScript we know from the web.

Does anyone know if there are any JavaScript based platforms/compilers for desktop development? Most specifically Windows desktop development.

1
  • I did this back then: link Commented Mar 1, 2016 at 11:56

18 Answers 18

26

There is XULRunner, which let's you build GUI apps like Firefox using JavaScript and XUL. It has a lot of extension to JavaScript though, using XPCOM. They also offer Prism which let's you build web apps that work offline, sort of like AIR. Yahoo uses it for their Zimbra email desktop client.

Sign up to request clarification or add additional context in comments.

2 Comments

Instead of Prism you could use Google Chrome and then you could use the built in Google Gears support for offline storage.
I was so excited to find XULRunner a couple of years ago, but then found out that it doesn't support any of the abilities firefox has for DOM manipulation and other stuff I'd expected to get (I don't remember what else it didn't have, maybe AJAX?)
25

Yes, with Adobe AIR. Adobe AIR lets you make desktop applications with Javascript, Flex, or Flash.

Comments

25

Looks like there are 3 types of html5-desktop app

SDK

Browser runtime

Node.js based

1 Comment

Add electronjs to Node.js based
14

Windows 8 allows for Windows Store Apps to be written in HTML5/JavaScript.

2 Comments

+1: windows 8 is pretty cool!
That reminds me of node-webkit (a similar framework for node.js): stackoverflow.com/questions/8794140/…
9

"node-webkit is an app runtime based on Chromium and node.js. You can write native apps in HTML and Javascript with node-webkit. It also lets you call Node.js modules directly from the DOM..."

1 Comment

Node-webkit looks really interesting: it allows you to access node.js libraries directly from a web browser, all in one .html file.
8

There's Titanium Developer which is similar to Adobe AIR (html+css+javascript), but does not require a framework to be pre-installed.

1 Comment

7

You can make a desktop application using XML and javascript (and/or VBS) using the Windows Script host.

The trick is to save your XML file with a .hta extension. See this reference.

4 Comments

I forgot about this, I'll have to try it out a little bit more. Thanks!
It would be nice if it could be compiled too.
true... maybe under .NET? I haven't tried it tho as I stopped using windows way back, but it may be worth looking up
can't find anything like it in MSDN. Then again, I probably didn't look hard enough
6

There's SpiderMonkey, a JavaScript engine written in C and Rhino, an implementation of JavaScript in Java.

Comments

5

Try AppJS, It is an SDK on top of NodeJS and Chromium Embedded Framework. You can build desktop apps easily with the web technologies.

1 Comment

AppJS is Deprecated
3

Google Gears. There's also Mozilla's XUL, but it's too bit complicated, IMHO (albeit extremely powerful).

1 Comment

It appears that Google Gears is no longer supported.
3

Google has a new interesting technology going on. It's in a quite early stage but works good already. It's called Packaged Apps and is using Chrome as a runtime and works on both Pc and Mac. Have a look at http://developer.chrome.com/apps/about_apps.html

6 Comments

This looks very similar to node-webkit (which allows node.js libraries to be used in HTML documents, just like browser-side Javascript.)
Yes Node-Webkit looks very promising. Started looking in to it some days ago. Have a look: link
I'm familiar with node-webkit already, but does "Packaged Apps" allow node.js functions to be used in the HTML DOM (like node-webkit?)
No it doesn't as far as I know. I found this project on Github but it's not much there yet. link. This might be something too, haven't checked yet. link
See also my answer here: link
|
2

Another option I didn't see mentioned is for Cocoa (Mac OS X, iPhone OS) applications you can use a web view (embedded WebKit) as the application UI.

Comments

2

You can try JavaLikeScript, it does not provide the same native/root objects that a web browser but it has network and user interface features.

Comments

2

Electron, originally Atom Shell, allows applications to be written in web technologies (HTML, JS, CSS) and run on any of the major operating systems, including Windows.

Comments

1

There's Yahoo's Konfabulator for the windows desktop.

Comments

1

Script# has extensions for Vista Gadgets.

http://projects.nikhilk.net/ScriptSharp/

Comments

0

Here are some JSOS (Javascript Operating Systems), sort-of still need a browser.

http://fractalbrain.net/ /* The Best. */

http://cometdesktop.com/ /* Alright. */

http://skylightproject.com/ /* Worst */

1 Comment

Can you explain what you mean by "sort-of still need a browser"?
0

I answered with node-webkit above, but I recently saw a presentation on Tint2. It seems to address security concerns with node-webkit and looks promising.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.