Yahoo! has open source Mojito, a framework for creating reusable widgets incorporated in various web applications and executed either on the client or the server-side without code change.
Mojito is a presentation-centric framework. The basic element is a Mojit – a Mojito widget, an MVC component that can be deployed as part of different web applications. When creating a Mojito-based app, developers will be able to put together widgets created by other developers. One example of such an app is Yahoo! OMG where each component of the page is such a widget. Before being rendered, the widgets are skinned to take the desired look and feel. One could imagine even a market for such widgets in the future.
One of the essential characteristics of Mojito is that widgets are device agnostic. Mojits can be displayed on any desktop or mobile device with a major browser, while their controller code can be executed either on the client or on the server on top of Node.js. So, developers don’t need to write separate code for the client and the server, the same code being runnable on either side.
Yahoo! wants to enhance Mojito further to introduce mechanisms that transparently switch code execution between the client and the server as the need arises. For example, if a device is too slow for certain processing, the code will be sent for execution on the server without having to be specified by the developer or having the user interact with the app.
Mojito runs on top of YUI3 which is used for dependency management, but Mojito is not bound to YUI3, and it can run on top of jQuery or DOJO. YUI3 has been chosen because it runs on any major browser and also on Node.js.
York Xyander, Bodo Junglas Jul 31, 2015