So you’ve decided to leverage on open source web frameworks to build your mobile apps to take advantage of the exciting opportunities in the emerging mobile app environment. But there are so many data storage options to choose from, how do you know which works best for you?
Here’s a list of HTML5 data storage APIs and their browser support:
Adapted from http://www.html5rocks.com/en/features/storage
Let’s take a closer look at some data storage APIs that you can use to build your mobile app:
SQLite

- http://www.sqlite.org/
- Transactional SQL database.
- Written in ANSI-C.
- Designed to be cross-platform (Windows, Linux, Mac, Android, iOS) and simple to use.

- http://www.w3.org/TR/webdatabase/
- No longer maintained by Web Applications Working Group.
- Persistent transactional SQL database based on SQLite API.
- Apache Cordova Storage API is based on Web SQL Database.
- SQL scripts are compatible with SQLite.
Web Storage
- http://www.w3.org/TR/webstorage/
- Session-only data storage of key-value pair data.
- Simple version of Indexed Database.
- Does not retrieve values in order of their keys.
- Does not store multiple values per key.
Indexed Database
- http://www.w3.org/TR/IndexedDB/
- Persistent transactional data storage of key-value pair data.
- More “advanced” version of Web Storage.
- Retrieves values in order of their keys.
- Stores multiple values per key.
File Access
- http://www.w3.org/TR/FileAPI/
- Reading and manipulating file content via Javascript.
MongoDB
- http://www.mongodb.org/
- NoSQL database – Stores data as JSON-style documents.
- Written in C++.
- Designed to be scalable and high performance.
If you are still deciding on the appropriate frameworks to build your mobile apps, you can gather some ideas from our article, Leveraging Open Source Web Frameworks for Mobile Development.
Armed with the appropriate framework and data storage option, you are poise for success in the mobile app industry. Are you ready to start your journey to build your own mobile app? Start your 30 day challenge to build your awesome Windows 8 app.
Used any of these data storage APIs before? Which one works best for you? Do you have other great data storage APIs to recommend? Do share with us your experiences in the comments below!