[ANN] Another library to develop desktop apps with HTML5/CSS/JS

306 views
Skip to first unread message

Morteza Milani

unread,
Apr 27, 2012, 4:16:39 PM4/27/12
to nod...@googlegroups.com
Hi,

Using AppJS you can create desktop applications with familiar
technologies: HTML5/CSS/JS. It uses CEF ( chromium embedded framework
) and it's cross platform ( or is going to be! ).

I tried to provide a nice API to work with. Here is an example:

var appjs = require('appjs');

var window;
// Initialize appjs.
var app = appjs.init();

// Called when page load finishes.
app.on("ready",function(){
console.log("Event Ready called");

// Runs a script in browser context.
window.runInBrowser(function(){
var body = document.body;
body.style.color="#f60";
});

// Show created window ( see below )
window.show();
});

// Called when webview needs to load
// a resource of type appjs://
app.on("route",function(req,callback){
// req.url and req.method are available
if(req.url == "appjs://app/") {
callback("text/html",
"<html>\
<head><title>Hello world</title></head>\
<body>Hello World</body>\
</html>");
}
});

// Creates a new window. Its invisible until window.show() get called.
window = app.createWindow({entryPoint:"appjs://app/",autoResize:false});

There are still works to do:
* Implementing platform specific codes for Mac and Windows.
* Implementing a good router like ExpressJS router.
* Separating Node thread from UI thread.
* Implementing DOM listeners etc.

If you like AppJS, help me to improve it;)
If you have any idea let me know.

Morteza Milani

unread,
Apr 27, 2012, 4:23:46 PM4/27/12
to nod...@googlegroups.com
Forgot repo address:D 

futjikato

unread,
May 11, 2012, 3:20:29 PM5/11/12
to nod...@googlegroups.com
Looks highly interesting.
I´ll keep an eye on that project :-)

Morteza Milani

unread,
Jun 2, 2012, 2:51:28 PM6/2/12
to nod...@googlegroups.com
Hey!

AppJS supports Windows now. Going to support Mac OS too.

Elijah Insua

unread,
Jun 2, 2012, 5:59:21 PM6/2/12
to nod...@googlegroups.com
Looks good! How did you build the windows/linux cef binaries?

-- Elijah

On Sat, Jun 2, 2012 at 11:51 AM, Morteza Milani <firebo...@gmail.com> wrote:
Hey!

AppJS supports Windows now. Going to support Mac OS too.

--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Morteza Milani

unread,
Jun 2, 2012, 6:07:08 PM6/2/12
to nod...@googlegroups.com
> Looks good! How did you build the windows/linux cef binaries?

Thanks! What do you mean by how? I built linux libraries with chroot lucid 32bit and precise 64bit. Brandon Benvie built Windows binary and passed them to me:) Looking for someone to build it for Mac OS X! Revision 1.1099.611
Reply all
Reply to author
Forward
0 new messages