Over a million developers have joined DZone.

Jaggery.js: The Delicious Javascript Framework

DZone's Guide to

Jaggery.js: The Delicious Javascript Framework

· Java Zone ·
Free Resource

Get the Edge with a Professional Java IDE. 30-day free trial.

Why JavaScript ?

There is no denying that since its inception in the mid 90’s, JavaScript has become one of the most popular Web development languages. So it has become the top language due to its ability to deliver rich, dynamic web content, its relatively lightweight and its high ease of use. In recent years, we’ve seen its continued evolution beyond the desktop to areas such as mobility and server-side web applications. There are strong odds in favor of JavaScript becoming the dominant language of the enterprise. This isn’t to say every other language will atrophy overnight, (They won’t!) but legacy systems count on them for sure. So yet a revolutionary, a simple, open language, equally adapted to building both client and server-side apps? There’s no such thing as technology perfection, but JavaScript looks like the next best thing.

A modern web application invariably includes a significant client-side Javascript component. Why then are we using a completely separate language for server-side programming? You don’t have to switch our brain here and there, now we can use Javascript for server-side-programming! For an example, Node.js which is based on Google’s V8 JavaScript engine, works wonders. I’m directing this post towards another revolutionary server-side Javascript framework called "jaggery.js". Jaggery uses Javascript as the server-side programming language, the obvious choice for simplification. Let’s get on with it, shall we ?


Jaggery is a framework to write web apps and HTTP-focused web services for all aspects of the application: front-end, communication, server-side logic and persistence in pure Javascript. One of the intents of this framework is to reduce the gap between writing web apps and web services. Importantly, Jaggery is open-source and released under Apache 2.0. if you interested to read the full manifesto read it from here .

Enough said, here’s a simple example, a step beyond the basic hello world to help you get a sample of Jaggery’s core implementations. Enjoy. :)

var jsonString = '{"name":"Pubudu","company":"WSO2"}';

You can try the above code on Jaggery-Tryit . Download jaggery framework form the parent site and do your experiments, here are a few sample implementations which helps you to learn in depth about what jaggery can do.

Cheers, Happy Coding.



[2] http://jaggeryjs.org/

[3] http://wso2.com/library/webinars/2012/05/wso2-product-release-webinar-introducing-jaggery-serverside-javascript-framework-composing-web-app/

Get the Java IDE that understands code & makes developing enjoyable. Level up your code with IntelliJ IDEA. Download the free trial.


Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}