Open main menu

WebApps with LocalStorage and AppCache

(Redirected from AppLSAC)
Basic AppLSAC with Browser as Runtime Environment
WebApp: Classical Client-Server Architecture - Browser loads WebApp from Server and exchanges data with server - (see also Same-Origin Policy)

AppLSAC is an abbreviation for privacy friendly web-based applications that runs in a browser without the need to contact a server to process data. The WebApp consists of HTML, CSS and Javascript files and the AppLSAC is able to run disconnected from the internet. AppLSACs uses

  • (LS-Local Storage) LocalStorage of the browser to store generated data, configuration and settings of the WebApp in a browser instead of storage on a remote server.
  • (AC-AppCache) AppCache is used to store the WebApp locally in the browser (optional), so that the web-based applications can run offline without internet connectivity.

LocalStorage and AppCache can be replaced by equivalent web-technologies that are privacy friendly as well. Developed software is OpenSource, so that the community can check, that the WebApp is programmed with privacy friendlyness in mind. As an alternative to the AppCache the HTML/Javascript/CSS files as bundle can be stored locally on the mobile device or desktop PC and executed with a browser. Starting an AppLSAC can be done just by loading a local HTML-file in the browser (e.g. a file myapp_lsac.html.

Main Steps in Learning ResourceEdit

Some Javascript repositories are developed explicitly for the Wikiversity learning resource. The repositories are stored on GitLab to have a Version Control System for the application and forking of the libraries in learning task. We start with

  • (AppLSAC Examples) exploring AppLSAC example and apply AppLSACs for your work with Wikiversity as a learaing,
  • (Load, Processing, Save) identify the main operations of AppLSAC and understand the underlying concepts,
  • (Create an AppLSAC)create your first AppLSAC that runs completely in your browser without Internet connectivity.
  • (Remote Data Download) For an AppLSAC-0 it is allowed to download data from a remote server. In this part you will learn, how AppLSACs can be able to download data from a remote server. Of course this creates a digital footprint. Even in an AppLSAC-0 a remote download operation must be triggered by a users interaction - see also AppLSAC type.

Main Operations of AppLSACsEdit

To be introduced to privacy friendly web-application we consider 3 main steps in this learning resource:

  • (Load) Load a file into the browser environment (and not to any server for processing)
  • (Processing) perform the task/job in the browser by implementation with Javascript
    • (ZIP) JSZip provides a method to handle folders and files within a browser without accessing the file system physically.
    • (Print) print content generated by the AppLSAC.
  • (Save) finally save the results on the device of the user.

In the context of AppLSAC the browser is regarded as a runtime environment for local Javascript code.

Graphical User InterfaceEdit

Furthermore you can learn about Navigation Menus as part of Graphical User Interfaces (GUI):

  • (Navigation Menu) A applications have menus from which the users can select specific features of the software. Load and Save are widely used menu items.
  • (Icons for Menu) Icons are used in navigation windows. In this learning resource you will learn about handling icons in AppLSACs.

Underlying ConceptsEdit

Learning TasksEdit

  • (Browser as Runtime Environment) Explore the concept of Runtime Environments and explain, why a browser can be regarded as Runtime System for applications developed in Javascript!
  • (HTML,JS,CSS Software Bundle) Explain, why a WebApp can be developed and distributed as a bundle of HTML, Javascript and CSS files, that runs completely in a browser! HTML and CSS define the Graphical User Interface (GUI) for the AppLSAC.
  • (Differences WebApps vs. native Applications) Application can load and save file without notice to the user. Why is it necessary, that browsers need an explicit Load and Save dialog, in which the user must create an event to save content processed in the browser (privacy)!
  • (AppLSAC Limitations) Explain the limitations of WebApps (e.g. processing large files, access to sensors of the mobile device, ...) if users want no processing of data outside the browser, i.e. users do not want to grant permissions to process certain data in the cloud or on a remote server!
  • (Progressive WebApps) Analyse the concept of Progressive Web Apps and identify the feature of progressive WebApps that allow Commercial Data Harvesting. Explain similarities of the approach between AppLSAC and Progressive WebApps!
  • (Local Storage) Explain the concept of browser Cookies. How can web developers use browser cookies to store personalized data locally in the browser. What are the limations of Cookies to store data locally in the browser! How can web developers use Cookies for Commercial Data Harvesting. Assume you have a local HTML file with integrated Javascript, that store data locally. Are other domains able to access the local data in the browser (see also Same-Origin Policy)? Create a list of PROs and CONs in terms of privacy friendly design of WebApps for different options of local storage of data in the browser!
  • (Browser) Explain the role of browsers in general for the implementation of privacy friendly WebApps! What is your expected browser behaviour for a privacy friendly software design.
  • (WebApp Stores) F-Droid is an OpenSource App repository for Android. Explain the role of a digital distribution platform for developed mobile WebApps that run in the browser with the operating system of your desktop PC or mobile device. The store allows users to browse and download WebApps.
  • (Create your own AppLSAC) Learn how to create a privacy friendly "AppLSAC" software.

Programming TaskEdit

  • Create a WebApp that is able to perform a QR-Code scan and stores the encoded data in the QR-Code into a textarea (see InstaScan HTML5 QR Code Scanner).
  • Create a WebApp that is able to detect the geolocation of the browser (see Geolocation in HTML5 on W3C.
  • Discuss Pros and Cons of such APIs for AppLSAC development.

Future ChangesEdit

  • Migrate all GitHub repository for Wikiversity learning resources to GitLab (2018-*).

See alsoEdit