@arraypress/llms-txt
v1.0.0
Published
Generate llms.txt files for AI agent discovery. The emerging standard for making sites AI-accessible.
Downloads
81
Maintainers
Readme
@arraypress/llms-txt
Generate llms.txt files for AI agent discovery. The emerging standard for making sites AI-accessible. Zero dependencies.
Reference: https://llmstxt.org/
Installation
npm install @arraypress/llms-txtUsage
import { build, parse, llmsTxtResponse } from '@arraypress/llms-txt';
const txt = build({ name: 'My Store', description: 'Digital products' });
return llmsTxtResponse(txt);API
build(options?)
Build an llms.txt string. Options: name, description, meta, sections, apis.
parse(text)
Parse an llms.txt string into { name, description, sections }.
llmsTxtResponse(content)
Create a Response with text/plain content-type.
License
MIT
