Authors: Ivan Chepurin, Frontend Engineer, and Travis Turner, Tech EditorTopic: Astro.js

Join me on a breathtaking journey as we add a client-side search to an SSG docs-first site, built with Astro!

Building static sites with Astro is a dream (especially for documentation). But what to do when your growing docs need full-text search, but you don’t want to give up that static delight? In this post, see how to bring powerful, fuzzy, and accessible search to Astro-generated sites. (This means no external crawlers and no remote APIs.) We’ll also look at the limits of AI-based and third-party search, demonstrate how to generate a build-time JSON index with Astro’s endpoints, and fine-tune the client-side experience with MiniSearch and Svelte. Here’s your guide to a native-feeling, privacy-friendly search, even on a fully static site.

Read more

Ivan Chepurin, Travis TurnerSource