Files
modules/indexes-search/hyper-p2p-trie-prefix
2026-05-20 22:56:32 -04:00
..
2026-05-20 22:56:32 -04:00
2026-05-20 22:56:32 -04:00
2026-05-20 22:56:32 -04:00
2026-05-20 21:19:52 -04:00
2026-05-20 22:56:32 -04:00
2026-05-20 21:57:50 -04:00
2026-05-20 21:57:50 -04:00
2026-05-20 22:56:32 -04:00

hyper-p2p-trie-prefix

Prefix trie for autocomplete-style prefixSearch.

Category: indexes-search

Protocol: trie-prefix/v1

When to use

Dictionary lookups, command palettes, or hostname completion by prefix.

When not to use

Fuzzy edit-distance search (use similarity/vector modules).

Quick start

const { HyperP2PTriePrefix } = require('hyper-p2p-trie-prefix')
const t = new HyperP2PTriePrefix()
t.insert('pear')
console.log(t.prefixSearch('pe'))

Docs

Test

npm install && npm test