Google Gears is an open source browser extension that lets developers create web applications that can run offline. It allows developers to enhance their AJAX applications to be able to run even when their users are offline. Basically web applications using GEAR’s API will benefit from this feature. To be able to understand fully how this new product will help developer’s enhance their web application here’s a few sample GEAR driven demo sites provided by Google:
Note: You must install Google Gears to use these samples.
For real world application Google Gears consists of three modules that address the core challenges in making web applications work offline.
LocalServer
- cache and serve application resources (HTML, JavaScript, images, etc.) locally
Database
- store data locally in a fully-searchable relational database
WorkerPool
- make your web applications more responsive by performing resource-intensive operations asynchronously
Currently Google Gear is supported on Firefox 1.5+ and Internet Explorer 6.0+ browsers. A tutorial for enabling static files to work offline using Gears is provided. This will get you started working on how the API works.
Google Reader is one of Google’s Product which already uses Google Gear API, below are screenshots of Google Reader using Gear in action:
1. When signing-in on your Google Reader account, if Google Gear is already installed on your browser, you will see a pop-up screen, just accept it and let your Reader loads.

2. After the page loads a new icon is added on the upper right corner of your page, the small green button. This will enable you to download the articles locally.

3. When you click the green arrow button. It will now download all articles for offline viewing.

4. After downloading all file a screen will tell you all files are downloaded and you can switch to offline mode by turning off your Internet connection.

Bookmark This!