scolta
v1.0.1
Published
AI-powered search with Pagefind — Node/TypeScript language binding
Downloads
20
Maintainers
Readme
scolta
AI-powered search with Pagefind — the Node/TypeScript language binding.
Scolta is a scoring, ranking, and AI layer over Pagefind,
a static client-side search engine. This package does the server-side work:
turn application content into a Pagefind index, proxy AI calls, serve the
browser assets, and expose configuration. The in-browser scoring engine
(scolta-core, Rust→WASM) and the vanilla-JS widget (scolta.js) are shared
verbatim across every language binding.
It is a faithful port of scolta-php, tracking the
scolta-python port for structure.
Indexers
indexer: auto(default) — a pure-TypeScript reimplementation of Pagefind's on-disk index format. Builds and maintains the index in-process, with an input-side token cache so a one-page edit re-tokenizes only that page. Runs anywhere Node ≥ 20 runs, including runtimes that forbid native binaries.indexer: binary(opt-in) — uses the officialpagefindnpm package's programmatic Node API. Requirespagefindto be installed (optional peer dependency). Falls back to the TS indexer with a logged notice when the package or its platform binary is unavailable.
Status
Stable — published to npm as scolta. See CHANGELOG.md for release history.
Tests
npm install
npm test # vitest
npm run lint # eslint
npm run typecheck # tsc --noEmit