What astro-llms-md does
astro-llms-md is an npm package that plugs into the Astro build. After npm run build it writes llms. txt, llms-full. txt and one markdown file per page into the dist folder, so a site ships the files the llms. txt convention describes. Configuration lives in astro. config. mjs, and the integration falls back to Astro's top-level site value when siteUrl is not set.
Content is taken from the page region matched by contentSelector, which defaults to main, and the title from titleSelector, which defaults to h1. excludeSelectors strips sidebars, forms and navigation before conversion. It also handles Astro output server builds by reading dist/client and rendering SSR-only routes, starting dist/server/entry. mjs locally when a site URL is not available.
Key features
- Astro build integration
- Registered as an integration in astro. config. mjs, it runs automatically after npm run build and writes files into dist/.
- Zero-config default setup
- Works without options set, using Astro's top-level site value and auto-detected site name and description.
- Three generated outputs
- Emits an llms. txt index, an llms-full. txt with all page content, and one markdown file per page.
- SSR and server builds
- Handles output server builds, detecting dist/client, including pre-rendered pages and fetching SSR-only routes from src/pages.
- CSS selector content control
- titleSelector and contentSelector pick the page title and main content region before HTML to markdown conversion.
- Noise stripping selectors
- excludeSelectors removes sidebars, forms and navigation rails from the markdown; three selectors are always stripped and cannot be overridden.
- Trailing slash control
- trailingSlash set to always, never or ignore decides how canonical page URLs appear in the emitted files.
- Default exclude patterns
- exclude filters file paths, defaulting to 404, 404. html, _astro, **. xml, **. txt and node_modules.
- Full TypeScript definitions
- Ships full TypeScript type definitions for the integration configuration options passed to llms().
- Per-page YAML frontmatter
- Each individual markdown file carries YAML frontmatter alongside the converted page content.
How it works
- Install the package as a dev dependency with npm install -D astro-llms-md.
- Import llms from astro-llms-md and add llms() to the integrations array in astro. config. mjs.
- Set the Astro site URL, since the integration needs it to build absolute links.
- Pass options such as siteUrl, name, description, selectors, excludes and trailingSlash inside llms().
- Run npm run build; the integration runs after the build and writes the output files to dist/.
- Deploy the generated llms. txt, llms-full. txt and per-page markdown files alongside the site.
Plans and pricing
Distributed as an MIT licensed npm package; the repository prints no price and no paid tiers.
Integrations and platforms
Works with
- Astro
Available as
- Web
- CLI
Repository facts
- Repositorytfmurad/astro-llms-md
- LanguageTypeScript
- Stars57
- Forks6
- LicenceMIT
- Created2026-04-15
- Last commit2026-11-05
- Open issues2
- ai-tools
- astro-integration
- llms-txt
- markdown
- seo-tools
- static-site
- withastro
Services and details
Does SEO work itself
YesFree plan or free tools
Yes
No information yet on keyword research, content optimization, writes content with AI, technical audits, rank tracking, backlinks and link building, local SEO, AI search visibility, free trial, API or MCP server, WordPress plugin, browser extension, built for agencies. The website did not say; check with the vendor.
About the company
- Company tfmurad
- Website: github.com/tfmurad/astro-llms-md
Listing compiled from public sources and the product's own website. Last updated 2026-11-12. Report a correction or request removal. Back to GitHub repos.