turva-llms-txt-validator 0.8.3 → 0.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -37,7 +37,7 @@ llms-txt-validate --help
37
37
  llms-txt-validate --version
38
38
  ```
39
39
 
40
- A domain, an HTTP URL or an HTTPS URL is accepted. Validation always uses the host's `/llms.txt` and home page over HTTPS, regardless of the supplied path. If the address has a path other than `/` or `/llms.txt`, the result names that path first in an `info` line.
40
+ A domain, an HTTP URL or an HTTPS URL is accepted. A host given with port 80 or 443 is read at HTTPS on port 443, and any other port is refused. Validation always uses the host's `/llms.txt` and home page over HTTPS, regardless of the supplied path. If the address has a path other than `/` or `/llms.txt`, the result names that path first in an `info` line.
41
41
 
42
42
  | Option | Effect |
43
43
  | --- | --- |
@@ -61,7 +61,7 @@ https://turva.dev/llms.txt
61
61
  ok Small enough to be cheap to read (11358 bytes)
62
62
  ```
63
63
 
64
- The summary comes last, as `result: valid` for this run. Each preceding line reports one check. A `warn` identifies something to review, such as a missing blockquote summary. It does not fail the command unless you add `--strict`. A `FAIL` means a structural requirement failed. Each line includes the observed detail.
64
+ The summary comes last, as `result: valid` for this run. Each line between the target line and the summary reports one check. A `warn` identifies something to review, such as a missing blockquote summary. It does not fail the command unless you add `--strict`. A `FAIL` means a structural requirement failed. Each line includes the observed detail.
65
65
 
66
66
  ### Exit codes
67
67
 
@@ -86,15 +86,15 @@ Completed validation returns `{ target, summary, checks }`, where `target` is `h
86
86
 
87
87
  The validator removes C0 and C1 control characters, bidirectional controls and invisible characters from the `detail` text, which can quote the checked site. The invisible characters are chosen by Unicode class, not from a list: every format character, which is General_Category Cf, every Default_Ignorable_Code_Point and the line and paragraph separators U+2028 and U+2029. That covers the zero-width characters, the left-to-right and right-to-left marks, the Arabic letter mark, the word joiner and the invisible math operators, the soft hyphen, the byte-order mark, the variation selectors, the combining grapheme joiner, the Hangul fillers and the tag characters U+E0000 to U+E007F. Spaces stay: the no-break space and U+2000 to U+200A. The zero-width non-joiner and joiner go too, so a quoted Persian, Malayalam or Devanagari word loses its joining marks and reads without them. The Arabic number signs U+0600 to U+0605 go as well. Until 0.8.0 only the bidi controls and the C0 and C1 controls were removed, and the invisible characters stayed in the text and in the JSON. An emoji sequence in quoted text loses its zero-width joiners and its variation selector: a family emoji reads as its members side by side, a heart written with U+FE0F shows in text style, a keycap sequence loses the selector, and a tag flag shows as its black flag. The emoji themselves, skin tone modifiers, regional indicators and combining marks stay.
88
88
 
89
- With `--json`, an invalid domain or a failed fetch returns `{ "error": "...", "target": "..." }` and exits with code `2`. A network error adds `code`, such as `EAI_AGAIN`. An unknown option, a second domain and a missing domain return `{ "error": "..." }` only, with no target, and also exit with code `2`. An unknown option is named by its dashes and the letters, digits and dashes after them, and the rest of the argument is not shown, so a target typed with a leading dash, as in `-u:secret@example.com`, gives `unknown option "-u" (the rest of the argument is not shown)`.
89
+ With `--json`, an invalid domain or a failed fetch returns `{ "error": "...", "target": "..." }` and exits with code `2`. A network error adds `code`, such as `EAI_AGAIN`. An unknown option, a second domain and a missing domain return `{ "error": "..." }` only, with no target, and also exit with code `2`. `--help` and `--version` win over argument errors, also with `--json`, and exit with code `0`. An unknown option is named by its dashes and the letters, digits and dashes after them, and the rest of the argument is not shown, so a target typed with a leading dash, as in `-u:secret@example.com`, gives `unknown option "-u" (the rest of the argument is not shown)`.
90
90
 
91
91
  In an error report the `target` is the address given on the command line. When it parses as a URL with a host, the user name and password are removed and each query value becomes `***`. Other values follow these cases:
92
92
 
93
93
  - In a value such as `user:secret@example.com` or `example.org:8443#a@b`, the part before the colon reads as a URL scheme and no authority follows it, so only `//***` is shown.
94
94
  - A value with no scheme and no slash is read as user information when a colon comes before its last `@` and before its first `?` or `#`. So `user_name:secret@example.com` and `user_name:se#cret@example.com` are shown as `***@example.com`. A backslash counts as part of the user name, as in a Windows domain account, so `CORP\erik:se#cret@example.com` is shown as `***@example.com` too. The same reading holds when such a value is a relative redirect target that is resolved against the request address, so the password does not come back in the path of the shown address. When the validator follows such a redirect, the address it reached is shown as its scheme, its host and `/***`, as in `https://example.com/***`, and so is an address reached after it while its `Location` keeps part of the earlier path or query. An address whose `Location` keeps none of it, such as an absolute address or a path from the root, is shown as usual. There a `?` or `#` before the last `@` shows only `***`, because the text after it could also be read as a query or a fragment. When a `?` or `#` comes before the colon, as in `user?x:secret@example.com`, the text from that character on is masked or cut, so the part before it is shown and the password is not.
95
95
  - Without that colon, as in `path@2x.png` or an e-mail address, the value is shown as given and holds no password.
