Skip to content

Black Friday

← Plugins

3.1 / Astronomic Search · Free & MIT

Help visitors find what they came for

Free, typo-tolerant search for Astro. From a half-remembered name to the right page, or the exact heading inside it.

Index your content at build time. Search runs in the browser, with a default dialog included and no hosted search service to configure.

pnpm add @astronomic-dev/search

From a question to a destination

01 / Typo tolerance + prefix matching

Close enough is enough.

A misspelled name can still find the right page. Prefix matching helps while a visitor is still typing, so they don’t need to finish every word.

Try “lodestr”

02 / Pages + heading links

The answer might be halfway down.

Search indexes heading sections as well as pages. A result can take someone straight to “Light and dark mode”, instead of leaving them at the top of a long guide.

Find “dark mode”

03 / Type tabs + core facet filters

Less to sift through.

Separate docs from articles with type tabs, then narrow by facets such as theme. Counts help visitors see what’s there. The full results page keeps their choices in a shareable URL.

Search only Lodestar docs

Built for the keyboard, too

Open. Type. Go.

The dialog handles focus, announces result counts and returns you to the control that opened it. On a phone, it fills the screen.

The search trigger is a real link. Without JavaScript, it takes visitors to your search page or a browse destination you choose.

Open search
⌘ K or Ctrl K
Move through results
↑ ↓
Open a result
Enter
Reach tabs and filters
Tab
Clear, then close
Esc

Your content. One integration.

Keep writing Astro. Search does the indexing.

Choose content collections, rendered HTML or records from your own code. Pages and their heading sections become one searchable index.

The small boot script waits for search intent. The engine and index load when someone hovers, focuses or opens search, rather than on every page load.

01 / Install the package

pnpm add @astronomic-dev/search

02 / Choose your sources

// astro.config.mjs
import { defineConfig } from "astro/config";
import search, { collections, html } from "@astronomic-dev/search/astro";

export default defineConfig({
  integrations: [
    search({
      sources: [
        collections({ docs: { label: "Docs" } }),
        html({ include: ["/", "/pricing"] }),
      ],
      browse: [{ label: "Docs", href: "/docs" }],
    }),
  ],
});

03 / Put a search link in your header

---
import SearchLink from "@astronomic-dev/search/astro/SearchLink.astro";
---
<SearchLink href="/docs">Search the docs</SearchLink>

This link opens the package’s default dialog. Its fallback goes to your docs index.

One search engine. Your choice of layout.

The search package works on its own. Astronomic UI adds layouts that share your site’s design tokens.

Free · MIT

Astronomic Search

The engine, Astro integration, default dialog, type tabs and core facet filters. Use it on any Astro site, with or without the UI Kit. The controller and browser behavior are there if you want to build your own interface.

Free UI Kit

Astronomic UI

SearchClassic is the dialog you tried on this page. SearchPage gives visitors a full page of results, with type tabs, filters and a shareable URL. Both are free UI Kit components.

Explore Astronomic UI

Pro · Planned

Astronomic UI Pro

Planned layouts: SearchPreview with a preview pane, SearchFaceted for a filter-focused layout, and SearchCommand for a command palette. These Pro layouts are not available yet. Facet filtering itself is included in the free search package.

Join the Pro waitlistCompare Free and Pro

Try the search that brought you here.

Try Search
See all results

Waitlist

Be first in line

Join the waitlist and we'll email you the moment it's out.

You'll also get our newsletter: new themes, plugins and guides. Unsubscribe any time.

Newsletter

You're on the list

A welcome email is on its way.