Allows users to store big tensorflow.js models on the client-side within the indexedDB.
npm install --save tfjs-indexeddb-helpers
To not make 2 requests to load a model, only use the loader in this package. Once the model gets loaded it will also get stored in the IndexedDB.
import { loadAndStoreLayersModel } from 'tfjs-indexeddb-helpers';
const modelArtifacts = await loadAndStoreLayersModel('https://foo.com/model.json', 'foo');
import { loadFromIndexedDb } from 'tfjs-indexeddb-helpers';
const modelArtifacts = await loadFromIndexedDb('foo');