Skip to content

A thin wrapper around N3 Store and Flexsearch enabling in-memory fuzzy text search.

Notifications You must be signed in to change notification settings

ShapeThing/TextStore

Repository files navigation

Text Store

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

Install

Run npx jsr add @shapething/textstore

See https://jsr.io/@shapething/textstore

Publish new version

Run npx jsr publish

About

A thin wrapper around N3 Store and Flexsearch enabling in-memory fuzzy text search.

Topics

Resources

Stars

Watchers

Forks