Looking for a JSON request layer for FrontEnd app

issues:

  • duplicate JSON API requests for same resources in front-end APPs
  • not data persistence for off-line usage
  • not model oriented class API

idea:

  • use indexedDB as the persisted data storage.
  • an unified request API that check indexedDB before making real request
  • return a class instance instead of raw JSON data.

implement:

  • Service Workers to rescue

propose a project to implement the above solution called “postop”