Vite plugin (v1.0.2) implementing the llms.txt specification for serving simplified markdown content to large language models. Framework-agnostic, works with Vue, React, Svelte, Astro. Differentiates by providing a declarative directory-based approach vs manual route configuration. Actively maintained, monthly releases.
npm install vite-plugin-llmsVerified import paths — ran on the pinned version, not inferred.
Basic setup of vite-plugin-llms with custom directory. Creates route /llms.txt and .md endpoints.
Create a 'llms' folder in project root and move markdown files there.
Add <link rel="llms-txt" href="/llms.txt"> to your HTML <head>.
Check plugin documentation for any new options before upgrading.
npm install vite-plugin-llms --save-dev
Use default import: import llms from 'vite-plugin-llms'
Use import type { LlmsOptions } from 'vite-plugin-llms'