{"slug": "astro-d1-search-released-on-npm", "title": "astro-d1-search released on npm", "summary": "Zander Martineau released astro-d1-search on npm, an Astro integration that adds full-text search backed by a /api/search endpoint, bm25 + recency ranking, and a searchIndex() function for server-rendered search pages. The package, which powers his own site and removed about 400 lines from the repo, includes docs, a GitHub repo, and an agent skill for Claude Code.", "body_md": "The [site search](https://zander.wtf/blog/astro-cloudflare-d1-search) I built last month is now a package: [ astro-d1-search](https://www.npmjs.com/package/astro-d1-search) is an Astro integration that adds full-text search backed by\n\n`/api/search`\n\nendpoint, bm25 + recency ranking, and a `searchIndex()`\n\nfunction for server-rendered search pages — all driven by one config object.This site now runs on the package rather than its own copy of the code, which removed about 400 lines from the repo. There are [docs](https://astro-d1-search.zander.wtf), a [repo](https://github.com/mrmartineau/astro-d1-search), and an agent skill (`npx skills add mrmartineau/astro-d1-search`\n\n) so Claude Code can wire it up for you.\n\nI wrote up the whole thing in [astro-d1-search: site search for Astro in one integration](https://zander.wtf/blog/astro-d1-search-package).", "url": "https://wpnews.pro/news/astro-d1-search-released-on-npm", "canonical_source": "https://zander.wtf/blog/2026-08-02-astro-d1-search/", "published_at": "2026-08-02 00:00:00+00:00", "updated_at": "2026-08-04 06:07:38.977216+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["Zander Martineau", "astro-d1-search", "Astro", "npm", "Claude Code"], "alternates": {"html": "https://wpnews.pro/news/astro-d1-search-released-on-npm", "markdown": "https://wpnews.pro/news/astro-d1-search-released-on-npm.md", "text": "https://wpnews.pro/news/astro-d1-search-released-on-npm.txt", "jsonld": "https://wpnews.pro/news/astro-d1-search-released-on-npm.jsonld"}}