Client-side full-text search engine optimized for static sites and serverless architectures. Fast, lightweight, and completely free.
Stop paying thousands of dollars for managed search infrastructure.
GhostSearch creates a highly compressed inverted index of your documents at build time.
The compact index is shipped to the client as a static JSON or binary asset.
Searches execute instantly in memory using Web Workers, blocking no UI thread.
Handles typos and misspellings gracefully using optimized Levenshtein distance algorithms.
Filter results by categories, tags, or custom attributes instantly.
Returns precise character offsets for matching terms to build beautiful UI highlights.
Offloads heavy indexing and searching to background threads to keep UI snappy.
Generate indexes at build time and serve them as static JSON payloads for zero client-side indexing.
Built-in cursor-based and offset pagination for handling large result sets efficiently.
GhostSearch is the best free Algolia alternative for static sites and client-side applications. It runs entirely in the browser, meaning zero server costs, while still delivering sub-millisecond search performance on datasets up to 100K documents.
Elasticsearch is a complex server-side distributed search engine designed for massive, dynamic datasets (billions of records). GhostSearch is a lightweight, client-side library meant for small to medium, relatively static datasets. If you're building a documentation site, a blog, or a catalog with under 100K items, GhostSearch is infinitely cheaper and easier to setup.
Not if configured correctly. GhostSearch indexes are heavily compressed. A 10K document dataset typically compresses to ~200KB. This payload can be fetched asynchronously or lazily loaded only when the user clicks the search bar.