Skip to content

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 }=DataFactoryconststore=newTextStore()store.add(quad(namedNode('a'),namedNode('https://schema.org/name'),literal('John Doe')))constresult=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

2 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages