Skip to main content

Built and signed on GitHub Actions

It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
64%
Published
6 days ago (1.0.0)

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:

  1. The first line of the document is a title, in typical markdown fashion this looks like:

    # my-project
    

    This is the only required field!

  2. 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.

  3. 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.
    
  4. 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)
    
Built and signed on
GitHub Actions
View transparency log

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";