I was going to ask how this is different than lunr but I just noticed lunr hasn't been updated for almost 2 years now: https://github.com/olivernn/lunr.js
Anything with npm dependencies requires constant updates. The code may be finished but the dependencies publish security updates that need to be pulled in.