How to connect js-ipfs to ipld to fetch some ipld data

The repo https://github.com/rvagg/js-ipld-hashmap has some good example how to use the hashmap with the memory store, like

const store = {
  map: new Map(),
  get (k) { return store.map.get(k.toString()) },
  put (k, v) { store.map.set(k.toString(), v) }
}

This will store/retrieve the data from a memory structure, I would like to connect with a real ipfs localhost. Could someone please guide me with a sample code how to replace that memory store with put and get to store and retrieve using js-ipfs

Thanks :slight_smile: