Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
llms-txt
usage
{ "tasks": { "fmt-llms-txt": { "command": "deno run -A jsr:@polyseam/llms-txt fmt" }, "lint-llms-txt": { "command": "deno run -A jsr:@polyseam/llms-txt parse" } } }
llms-txt spec
The llms.txt standard promotes a simple pattern of exposing a markdown document that is maximally useful for LLMs. It is largely pure markdown but follows a few simple rules to make it more useful for LLMs.
The content should be as follows:
-
The first line of the document is a title, in typical markdown fashion this looks like:
# my-project
This is the only required field!
-
We also should add a summary, a one-line blockquote on line
3
of the file:# my-project > This is a summary of my project in just a single line.
This should always be a single line, and should be a summary of the project.
It is not required, but it is highly recommended.
-
Next the file should contain zero or more markdown elements which are not headings:
# my-project > This is a summary of my project in just a single line. Here's an example including some content which does not contain a heading! It can be useful to provide any content here which isn't simply a link to external content elsewhere.
-
The final section of the file is a list second-level headings, and a corresponding list of links
# my-project > This is a summary of my project in just a single line. ## community - [community website](https://example.org) - [discord](https://example.org/discord): Please join us, we love bots! ## docs - [docs](https://example.org/docs)
Add Package
deno add jsr:@polyseam/llms-txt
Import symbol
import * as llms_txt from "@polyseam/llms-txt";
---- OR ----
Import directly with a jsr specifier
import * as llms_txt from "jsr:@polyseam/llms-txt";
Add Package
npx jsr add @polyseam/llms-txt
Import symbol
import * as llms_txt from "@polyseam/llms-txt";
Add Package
yarn dlx jsr add @polyseam/llms-txt
Import symbol
import * as llms_txt from "@polyseam/llms-txt";
Add Package
pnpm dlx jsr add @polyseam/llms-txt
Import symbol
import * as llms_txt from "@polyseam/llms-txt";
Add Package
bunx jsr add @polyseam/llms-txt
Import symbol
import * as llms_txt from "@polyseam/llms-txt";