PouchDB

https://pouchdb.com/guides/

allDocs

'For details on how to effectively use allDocs(), you are strongly recommended to read "Pagination strategies with PouchDB". For 99% of your applications, you should be able to use allDocs() for all the pagination/sorting/searching functionality that you need.'