Yahoo on Monday released an open-source web application framework called Mojito that aims to make it faster for developers to write apps that can run on all major device platforms, including smartphones, PCs, iOS and Android.
While web app frameworks are nothing new, Yahoo claims Mojito is different because it addresses the problem of delivering content to devices that have weak or intermittent connections, said Bruno Fernandez-Ruiz, chief architect with Yahoo’s platform technology group.
Developers use Mojito to write apps using Javascript, HTML and CSS that can run both on the client, using an embedded Javascript engine, and on the server, using the emerging Node.js platform. That means that if bandwidth is limited, an app can switch between rendering on the client and rendering on the server, providing a better experience for the user, Fernandez-Ruiz said.
Yahoo announced Mojito in November and is making the code available to developers this week under an open-source BSD license. It positions Mojito as a way to free developers from what it calls “closed, proprietary” platforms such as Apple’s iOS, and from having to choose which platform to develop for.
It sees Mojito being used primarily by publishers to deliver newspapers and magazines, and for interactive ads. Yahoo has released a few Mojito apps to show what it can do, including Livestand, an iPad app for reading articles from various sources.
It’s part of a wider Yahoo project called Cocktail, to build a web presentation platform for devices. The Cocktail project also includes Manhattan, a Yahoo-hosted server environment based on Node.js where developers will be able to host their applications.
Yahoo is opening Manhattan to a small group of Javascript developers this week, and it will be made more widely available “when it’s ready,” Fernandez-Ruiz said. Developers can also deploy Mojito apps in any other environment that supports Node.js, such as Amazon Web Services, he said.
Yahoo has struggled to compete with Google and to return to the Internet leadership position it once held. It’s had several changes of leadership and is frequently rumoured to be a takeover target. That could make developers wary of jumping on board a new platform from the company.
But Fernandez-Ruiz argued that developers can have confidence in the project because it is open source. Should Yahoo’s support for Mojito ever waver, the code would still be available for development, he noted.
Mojito was due to be available Monday from the GitHub open-source repository at github.com/yahoo/mojito.