96
- - An address that holds an `@` shows only `***`, with the scheme in front when a slash follows its colon and with no host, when a URL parser and a person would read it differently. That covers a backslash, a `?` or a `#` before the `@` and before any `/`, and a start that is not exactly a scheme, two slashes and a character other than a slash. `https://user:pa?ss@example.com/`, `https://example.org?e=a@b.com` and `https:///host?e=a@b.com` are shown as `https://***`. `user:secret@host.example://dd`, where no slash follows the scheme colon, is shown as `//***`. The same holds for a word that a URL parser refuses as a scheme when a slash or a backslash follows its colon, as in `my_app:/user:secret@host`, and for an address that the parser refuses when a `?` or `#` comes before its last `@`, as in `https://user:pa/ss?secret@example.com`. A redirect to such an address is reported as "a different host that this report does not name". A `/` before the `@` makes it a path, and a relative reference such as `/a@b` or `docs/@name` is masked as before.
97
- - Spaces, C0 control characters, Unicode spaces and invisible characters such as U+200B at either end of a value are removed before it is read, so a value that starts with U+2003 before `https:/user:secret@example.com` is read as `https:/user:secret@example.com` and shown as `https://***`.
96
+ - An address that holds an `@` shows only `***`, with the scheme in front when a slash follows its colon and with no host, when a URL parser and a person would read it differently. That covers a backslash, a `?` or a `#` before the `@` and before any `/`, and a start that is not exactly a scheme, two slashes and a character other than a slash. `https://user:pa?ss@example.com/`, `https://example.org?e=a@b.com` and `https:///host?e=a@b.com` are shown as `https://***`. `user:secret@host.example://dd`, where no slash follows the scheme colon, is shown as `//***`. The same holds for a word that a URL parser refuses as a scheme when a slash or a backslash follows its colon, as in `my_app:/user:secret@host`, and for an address that the parser refuses when a `?` or `#` comes before its last `@`, as in `https://user:pa/ss?secret@example.com`. A redirect to such an address is reported as "a different host that this report does not name". A `/` before the `@` makes it a path, so `https://user:12/ss@example.com/` is the host `user` with the port 12 and the path `/ss@example.com/`, and it is shown as written. A relative reference such as `/a@b` or `docs/@name` is masked as before.
97
+ - Spaces, C0 control characters, Unicode spaces and invisible characters such as U+200B at either end of a value are removed before it is read, so a value that starts with U+2003 before `https:/user:secret@example.com` is read as `https:/user:secret@example.com` and shown as `https://***`. The edge set follows Unicode classes: spaces, control characters, format characters and default-ignorable characters. A `Location` header reaches the validator as bytes that the platform reads as Latin-1. When those bytes form valid UTF-8, the validator reads them as UTF-8 for masking, so a U+3000 at the start of a `Location` is removed in its real form and in its byte form. A byte that is not valid UTF-8 stays as it arrived between the first and the last printable ASCII character. Before the first and after the last one it counts as an edge character. A followed address with such a byte at its edge is shown as `https://host/***`, and the address shown with a redirect refused as one hop too many leaves the byte out.
98
98
  - Text before `://` that a URL parser does not accept as a scheme, such as `my_app://user:secret@host/p`, `1app://user:secret@host/p` or `ht tps://user:secret@host/p`, is masked from the text: everything up to the last `@` is shown as `***`.
99
99
 
100
100
  ## What it checks
@@ -105,14 +105,14 @@ In an error report the `target` is the address given on the command line. When i
105
105
  | --- | --- | --- | --- |
106
106
  | 1 | `/llms.txt` returns HTTP 200 | Non-200 response, rejected or excessive redirects | none |
107
107
  | 2 | Response is plain text | Body looks like an HTML page | The media type, read without its parameters, with only spaces, tabs and line breaks removed from its ends and only ASCII letters lowercased, is neither `text/plain` nor `text/markdown` |
108
- | 3 | First non-empty line is a Markdown H1, written `# Title` or as one line of text underlined with `=` | Missing H1, a title indented as a code block, or an H1 with no text | none |
108
+ | 3 | First non-empty line is a Markdown H1, written `# Title` or as one line of text underlined with `=` | Missing H1, a title indented as a code block, or an H1 with no text, whether written with `#` or underlined with `=` | none |
109
109
  | 4 | Blockquote summary follows the title | none | Missing summary, a blockquote block in which no line has text after the `>`, or a blockquote after other text but before the first H2, named by its line |
110
110
  | 5 | H2 sections group the content | none | No H2 sections, no section with a Markdown link list, a heading between the title and the first H2, or a second H1 |
111
- | 6 | Markdown links have names and absolute HTTP or HTTPS targets | none | Missing links, empty names, relative targets or targets that do not parse as HTTP or HTTPS URLs, or a list line under an H2 of one of two kinds. The first kind looks like a link entry but is not a Markdown link, such as an unclosed destination in `- [Name](https://example.com/a.md: notes)`. The second kind opens with an en dash, an em dash or a bullet instead of a list marker, whether or not its link parses. The detail has one sentence per kind, each with its count and the first five line numbers |
111
+ | 6 | Markdown links have names and absolute HTTP or HTTPS targets | none | Missing links, empty names, relative targets or targets that do not parse as HTTP or HTTPS URLs, or a list line under an H2 of one of two kinds. The first kind looks like a link entry but is not a Markdown link, such as an unclosed destination in `- [Name](https://example.com/a.md: notes)`. The second kind opens with an en dash, an em dash or a bullet instead of a list marker, followed by a space or a tab and an opening bracket, whether or not its link parses. A line with such a character and no opening bracket is not counted, and a no-break space does not count as the space. When the read was truncated, the last line read is not counted, because the read limit may have cut it. The detail has one sentence per kind, each with its count and the first five line numbers |
112
112
  | 7 | File is small enough to read cheaply | none | Over 50 KiB, which is 51,200 bytes, or truncated at the 256 KiB read limit |
113
113
  | 8 | File contains no HTML markup | none | An opening tag with its closing `>`, a closing tag or an HTML comment is found in the prose. Inline code spans, fenced code and backslash-escaped angle brackets such as `\<node-name\>` are not read, so `<endpoint-id>` in a code span does not warn. An attribute name is any run of characters other than white space, quotes, `<`, `>`, `/` and `=` that holds a Unicode letter, a Unicode digit or the character `_`, so `<div @click="x">` warns. Autolinks such as `<https://example.com>` and prose such as `a <b + c` are not tags. A tag still open at the end of the file, such as `<div class="x"`, has no closing `>` and does not warn |
114
114
 
115
- Some failures stop the file checks early. For example, an HTML response is reported as a failed plain-text check rather than parsed as Markdown.
115
+ Some failures stop the file checks early. For example, an HTML response is reported as a failed plain-text check rather than parsed as Markdown. The response bytes are always decoded as UTF-8, and the `charset` parameter of the media type is not used.
116
116
 
117
117
  ### How links, headings and list items are read
118
118
 
@@ -124,14 +124,14 @@ Links are read the way CommonMark reads them for the forms listed here.
124
124
  - A link in an ordered list, a target in angle brackets and a target with a title in double or single quotes do count.
