Generate, validate and parse llms.txt files
Build an llms.txt from a website, a sitemap or a docs folder, check any site's llms.txt,
and read the format in your own code. One tiny package, no dependencies.
generate · validate · parse · check · llms-full.txt · CLI · no dependencies
GitHub · npm · 🌐 aibotsdb.com
llms-txt
The llms.txt toolkit: generate llms.txt and llms-full.txt from a sitemap or Markdown docs, validate files with clear messages and line numbers, parse them into JSON, and check whether any website publishes one. CLI and library for Node.js, Deno, Bun, browsers and edge runtimes.
ai-bots-db
The open database of AI crawlers & bots: who runs each one, its official IP ranges, and how to block it.
user-agents.txt
Plain-text lists of bot user-agents by purpose: AI bots, search engines, SEO tools, monitoring and more.
| You want | Run |
|---|---|
An llms.txt for your website |
npx llms-dot-txt generate example.com -o public/llms.txt |
An llms.txt from a docs folder |
npx llms-dot-txt generate ./docs --base-url https://example.com/docs --full |
| Check a file before you publish it | npx llms-dot-txt validate public/llms.txt |
| See if a site has one | npx llms-dot-txt check vercel.com |
| Use it in JavaScript / TypeScript | npm install llms-dot-txt |
Found an llms.txt the validator gets wrong, or a site the generator can't handle? Report it. A URL is enough. Code and docs improvements are welcome too, see CONTRIBUTING.md.
llms-dot-txt is free and always will be. ⭐ Star the repo to follow updates, or become a sponsor to support the whole AI Bots DB family.
Code: MIT · Not affiliated with llmstxt.org or Answer.AI.