~/talk

Lyra: Disrupting the full-text search industry with JS

Talkat Conf42 JavaScript 2022 · on Thursday, 2022-11-17· [javascript, web-performance]
slides:none on file

TypeScript full‑text search engine Lyra implements prefix trees, inverted indexes and B‑trees in pure JS, ships stemmers for 23 languages and a persistence plugin that serializes indexes (MessagePack/JSON) for restore. Benchmarks on 1 million IMDB titles report searches around 41 microseconds on single‑term queries and ~187 microseconds for multi‑term intersections. It targets every JS runtime — Cloudflare Workers, Node, Deno, Bun and React Native — bundles with Nebula and can deploy an edge search endpoint in seconds.

AI-written summary · about

  1. 0:00Introduction
  2. 1:49Recreating Elasticsearch
  3. 3:38JavaScript over Rust and Go
  4. 5:03Full-text search algorithms
  5. 6:48Lyra in TypeScript
  6. 9:14Cross-runtime JavaScript
  7. 11:01Core API and operations
  8. 12:46Benchmarking search speed
  9. 14:08Stemming and stop words
  10. 15:54Snowball stemmer
  11. 19:22Project goals and achievements
  12. 20:03Data persistence
  13. 22:48Deployment architectures
  14. 23:50Deploying with Nebula
  15. 26:37Open source and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.