tinysearch is a lightweight full-text search engine designed specifically for static websites, offering fast and efficient search capabilities without requiring a backend server. It is written in Rust and compiled to WebAssembly, allowing it to run entirely in the browser while maintaining a very small footprint. The engine uses compact data structures such as XOR filters to efficiently index and query text, significantly reducing memory usage compared to traditional search libraries. TinySearch is particularly well-suited for blogs and documentation sites generated by static site generators, where simplicity and performance are critical. It processes content into a serialized binary index that can be loaded quickly and searched client-side, eliminating the need for external search services. While it prioritizes efficiency, it makes trade-offs such as focusing on whole-word matching rather than advanced search suggestions.
Features
- Lightweight full-text search engine designed for static websites
- Runs entirely in the browser using WebAssembly
- Uses compact XOR filter data structures for efficient indexing
- Small binary size optimized for fast loading
- Compatible with static site generators like Hugo and Jekyll
- Client-side search without requiring backend infrastructure