Dev.Opera - Follow the standards, break the rulesDev.Opera - Follow the standards, break the rules

Login

Lost password?

Unite API Library

The Opera Unite API lets you write Opera Unite services, turning your browser into a Web server. Through the API, you can listen to HTTP requests, serve data, share files and more.

Opera Unite utility libraries

The following list contains several Opera Unite utility libraries that we have made available for you to use in your Opera Unite applications. These libraries contain several reusable functions to save you time and make life easier.

activityStreamGenerator

This file contains an API for publishing to an activity stream (partly based on http://activitystrea.ms/). The resulting stream will be an Atom feed with an activity extension in the "http://activitystrea.ms/spec/1.0/" namespace, which can be used to programatically analyze the feed.

gettext

gettext is a JavaScript implementation of GNU Gettext, providing internationalization support for JavaScript, eg handling .po files.

librariesLoader

This library handles the loading of all your application's external library resources, including making sure all dependencies are present, and that the directory structure is ok.

PSO: Pub-Sub Output

This library provides a simple pub/sub output, which replaces the functionality of opera.postError and allows developers to easily subscribe to the debug outputs they want.

resourcefetcher

resourcefetcher is a class for periodically downloading resources from URLs. You can use it to not only download the resources, but also provide reporting on whether the downloads are successful. You can also set parameters such as the time to wait between making each download request, and the time to wait before you assume a download has failed and give a timeout error.

widgetLocalization

widgetLocalization derives the user agent's locale using the algorithm found in http://www.w3.org/TR/widgets/#step-5--derive-the-user-agents-locale. You can then use the gettext library mentioned above to retrieve and handle the appropriate language files for that locale, if they are available.

Libraries