Can you do Desktop Development using JavaScript? [closed]
Asked Answered
I

18

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.

Idonna answered 20/9, 2008 at 21:8 Comment(1)
I did this back then: linkEchinoid
I
14

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

Idonna answered 13/12, 2011 at 17:52 Comment(2)
+1: windows 8 is pretty cool!Gaidano
That reminds me of node-webkit (a similar framework for node.js): #8794640Magnificat
B
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.

Benison answered 20/9, 2008 at 21:17 Comment(2)
Instead of Prism you could use Google Chrome and then you could use the built in Google Gears support for offline storage.Shari
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?)Paulus
H
25

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

Hizar answered 20/9, 2008 at 21:9 Comment(0)
M
25

Looks like there are 3 types of html5-desktop app

SDK

Browser runtime

Node.js based

Mcdonald answered 28/10, 2012 at 22:48 Comment(1)
Add electronjs to Node.js basedCiliolate
I
14

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

Idonna answered 13/12, 2011 at 17:52 Comment(2)
+1: windows 8 is pretty cool!Gaidano
That reminds me of node-webkit (a similar framework for node.js): #8794640Magnificat
P
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..."

Persse answered 15/8, 2012 at 5:24 Comment(1)
Node-webkit looks really interesting: it allows you to access node.js libraries directly from a web browser, all in one .html file.Magnificat
D
8

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

Disaccord answered 18/10, 2009 at 5:56 Comment(1)
The Future of Titanium DesktopPersse
D
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.

Decant answered 21/9, 2008 at 12:10 Comment(4)
I forgot about this, I'll have to try it out a little bit more. Thanks!Idonna
It would be nice if it could be compiled too.Idonna
true... maybe under .NET? I haven't tried it tho as I stopped using windows way back, but it may be worth looking upDecant
can't find anything like it in MSDN. Then again, I probably didn't look hard enoughDecant
H
6

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

Hydrometeor answered 20/9, 2008 at 21:35 Comment(0)
U
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.

Universalism answered 8/9, 2012 at 17:33 Comment(1)
AppJS is DeprecatedPole
C
3

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

Canonicals answered 20/9, 2008 at 21:26 Comment(1)
It appears that Google Gears is no longer supported.Magnificat
J
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

Jill answered 29/9, 2012 at 12:31 Comment(6)
This looks very similar to node-webkit (which allows node.js libraries to be used in HTML documents, just like browser-side Javascript.)Magnificat
Yes Node-Webkit looks very promising. Started looking in to it some days ago. Have a look: linkJill
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?)Magnificat
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. linkJill
See also my answer here: linkJill
It is not recommended to use Chrome packaged apps anymore -- see blog.chromium.org/2016/08/from-chrome-apps-to-web.htmlOreopithecus
A
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.

Aurum answered 8/5, 2010 at 7:30 Comment(0)
M
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.

Moratorium answered 4/12, 2010 at 21:10 Comment(0)
R
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.

Roundelay answered 21/12, 2016 at 23:42 Comment(0)
Y
1

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

Yeargain answered 20/9, 2008 at 21:11 Comment(0)
A
1

Script# has extensions for Vista Gadgets.

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

Ambrosine answered 20/9, 2008 at 21:39 Comment(0)
I
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 */

Imperial answered 8/5, 2010 at 7:14 Comment(1)
Can you explain what you mean by "sort-of still need a browser"?Magnificat
P
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.

Persse answered 27/2, 2015 at 21:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.