Lifeline Chrome Extension that saves all the webpages when you are browsing .So the next time you are offline you can visit the page.
This was my extension for TechFest 2012.
Introduction: Lifeline is a chrome extension to read your favourite web pages as they are even when there is no Internet connectivity.
Necessity: More than 2 billion people are active users of internet. India ranks a extremely poor 114rd in the world. India’s average broadband connection is 0.9 mbps (about 900 kbps) as compared to 13.7 mbps in South Korea.A Times Of India Article dated May 2,2012 :
http://articles.timesofindia.indiatimes.com/2012-05-02/internet/31537373_1_256kbps-speed-internet-speed-akamai. In its report Akamai also listed 100 cities with fastest internet connections in the world. None of the Indian cities are on the list.
(Ctrl+H) for history.Search within the history for the page you want to visit.
Google Chrome already has a save page option . But you cant manually save all the pages you visit .It has got to happen in the background .
If you are worrying about the memory consumption then a simple Comparision : There’s a chrome extension which stores the whole wikipedia offline in just 1Gb.
Technical Stuff :
The elements that make up a webpage are html , css , images .css is used for styling while html is used for markup.
To store images, the new HTML5 technology of canvas was used to first create a paint the image in the canvas and get its base64 encode and then toring it.
The whole html page was then converted into a single string ( along with the css and images base64 string) and stored locally.
While offline that corresponding string of html was obtained using the key stored and shown on the page.
GitHub Repo :
SpeakerDeck Presentation :