125
125
  - A title in parentheses is not read, so `[Guide](https://example.org/guide (Overview))` is not collected.
126
126
  - An unbracketed target keeps balanced parentheses, so `https://example.org/docs_(v2)` is read whole. A target with an unbalanced parenthesis is not a link, and neither is a reference definition whose destination is unbalanced. Write a target with an unbalanced parenthesis in angle brackets or escape the parenthesis. The nesting depth is not limited, where CommonMark stops at 32.
127
- - A link reference definition or label that spans several lines is not handled. A reference image whose label has a definition is skipped like an inline image. An empty target, `[Guide]()` or `[Guide](<>)`, is a link with an empty target and counts as a relative link.
127
+ - A shortcut or inline link whose text spans several lines counts when its definition is on one line, and a definition title may sit on the next line. A full reference whose own label spans lines, a definition whose destination is on the next line and a definition whose label spans lines are not read, so the list line warns. A reference image whose label has a definition is skipped like an inline image. An empty target, `[Guide]()` or `[Guide](<>)`, is a link with an empty target and counts as a relative link.
128
128
  - A link written inside the description text of an image, as in `![alt [Guide](https://example.org/a)](https://example.org/img.png)`, does not count. An image without a target (`![alt [Guide](https://example.org/a)]`) is read the way CommonMark reads it: the inner link counts.
