A thin wrapper around N3 Store and Flexsearch enabling in-memory fuzzy text search.
import { TextStore } from '@shapething/textstore'
import { DataFactory } from 'n3'
const { namedNode, literal, quad } = DataFactory
const store = new TextStore()
store.add(quad(namedNode('a'), namedNode('https://schema.org/name'), literal('John Doe')))
const result = store.match(null, namedNode('https://textstore.shapething.com/search'), literal('Jo'))
// Result contains John Doe
Run npx jsr add @shapething/textstore
See https://jsr.io/@shapething/textstore
Run npx jsr publish