Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6701395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:55:46+00:00 2026-05-26T06:55:46+00:00

I am looking at writing a mobile web application with offline support, and would

  • 0

I am looking at writing a mobile web application with offline support, and would prefer to use the HTML5 offline capabilities instead of something like phonegap.

A requirement of the app will be that it store 2 collections of different types of objects (lets call them Books and Authors) which, when online, it will download from the server. If it didn’t need to be offline then I’d be using some flavour of SQL tables or (preferably) a document-based DB to store these items, but having done some basic investigation I haven’t found anything that feels “right” that works offline.

My question is: what is the best strategy to store those items? What I have considered so far:

HTML5 localStorage – Seems to have relatively wide support but is limited to key value pairs, which would mean a slightly unpleasant data structure – maybe having a total-authors key and then a series of author-1....author-n key-document pairs. This feels wrong to me – like I am trying to work around the intent of the storage.

CouchDb – I’ve worked with CouchDb quite a bit in the past so would love to use it or an equivalent, but “proper” CouchDb would require a native app (with which I have no experience), and the 2 in-browser equivalents I have seen don’t quite seem to do the trick: Lawnchair doesn’t seem to add much to the localStorage option and BrowserCouch doesn’t appear to have had much activity recently (which always makes me wary).

WebDb – Looks like it would be perfect…except it seems to be officially discontinued and doesn’t look to be widely supported

Gears – Discontinued

IndexedDB – Limited browser support for now (at least according to caniuse)

I’m convinced there must be something out there that does what I want, and I’ve just managed to somehow overlook it. Can anyone suggest the way this ought to be done (as opposed to a way it could be done)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:55:46+00:00Added an answer on May 26, 2026 at 6:55 am

    There’s no browser-native simple solution as far I know; you’ll have to either go with localStorage or develop for both WebDB and IndexedDB.

    But non-native you could use a abstraction layer like lawnchair (uses localStorage by default, plugins available for indexeddb, webdb, …) or the one SO-user Gatapia wrote for picnet (uses indexeddb & webdb & gears) that you can find on github.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to add support for reading and writing video files in my application.
So I'm looking at writing an iPhone application that shows things on a map.
My company is looking into writing a custom application that will need to perform
I'm writing a web app that points to external links. I'm looking to create
I am looking into using browser sessionStorage for a web application, and was trying
I am building an application that will have web, windows and mobile (iPhone) client,
I'm writing a backend for a mobile web-app based in Java and I was
I'm looking for writing a GUI client for a existing application in my job,
I am writing an application that records audio. I am looking into the feasibility
I am looking into writing my application's log files to a syslog server in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.