129
129
  - A pair of brackets inside a code span, as in `` [`Array[T]` reference](https://example.org/a) ``, neither closes nor opens a label. A link label ends where its paragraph ends. A line that can interrupt the paragraph, such as a heading, a bullet, a number starting at 1, a quote or a fence, therefore means there is no link. A backslash at the end of a line is a hard line break and escapes nothing, so the label does not continue into the next line: `- [Guide\` followed by `- more](https://example.org/a)` is two list items and no link. Until 0.8.0 the label continued into the next list item or heading.
130
130
  - A shortcut reference `[Guide]` counts after a colon in the same line and after an inline target that did not parse, as in `[Guide](not a link)`. A `[Guide]:` at the start of a definition line does not resolve against itself.
131
131
  - A link reference definition opens only where a block starts. It can open, for example, after a blank line, a heading, a fence or a thematic break. It can also open at the start of a quote, as a list item or right after another definition. A line that continues a paragraph or a list item is not a definition. A definition indented four columns or more inside a list item is not read. A link written in the destination of a definition line is still counted as a link.
132
- - Labels match by Unicode case folding. Character references in a target need their semicolon: `https&#58;//example.org` decodes, `https&#58//example.org` stays as written. A no-break or ideographic space is part of a target. Only an ASCII space, a tab or another control character ends one.
132
+ - Labels match after each run of spaces, tabs and line feeds is collapsed to one space, then by lowercase, then by uppercase. This is not full Unicode case folding. For example, U+0131 and U+212A match i and k, U+1E9E matches ss, U+FB00 matches ff and U+03C2 matches U+03C3. A no-break space is not collapsed. Character references in a target need their semicolon: `https&#58;//example.org` decodes, `https&#58//example.org` stays as written. A no-break or ideographic space is part of a target. Only an ASCII space, a tab or another control character ends one.
133
133
  - In this validator a raw HTML block is one of types 1 to 7 of CommonMark, and it is read only where its start is certain. The opener must be on the first line, after a blank line, or after a heading that itself stood at such a place. It must be indented at most three columns and stand outside every open list item. Under a paragraph line, a quote line, a list item line or another HTML line the opener hides nothing, and the lines after it keep their ordinary reading. The lines of a block hold no links, definitions, list items or headings for the checks. A `## Docs` line inside such a block is part of the block and no H2 section. Examples are the line between `<?x` and `?>` and the line directly under a `<div>` that stands after a blank line, with no blank line between them. Until 0.8.0 such a line counted as a section. The no-HTML check still reads them. A fence opener inside an HTML block is still read as a fence.
134
- - A title, a link name or a summary whose text is only character references to white space, code spans of white space or empty quote markers counts as empty: `# &#32;`, `` [` `](https://example.org/a) ``, `>>` and `> >`. A line with only a no-break or ideographic space is not a blank line.
134
+ - A title (written with `#` or underlined with `=`), a link name or a summary whose text is only character references to white space, code spans of white space or empty quote markers counts as empty: `# &#32;`, `` [` `](https://example.org/a) ``, `>>` and `> >`. A line with only a no-break or ideographic space is not a blank line.
135
135
  - A quote escaped with a backslash inside a link title, as in `[A](https://example.org/a "Ti\"tle\"")`, is not recognised, so that link is dropped. A title that spans a line break is dropped the same way.
136
136
  - Nested brackets in a link label, as in `[A [x] B](https://example.org/a)`, drop the link. A link label cannot span a blank line.
137
137
  - A backslash escape in a target is resolved before the URL test, so `https\://example.org/guide` is read as `https://example.org/guide`.
@@ -159,7 +159,7 @@ These checks are labelled **v2** in the output. They look for link relations in
159
159
 
160
160
  The validator detects these declarations without fetching their targets. It reads the first 65,536 UTF-16 code units of the head after comments and the contents of script, style, title, noscript, noframes and template elements have been set aside. When a relation is missing from a longer head, the result says that only that part was read. Inside a script, `<!-->` and `<!--->` end the comment escape at once, as the HTML tokenizer reads them, and a `<template>` inside `<svg>` or `<math>` is an ordinary element that opens no template level. Until 0.8.0 both shapes made the scan skip a relation that the parser puts in the head, or read one that it moves into the body.
161
161
 
162
- The home page itself is read up to 256 KiB. When a relation is missing, the info text names at most one of the two limits. If the head is longer than 65,536 characters, it names that limit, "in the first 65,536 characters of the head, the part that was read, or in the Link header", even when the page was also cut at 256 KiB. If the head is within the limit and the page was cut at 256 KiB, it says "in the first 256 KiB of the home page, the part that was read, or in the Link header". With neither limit reached it says "in the head or the Link header". A relation found in the part that was read is reported as found. A target is shown with its credentials and fragment removed and its query values masked.
162
+ The home page itself is read up to 256 KiB, or up to the byte count of a caller's `cap`. A caller's limit is named as a byte count, as in "in the first 1024 bytes of the home page, the part that was read, or in the Link header". When a relation is missing, the info text names at most one of the two limits. If the head is longer than 65,536 characters, it names that limit, "in the first 65,536 characters of the head, the part that was read, or in the Link header", even when the page was also cut at 256 KiB. If the head is within the limit and the page was cut at 256 KiB, it says "in the first 256 KiB of the home page, the part that was read, or in the Link header". With neither limit reached it says "in the head or the Link header". A relation found in the part that was read is reported as found. A target is shown with its credentials and fragment removed and its query values masked.
163
163
 
164
164
  A `Link` header value that has an `anchor` parameter is used only when the anchor is empty or resolves to the home page address. This is because an anchored value describes another resource.
165
165
 
@@ -198,15 +198,15 @@ The package also exports the helper functions and types behind `validateHost`, s
198
198
  | --- | --- | --- |
199
199
  | `timeoutMs` | Time budget for one document, shared across its redirect chain. The default is `8000`. | An integer from 1 to 2,147,483,647. |
200
200
  | `cap` | Read limit in bytes per response. The default is `262144`, which is 256 KiB. | An integer from 1 to 2,097,152. |
201
- | `userAgent` | Value of the `user-agent` request header. | A string that the platform accepts as a header value. |
202
- | `accept` | Value of the `accept` request header, read by `fetchLlmsTxt`. | A string that the platform accepts as a header value. |
201
+ | `userAgent` | Value of the `user-agent` request header. The default is `turva-llms-txt-validator/<version> (+https://turva.dev/llms-txt-validator)`. | A string that the platform accepts as a header value. |
202
+ | `accept` | Value of the `accept` request header, read by `fetchLlmsTxt`. The default is `text/plain, text/markdown;q=0.9, */*;q=0.1`. | A string that the platform accepts as a header value. |
203
203
  | `path` | Path and query of the request, read by `fetchLlmsTxt`. The default is `/llms.txt`. | A string that starts with a single `/`. |
204
204
 
205
- `validateHost` pins its two reads to `/llms.txt` and `/`, each with its own `accept` value, so it ignores `path` and `accept`.
205
+ `validateHost` pins its two reads to `/llms.txt` and `/`, each with its own `accept` value, so it ignores `path` and `accept`. It reads the home page with `accept: text/html, */*;q=0.1`.
206
206
 
207
207
  A call rejects before any request is sent when an option is outside these values. `undefined` and `null` mean the default for `timeoutMs`, `cap` and `path`. `timeoutMs` and `cap` reject with a `RangeError`: `NaN`, `Infinity`, `0`, a negative number, a fraction, a string and a value above the maximum are all refused. Until 0.8.0, `NaN` and `Infinity` as `cap` switched the read limit off, and a `cap` of several megabytes could end in an internal `RangeError`. The maximum of `cap` is there because the HTML check reads the whole body with one pattern, and a body of several megabytes of attribute-like text made it run out of stack.
208
208
 
209
- `path` rejects with a `TypeError` when it does not start with a single `/` or holds a C0 control character or DEL. C1 control characters are accepted. This covers an empty string, `x`, `:8443/x`, `@host/x`, `//host/x`, a backslash right after the slash, an absolute URL and a query or fragment alone. Such a path could change the port or the host of the request. A path that starts with a single `/` can carry only a path and a query, and the request keeps the host that was checked.
209
+ `path` rejects with a `TypeError` when it does not start with a single `/` or holds a C0 control character or DEL. C1 control characters are accepted. This covers an empty string, `x`, `:8443/x`, `@host/x`, `//host/x`, a backslash right after the slash, an absolute URL and a query or fragment alone. Such a path could change the port or the host of the request. A path that starts with a single `/` can carry only a path and a query, and the request keeps the host that was checked. A fragment in `path` is accepted and shows in `finalUrl`, but the request does not carry it.
210
210
 
211
211
  The size note of check 7 says "over 256 KiB, read truncated" whatever `cap` is, because the check only reads whether the body was cut.
212
212
 
@@ -229,12 +229,12 @@ The default validation requests two documents: `https://<host>/llms.txt` and `ht
229
229
 
230
230
  - Timeout: eight seconds per document, shared across its redirect chain.
231
231
  - Read limit: 256 KiB, which is 262,144 bytes, per response by default. A file cut there gets the size note "over 256 KiB, read truncated". A library caller can change the limit, see the options above.
232
- - Redirects: up to four hops, over HTTPS, to the same host or its `www`/apex equivalent. Off-site redirects, embedded credentials and unsupported ports are rejected. A redirect target is reported with its credentials and fragment removed and its query values masked, whether the redirect was followed or rejected.
233
- - Host checks: IP literals, bracketed IPv6 addresses, localhost and the internal-use TLDs `localdomain`, `local`, `internal`, `home`, `lan`, `corp`, `test`, `invalid`, `arpa` and `onion` are rejected before a request is sent. An address that holds `@`, `?` or `#` is not repeated in the error message, because it can carry a user name, a password or a query value. The message names the host that a URL parser reads from such an address only when that host is the text right after the last `@`, or when the address holds no `@`. So `//user?@example.com`, where the parser reads the user name as the host, names no host. One trailing dot on the host you give, as in `example.com.`, is removed first. Redirect targets are checked too, and one trailing dot on a redirect target is removed the same way.
232
+ - Redirects: up to four hops, over HTTPS, to the same host or its `www`/apex equivalent. Off-site redirects, embedded credentials and unsupported ports are rejected. A redirect target is reported with its credentials and fragment removed and its query values masked, whether the redirect was followed or rejected. A result names a redirect target in the `location` field, in the sentences about another host and an unsupported target, and in the address a followed redirect reached. The sentences about too many redirects and an unusable `Location` name no target.
233
+ - Host checks: IP literals, bracketed IPv6 addresses, localhost and the internal-use TLDs `localdomain`, `local`, `internal`, `home`, `lan`, `corp`, `test`, `invalid`, `arpa` and `onion` are rejected before a request is sent. An address that holds `@`, `?` or `#` is not repeated in the error message, because it can carry a user name, a password or a query value. The message names the host that a URL parser reads from such an address only when that host is the text right after the last `@`, or when the address holds no `@`. So `//user?@example.com`, where the parser reads the user name as the host, names no host. The address `//user.example?@example.com` is accepted as the host `user.example`, because a URL parser ends the host at the `?`. It requests that host and shows it as the target. One trailing dot on the host you give, as in `example.com.`, is removed first. Redirect targets are checked too, and one trailing dot on a redirect target is removed the same way.
234
234
 
235
235
  **DNS resolution is not checked for private addresses.** A syntactically public domain can resolve to a private IP, so if you expose this package through a service that accepts untrusted domains, enforce private-address restrictions at the network layer. Local and CI runs use their own network policy. The hosted validator runs on the Cloudflare edge.
236
236
 
237
- For vulnerability reporting and supported versions, see [SECURITY.md](https://github.com/erekola/llms-txt-validator/blob/main/SECURITY.md).
237
+ For vulnerability reporting and supported versions, see [SECURITY.md](https://github.com/turva-dev/llms-txt-validator/blob/main/SECURITY.md).
238
238
 
239
239
  ## Release process
240
240
 
@@ -246,24 +246,24 @@ GitHub Actions tests Node.js 22, 24 and 26 on Ubuntu and Node.js 22 on Windows.
246
246
 
247
247
  Up to 0.3.21 the package was plain JavaScript modules, starting with `src/index.mjs`. Version 0.4.0, released on 21 October 2026, ports it to TypeScript compiled to `dist/`, and the entry point moved to `dist/src/index.js` behind the same `exports` name. The compiled library has the same 12 493 JavaScript tokens as 0.3.21, apart from the relative path to `package.json`. A differential run fed both versions 4 160 000 generated `llms.txt` inputs and 832 000 HTML heads and found no difference. The CLI kept its flags, its output and its exit codes.
248
248
 
249
- The strict type check found two inputs that could leave `undefined` in a check's detail. Neither `fetchLlmsTxt` nor `validateHost` produces them, and 0.4.1 fixed both. Each release is described in [CHANGELOG.md](https://github.com/erekola/llms-txt-validator/blob/main/CHANGELOG.md).
249
+ The strict type check found two inputs that could leave `undefined` in a check's detail. Neither `fetchLlmsTxt` nor `validateHost` produces them, and 0.4.1 fixed both. Each release is described in [CHANGELOG.md](https://github.com/turva-dev/llms-txt-validator/blob/main/CHANGELOG.md).
250
250
 
251
251
  ## Verify a release
252
252
 
253
253
  GitHub Actions publishes every version from 0.1.3 on with npm trusted publishing, and each one carries a provenance attestation. To check one, install it in an empty directory and ask npm to verify the signatures. Replace the version with the one you want to check.
254
254
 
255
255
  ```sh
256
- mkdir verify-llms && cd verify-llms && npm init -y && npm install turva-llms-txt-validator@0.8.3 --ignore-scripts && npm audit signatures
256
+ mkdir verify-llms && cd verify-llms && npm init -y && npm install turva-llms-txt-validator@0.8.5 --ignore-scripts && npm audit signatures
257
257
  ```
258
258
 
259
- `npm audit signatures` checks the registry signature and the provenance attestation of each installed package that has one. The attestation of this package names three things to compare with what you expect: the repository `github.com/erekola/llms-txt-validator`, the workflow file `.github/workflows/publish.yml` and the commit that produced the tarball. The npm version page shows them under Provenance.
259
+ `npm audit signatures` checks the registry signature and the provenance attestation of each installed package that has one. The attestation of this package names three things to compare with what you expect: the repository, the workflow file `.github/workflows/publish.yml` and the commit that produced the tarball. Versions up to and including 0.8.4 were built in `github.com/erekola/llms-txt-validator`, before the repository moved to the turva-dev organization on 2026-11-25. Every later release is built in `github.com/turva-dev/llms-txt-validator`. The npm version page shows them under Provenance.
260
260
 
261
- Tag `v0.8.3` must point at that same commit, and `gh api repos/erekola/llms-txt-validator/commits/v0.8.3 --jq .sha` prints it. A mismatch is a reason not to use that version. Provenance proves which workflow built a release and from which commit. It does not prove that the code is safe, so reading the source and the dependencies stays your job.
261
+ Tag `v0.8.5` must point at that same commit, and `gh api repos/turva-dev/llms-txt-validator/commits/v0.8.5 --jq .sha` prints it. A mismatch is a reason not to use that version. Provenance proves which workflow built a release and from which commit. It does not prove that the code is safe, so reading the source and the dependencies stays your job.
262
262
 
263
263
  ## Development
264
264
 
265
265
  ```sh
266
- git clone https://github.com/erekola/llms-txt-validator.git
266
+ git clone https://github.com/turva-dev/llms-txt-validator.git
267
267
  cd llms-txt-validator
268
268
  npm ci --ignore-scripts
269
269
  npm run typecheck
@@ -274,7 +274,7 @@ npm test
274
274
 
275
275
  ## Hosted version and source
276
276
 
277
- The [hosted validator](https://turva.dev/llms-txt-validator) accepts any public domain in the browser. For any host other than turva.dev itself it requests the same two documents, `/llms.txt` and the home page. For turva.dev it validates the site's own files directly, without a request. The hosted validator reads www.turva.dev the same way and reports https://turva.dev/llms.txt as the target. This package requests www.turva.dev as typed, follows its redirect and reports https://www.turva.dev/llms.txt. It runs the same checks. Its source is in the [turva.dev Cloudflare Worker](https://github.com/erekola/turva-worker). The hosted validator is the canonical implementation: if results diverge, this package is updated to match it.
277
+ The [hosted validator](https://turva.dev/llms-txt-validator) accepts any public domain in the browser. For any host other than turva.dev itself it requests the same two documents, `/llms.txt` and the home page. For turva.dev it validates the site's own files directly, without a request. The hosted validator reads www.turva.dev the same way and reports https://turva.dev/llms.txt as the target. This package requests www.turva.dev as typed, follows its redirect and reports https://www.turva.dev/llms.txt. It runs the same checks. Its source is in the [turva.dev Cloudflare Worker](https://github.com/turva-dev/turva-worker). The hosted validator is the canonical implementation: if results diverge, this package is updated to match it.
278
278
 
279
279
  The hosted version also returns JSON with the same result shape for a completed validation. Its errors are shaped differently: an `error` field, plus a `docs` link when the `url` parameter is missing, with HTTP status 400 and no `target`. The site-wide rate limiter can also answer HTTP 429 as plain text, with a `Retry-After` header, before the validator runs, and that answer is not JSON.
280
280
 
@@ -288,13 +288,13 @@ In Windows PowerShell, use `curl.exe` if `curl` resolves to `Invoke-WebRequest`.
288
288
 
289
289
  ## Check HTML and Markdown content
290
290
 
291
- [markdown-parity-check](https://github.com/erekola/markdown-parity-check) is a separate tool for a different question. This validator reads the structure of `llms.txt` and the home page's discovery links. The parity check compares the main content of one page's HTML and Markdown versions and reports changed text, numbers, links or blocks. It requires Node.js 22 or newer:
291
+ [markdown-parity-check](https://github.com/turva-dev/markdown-parity-check) is a separate tool for a different question. This validator reads the structure of `llms.txt` and the home page's discovery links. The parity check compares the main content of one page's HTML and Markdown versions and reports changed text, numbers, links or blocks. It requires Node.js 22 or newer:
292
292
 
293
293
  ```sh
294
294
  npx --yes markdown-parity-check --url https://example.com/page --format json
295
295
  ```
296
296
 
297
- Replace the URL with your page. If Markdown is served at another address, add `--markdown-url https://example.com/page.md`. Its [browser version](https://turva.dev/markdown-parity-check) on turva.dev checks turva.dev's own pages only. See the [comparison README](https://github.com/erekola/markdown-parity-check) for local-file mode, exit codes and limits.
297
+ Replace the URL with your page. If Markdown is served at another address, add `--markdown-url https://example.com/page.md`. Its [browser version](https://turva.dev/markdown-parity-check) on turva.dev checks turva.dev's own pages only. See the [comparison README](https://github.com/turva-dev/markdown-parity-check) for local-file mode, exit codes and limits.
298
298
 
299
299
  ## License
300
300
 
@@ -37,10 +37,10 @@ export type FetchRedirect = {
37
37
  location: string;
38
38
  };
39
39
  export type ValidateHostOptions = {
40
- timeoutMs?: number;
41
- cap?: number;
40
+ timeoutMs?: number | null;
41
+ cap?: number | null;
42
42
  userAgent?: string;
43
- path?: string;
43
+ path?: string | null;
44
44
  accept?: string;
45
45
  };
46
46
  export type FetchOptions = ValidateHostOptions;
@@ -56,6 +56,6 @@ export declare function isValidPublicHost(host: string | null | undefined): bool
56
56
  export declare function fetchLlmsTxt(host: string, opts?: FetchOptions): Promise<FetchedLlmsTxt | FetchRedirect>;
57
57
  export declare function validateLlmsTxt(f: LlmsTxtInput): LlmsCheck[];
58
58
  export declare function findLinkRelations(html: string, linkHeader: string, readCut?: boolean, homeUrls?: readonly string[]): LinkRelations;
59
- export declare function validateV2Discovery(found: LinkRelations | null, unreadReason?: string): LlmsCheck[];
59
+ export declare function validateV2Discovery(found: LinkRelations | null, unreadReason?: string, readCap?: number): LlmsCheck[];
60
60
  export declare function summarizeChecks(checks: LlmsCheck[]): ChecksSummary;
61
61
  export declare function validateHost(input: unknown, opts?: ValidateHostOptions): Promise<ValidationResult>;
package/dist/src/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // turva-llms-txt-validator: validate a site's llms.txt structure.
2
2
  // The checks mirror the hosted validator at https://turva.dev/llms-txt-validator,
3
3
  // which runs this same logic inside the turva.dev Cloudflare Worker
4
- // (https://github.com/erekola/turva-worker). The hosted validator stays
4
+ // (https://github.com/turva-dev/turva-worker). The hosted validator stays
5
5
  // canonical: if the two ever disagree, the hosted one wins and this package
6
6
  // gets the fix. No tool compares the two sources: the mirror is kept by hand, and the
7
7
  // test files of the two repos carry the same inputs and expectations by hand too.
@@ -30,16 +30,91 @@ export function cut(s, n) {
30
30
  function trimEnds(s, strip) {
31
31
  let a = 0;
32
32
  let b = s.length;
33
- while (a < b && strip(s.charCodeAt(a)))
34
- a++;
35
- while (b > a && strip(s.charCodeAt(b - 1)))
36
- b--;
33
+ // The characters are read as code points, so a character outside the Basic Multilingual Plane (the tag characters
34
+ // U+E0000 to U+E007F, for one) is one character at an end and not two lone surrogates.
35
+ while (a < b) {
36
+ const c = s.codePointAt(a);
37
+ if (!strip(c))
38
+ break;
39
+ a += c > 0xffff ? 2 : 1;
40
+ }
41
+ while (b > a) {
42
+ const lo = s.charCodeAt(b - 1);
43
+ const pair = lo >= 0xdc00 && lo <= 0xdfff && b - 2 >= a && s.charCodeAt(b - 2) >= 0xd800 && s.charCodeAt(b - 2) <= 0xdbff;
44
+ const c = pair ? s.codePointAt(b - 2) : lo;
45
+ if (!strip(c))
46
+ break;
47
+ b -= pair ? 2 : 1;
48
+ }
37
49
  return s.slice(a, b);
38
50
  }
39
51
  // The characters maskLocation() removes at either end of an address: C0 controls and spaces, which a URL parser
40
- // drops, and the Unicode white space, U+0085, U+180E, U+200B and U+FFFD, which a reader does not see.
52
+ // drops, and every character a reader does not see: the white space, the separators, the control and format characters
53
+ // and the default-ignorable code points of Unicode (soft hyphen, the direction marks, the word joiner, the Hangul
54
+ // fillers, the variation selectors and the tag characters among them), plus U+0085, U+180E, U+200B, U+2800 and U+FFFD.
55
+ // A list of three such characters left the rest in front of "//user:password@host", which then read as a relative path
56
+ // and showed the password (K2-F1 of the outside reading, 2026-11-22). Every other character at an end stays.
57
+ const URL_EDGE_CLASS = /^[\s\p{Cc}\p{Cf}\p{Z}\p{Default_Ignorable_Code_Point}]$/u;
41
58
  function isUrlEdge(c) {
42
- return c <= 0x20 || c === 0x85 || c === 0x180e || c === 0x200b || c === 0xfffd || /\s/.test(String.fromCharCode(c));
59
+ if (c <= 0x20 || c === 0x85 || c === 0x180e || c === 0x200b || c === 0x2800 || c === 0xfffd)
60
+ return true;
61
+ if (c >= 0xd800 && c <= 0xdfff)
62
+ return false;
63
+ return URL_EDGE_CLASS.test(String.fromCodePoint(c));
64
+ }
65
+ // A header value reaches this code as one code unit per byte (fetch hands out a ByteString), so a Location whose bytes are
66
+ // UTF-8 text shows each character as two or three Latin-1 characters, and an invisible character at its start (U+3000 as
67
+ // the bytes E3 80 80) is then not the character the edge trim removes (V1 of the C1c outside run, 2026-11-22). The value
68
+ // is read as UTF-8 text when every code unit is a byte, one valid sequence at a time. Only
69
+ // the masking reads this text: the address that is followed is resolved from the value as it arrived.
70
+ function headerText(raw) {
71
+ let high = false;
72
+ for (let i = 0; i < raw.length; i++) {
73
+ const c = raw.charCodeAt(i);
74
+ if (c > 0xff)
75
+ return raw;
76
+ if (c > 0x7f)
77
+ high = true;
78
+ }
79
+ if (!high)
80
+ return raw;
81
+ // Valid UTF-8 sequences are decoded one by one, so a multi-byte invisible lead is read as the character it spells even when
82
+ // another byte of the value is invalid (QA-1, 2026-11-23). A byte that is not valid UTF-8 stays as it arrived between the
83
+ // first and the last printable ASCII character, and is U+FFFD, an edge character, before the first and after the last one,
84
+ // so such a byte cannot shield the edge characters next to it from the trim.
85
+ const bytes = Uint8Array.from(raw, (ch) => ch.charCodeAt(0));
86
+ let firstAscii = -1;
87
+ let lastAscii = -1;
88
+ for (let i = 0; i < bytes.length; i++) {
89
+ if (bytes[i] > 0x20 && bytes[i] < 0x7f) {
90
+ if (firstAscii < 0)
91
+ firstAscii = i;
92
+ lastAscii = i;
93
+ }
94
+ }
95
+ const decoder = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
96
+ let out = "";
97
+ let i = 0;
98
+ while (i < bytes.length) {
99
+ const b = bytes[i];
100
+ if (b < 0x80) {
101
+ out += raw[i];
102
+ i++;
103
+ continue;
104
+ }
105
+ const len = b >= 0xc2 && b <= 0xdf ? 2 : b >= 0xe0 && b <= 0xef ? 3 : b >= 0xf0 && b <= 0xf4 ? 4 : 0;
106
+ if (len > 0 && i + len <= bytes.length) {
107
+ try {
108
+ out += decoder.decode(bytes.subarray(i, i + len));
109
+ i += len;
110
+ continue;
111
+ }
112
+ catch { /* not valid UTF-8 */ }
113
+ }
114
+ out += firstAscii < 0 || i < firstAscii || i > lastAscii ? "\ufffd" : raw[i];
115
+ i++;
116
+ }
117
+ return out;
43
118
  }
44
119
  // C0 controls and spaces, the characters a URL parser removes at either end of an address.
45
120
  function isC0OrSpace(c) {
@@ -457,16 +532,17 @@ export async function fetchLlmsTxt(host, opts = {}) {
457
532
  }
458
533
  catch { /* the verdict below is the answer */ }
459
534
  const loc = res.headers.get("location") || "";
535
+ const shown = headerText(loc);
460
536
  if (!loc)
461
537
  return { redirect: true, reason: "no-location", status: res.status, location: "" };
462
538
  if (hop >= 4)
463
- return { redirect: true, reason: "too-many", status: res.status, location: cut(maskLocation(loc, hidden ? undefined : url), 120) };
539
+ return { redirect: true, reason: "too-many", status: res.status, location: cut(maskLocation(shown, hidden ? undefined : url), 120) };
464
540
  let next;
465
541
  try {
466
542
  next = new URL(loc, url);
467
543
  }
468
544
  catch {
469
- return { redirect: true, reason: "bad-location", status: res.status, location: cut(maskLocation(loc, hidden ? undefined : url), 120) };
545
+ return { redirect: true, reason: "bad-location", status: res.status, location: cut(maskLocation(shown, hidden ? undefined : url), 120) };
470
546
  }
471
547
  const parsedHref = next.href;
472
548
  // LV-22 (round S3, Tek-546): one trailing dot names the same host, as it does in the typed
@@ -477,9 +553,9 @@ export async function fetchLlmsTxt(host, opts = {}) {
477
553
  const safeTarget = next.protocol === "https:" && !next.port && !next.username && !next.password && isValidPublicHost(next.hostname);
478
554
  const twin = (next.hostname.startsWith("www.") ? next.hostname.slice(4) : next.hostname) === reqApex;
479
555
  if (!safeTarget)
480
- return { redirect: true, reason: "unsafe-target", status: res.status, location: cut(maskLocation(next.href, undefined, loc), 120) };
556
+ return { redirect: true, reason: "unsafe-target", status: res.status, location: cut(maskLocation(next.href, undefined, shown), 120) };
481
557
  if (!twin)
482
- return { redirect: true, reason: "off-host", status: res.status, location: cut(maskLocation(next.href, undefined, loc), 120) };
558
+ return { redirect: true, reason: "off-host", status: res.status, location: cut(maskLocation(next.href, undefined, shown), 120) };
483
559
  // A followed Location that reads as user information, as user_name:password@example.com resolved into
484
560
  // https://example.com/user_name:password@example.com, kept the password in the address the report showed (n1,
485
561
  // independent rerun 2026-11-22). The Location is read as written, against the address it came from, as a refused
@@ -497,7 +573,7 @@ export async function fetchLlmsTxt(host, opts = {}) {
497
573
  catch {
498
574
  return true;
499
575
  } })();
500
- hidden = maskLocation(loc, url) !== maskLocation(parsedHref) || maskLocation(next.href, undefined, loc) !== maskLocation(next.href) || (hidden && inheritsBase);
576
+ hidden = maskLocation(shown, url) !== maskLocation(parsedHref) || maskLocation(next.href, undefined, shown) !== maskLocation(next.href) || (hidden && inheritsBase);
501
577
  if (!redirectedFrom)
502
578
  redirectedFrom = url;
503
579
  url = next.href;
@@ -1826,10 +1902,14 @@ export function validateLlmsTxt(f) {
1826
1902
  const h1End = setext ? firstIdx + 1 : firstIdx;
1827
1903
  // A title that renders no text, "# &#32;" or a code span of spaces, is an empty H1 as well (S3, LV-15).
1828
1904
  const titleBlank = title !== null && !hasVisibleText(title);
1829
- if ((title && !titleBlank) || setext) {
1905
+ // A setext title whose text renders nothing is an empty H1 as well (P14, the K2 reading of 2026-11-22): "&#32;" or a
1906
+ // code span of one space over a line of "=" passed until 0.8.3 while the same text after "# " failed. A line of nothing
1907
+ // but spaces is no first line at all, so it never gets here.
1908
+ const setextBlank = setext && !hasVisibleText(firstRaw.trim());
1909
+ if ((title && !titleBlank) || (setext && !setextBlank)) {
1830
1910
  add("h1-title", "pass", "Starts with an H1 title", JSON.stringify(cut(first, 80)));
1831
1911
  }
1832
- else if (titleBlank) {
1912
+ else if (titleBlank || setextBlank) {
1833
1913
  add("h1-title", "fail", "Starts with an H1 title", "the H1 has no text. The format requires the project name there");
1834
1914
  }
1835
1915
  else {
@@ -2112,6 +2192,13 @@ export function validateLlmsTxt(f) {
2112
2192
  }
2113
2193
  // A list line that looks like a link entry but is not one (Tek-730) turns the links check to a warn.
2114
2194
  const lookalikes = unparsedLinkEntries(lines, fenced, new Set(proseLinks.map((m) => m.at)), codeSpanMask(linkText, linkBlocks), defAt, htmlLine);
2195
+ // A truncated read can end inside a list line, so that last line is left out of this check:
2196
+ // calling a line malformed when the read cut it is unsupported (0.8.5, mirrors the hosted validator).
2197
+ if (f.truncated) {
2198
+ const cut = lines.length;
2199
+ lookalikes.unparsed = lookalikes.unparsed.filter((n) => n !== cut);
2200
+ lookalikes.marker = lookalikes.marker.filter((n) => n !== cut);
2201
+ }
2115
2202
  if (lookalikes.unparsed.length + lookalikes.marker.length > 0) {
2116
2203
  const lk = checks[checks.length - 1];
2117
2204
  lk.status = "warn";
@@ -3316,7 +3403,9 @@ export function findLinkRelations(html, linkHeader, readCut = false, homeUrls =
3316
3403
  }
3317
3404
  // A caller that passes null without a reason gets a neutral one instead of an undefined detail (Tek-668,
3318
3405
  // NULL-1, mirrored from worker.ts); validateHost always passes its own.
3319
- export function validateV2Discovery(found, unreadReason = "the home page was not read, so this was not measured") {
3406
+ // readCap is the read limit in bytes the home page was read with, so the text about a cut page names the limit that was
3407
+ // used: "256 KiB" for the default and the number of bytes for a limit a library caller set (n5, K2 reading 2026-11-22).
3408
+ export function validateV2Discovery(found, unreadReason = "the home page was not read, so this was not measured", readCap = 262144) {
3320
3409
  const checks = [];
3321
3410
  const add = (id, status, label, detail) => checks.push({ id, status, label, detail });
3322
3411
  if (!found) {
@@ -3327,7 +3416,8 @@ export function validateV2Discovery(found, unreadReason = "the home page was not
3327
3416
  // A target is shown through maskLocation, as a redirect target is, so a user name, a password,
3328
3417
  // a query value or a fragment in a published link stays out of the report; until 2026-09-27 it
3329
3418
  // was only cut (Tek-496). A relative target stays relative.
3330
- const where = found.headCut ? "in the first 65,536 characters of the head, the part that was read, or in the Link header" : found.readCut ? "in the first 256 KiB of the home page, the part that was read, or in the Link header" : "in the head or the Link header";
3419
+ const readLimit = readCap === 262144 ? "256 KiB" : readCap + " bytes";
3420
+ const where = found.headCut ? "in the first 65,536 characters of the head, the part that was read, or in the Link header" : found.readCut ? "in the first " + readLimit + " of the home page, the part that was read, or in the Link header" : "in the head or the Link header";
3331
3421
  add("v2-describedby", found.describedby ? "pass" : "info", "Home page points to its llms.txt (v2)", found.describedby ? 'rel="describedby" to ' + cut(maskLocation(found.describedby), 120) : 'no rel="describedby" ' + where + '; v2 recommends it so an agent finds the file without guessing');
3332
3422
  add("v2-markdown-alternate", found.markdown ? "pass" : "info", "Home page points to a markdown version (v2)", found.markdown ? 'rel="alternate" type="text/markdown" to ' + cut(maskLocation(found.markdown), 120) : 'no rel="alternate" type="text/markdown" ' + where + '; v2 recommends it so an agent finds the markdown form without guessing');
3333
3423
  return checks;
@@ -3361,7 +3451,7 @@ export async function validateHost(input, opts = {}) {
3361
3451
  ? validateV2Discovery(null, "the home page redirects away from this host, so this was not measured")
3362
3452
  : home.status !== 200
3363
3453
  ? validateV2Discovery(null, "the home page returned HTTP " + home.status + ", so this was not measured")
3364
- : validateV2Discovery(findLinkRelations(home.text, home.linkHeader, home.truncated, [home.finalUrl, "https://" + host + "/"]));
3454
+ : validateV2Discovery(findLinkRelations(home.text, home.linkHeader, home.truncated, [home.finalUrl, "https://" + host + "/"]), undefined, requestLimits(opts).cap);
3365
3455
  }
3366
3456
  catch {
3367
3457
  discovery = validateV2Discovery(null, "the home page could not be read, so this was not measured");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turva-llms-txt-validator",
3
- "version": "0.8.3",
3
+ "version": "0.8.5",
4
4
  "description": "Validate a site's llms.txt structure: eight checks as pass/warn/fail plus two llms.txt v2 discovery checks that read pass or info and never move the summary, JSON output. Same checks as the hosted validator at turva.dev/llms-txt-validator.",
5
5
  "type": "module",
6
6
  "main": "./dist/src/index.js",
@@ -43,11 +43,11 @@
43
43
  "license": "MIT",
44
44
  "repository": {
45
45
  "type": "git",
46
- "url": "git+https://github.com/erekola/llms-txt-validator.git"
46
+ "url": "git+https://github.com/turva-dev/llms-txt-validator.git"
47
47
  },
48
48
  "homepage": "https://turva.dev/llms-txt-validator",
49
49
  "bugs": {
50
- "url": "https://github.com/erekola/llms-txt-validator/issues"
50
+ "url": "https://github.com/turva-dev/llms-txt-validator/issues"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/node": "^22.20.5",