@vllnt/next-llms 0.1.1-canary.7877bb2 → 0.1.1-canary.8271f69

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/CHANGELOG.md CHANGED
@@ -6,6 +6,26 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ### Changed
10
+
11
+ - `llms.txt` links the files shipped in the package (`README.md`, `docs/API.md`,
12
+ `CHANGELOG.md`, `LICENSE`) by relative path, so they match the installed
13
+ version, and adds a "For coding agents" note and an Ecosystem link to the
14
+ vllnt oss index. The README gains matching "For coding agents" and "Related
15
+ packages" sections.
16
+ - `package.json` `homepage` points to
17
+ `https://oss.vllnt.com/packages/next-llms`.
18
+ - Every push to `main` that changes the package or its shipped docs publishes a
19
+ canary; the canary job no longer depends on a repository variable.
20
+
21
+ ### Fixed
22
+
23
+ - The `llms.txt` link-list example showed a GitHub URL instead of `url`.
24
+ - `llms.txt` now documents the `400` response for unsafe paths and the `404` for
25
+ any non-string resolver result.
26
+ - README links to `SECURITY.md` and `CONTRIBUTING.md`, which are not in the
27
+ package, now point to GitHub so they resolve from `node_modules`.
28
+
9
29
  ## [0.1.0] - 2026-11-23
10
30
 
11
31
  First stable release. Earlier `0.1.0-canary.*` builds (npm `latest` pointed at
package/README.md CHANGED
@@ -56,10 +56,10 @@ pnpm add @vllnt/next-llms
56
56
  ```
57
57
 
58
58
  Node.js `>=18`; no peer dependencies (the package imports nothing from `next` or
59
- `react`). Every push to `main` can publish a prerelease to the `canary` channel
60
- (`pnpm add @vllnt/next-llms@canary`); stable releases are published from a
61
- `vX.Y.Z` tag. The older `generateLlmsFullText` API from early canary builds is
62
- not part of the stable API; use the two exports below.
59
+ `react`). Every push to `main` that changes the package publishes a prerelease
60
+ to the `canary` channel (`pnpm add @vllnt/next-llms@canary`); stable releases
61
+ are published from a `vX.Y.Z` tag. The older `generateLlmsFullText` API from
62
+ early canary builds is not part of the stable API; use the two exports below.
63
63
 
64
64
  ## Usage
65
65
 
@@ -87,6 +87,22 @@ Full reference: [docs/API.md](docs/API.md). Also see the [LLM index](llms.txt),
87
87
  [changelog](CHANGELOG.md), and
88
88
  [issue tracker](https://github.com/vllnt/next-llms/issues).
89
89
 
90
+ ## For coding agents
91
+
92
+ The docs ship inside the package at `node_modules/@vllnt/next-llms/docs/`, next
93
+ to `README.md`, `CHANGELOG.md`, `llms.txt` and the TypeScript source in `src/`.
94
+ They match the installed version. Read them before writing code that uses this
95
+ package.
96
+
97
+ The bundled `llms.txt` describes this package. It is not output of
98
+ `generateLlmsText`; the `llms.txt` your site serves is the one you build with
99
+ `generateLlmsText`.
100
+
101
+ ## Related packages
102
+
103
+ No other `@vllnt` package covers `llms.txt` manifests or markdown routes. See
104
+ every package at [oss.vllnt.com/packages](https://oss.vllnt.com/packages).
105
+
90
106
  ## Security
91
107
 
92
108
  - No secrets touched — the package generates text and serves whatever your
@@ -103,7 +119,8 @@ Full reference: [docs/API.md](docs/API.md). Also see the [LLM index](llms.txt),
103
119
  `{ cacheControl: "private, no-store" }`; authorization alone does not disable
104
120
  caching.
105
121
 
106
- See [docs/API.md](docs/API.md) and the [security reporting policy](SECURITY.md).
122
+ See [docs/API.md](docs/API.md) and the
123
+ [security reporting policy](https://github.com/vllnt/next-llms/blob/main/SECURITY.md).
107
124
 
108
125
  ## Testing
109
126
 
@@ -114,18 +131,20 @@ pnpm test:coverage # enforced 100% on covered files
114
131
 
115
132
  ## Contributing
116
133
 
117
- See [CONTRIBUTING.md](CONTRIBUTING.md).
134
+ See
135
+ [CONTRIBUTING.md](https://github.com/vllnt/next-llms/blob/main/CONTRIBUTING.md).
118
136
 
119
137
  ## Author
120
138
 
121
139
  Built by [bntvllnt](https://github.com/bntvllnt) ·
122
140
  [bntvllnt.com](https://bntvllnt.com) · [X @bntvllnt](https://x.com/bntvllnt)
123
141
 
124
- Part of the [@vllnt](https://github.com/vllnt) open-source fleet —
125
- [vllnt.com](https://vllnt.com)
126
-
127
142
  If this is useful, [sponsor the work](https://github.com/sponsors/bntvllnt).
128
143
 
129
144
  ## License
130
145
 
131
146
  MIT — see [LICENSE](LICENSE).
147
+
148
+ ---
149
+
150
+ Part of vllnt oss: <https://oss.vllnt.com>
package/llms.txt CHANGED
@@ -7,13 +7,16 @@
7
7
  Next.js (App Router) and any Web-standard runtime. It exposes two functions.
8
8
  `generateLlmsText(config)` returns an `llms.txt` index string in the llmstxt.org
9
9
  shape — an `#` title, a `>` blockquote, optional free prose, `## Section` link
10
- lists (`- [title](https://github.com/vllnt/next-llms/blob/main/url): notes`), and a droppable `## Optional` section.
10
+ lists (`- [title](url): notes`), and a droppable `## Optional` section.
11
11
  `createMarkdownRoute(resolver, options?)` returns a Web-standard
12
12
  `(request) => Promise<Response>` route handler: it URL-decodes the pathname,
13
13
  strips a trailing `.md`, calls the resolver with the slug, and returns `200`
14
14
  `text/markdown` with a `Cache-Control` header when the resolver returns a string
15
- (an empty string is content), or `404` `text/plain` when it returns `null`. The
16
- handler imports nothing from `next`; `null` is the explicit not-found sentinel.
15
+ (an empty string is content), or `404` `text/plain` when it returns `null` or
16
+ any other non-string. A path with malformed percent-encoding or a decoded
17
+ segment that is empty (such as `/.md`), `.`, `..`, or contains `/`, `\` or NUL
18
+ gets `400` without calling the resolver. The handler imports nothing from `next`; `null` is the explicit
19
+ not-found sentinel.
17
20
 
18
21
  The stable API is the two functions above; the older `generateLlmsFullText`
19
22
  API from early canary builds is not included. Install `@vllnt/next-llms`;
@@ -21,16 +24,30 @@ prereleases are on the `canary` tag. Node.js >=18; no peer dependencies.
21
24
  Successful responses use public caching by default. Authorize in the resolver and
22
25
  set `cacheControl: "private, no-store"` for private/personalized content.
23
26
 
27
+ This file describes the package itself. It is not output of `generateLlmsText`;
28
+ the `llms.txt` your site serves is the one you build with `generateLlmsText`.
29
+
30
+ ## For coding agents
31
+
32
+ The docs ship inside the package at `node_modules/@vllnt/next-llms/docs/`,
33
+ next to `README.md`, `CHANGELOG.md`, this `llms.txt` and the TypeScript source
34
+ in `src/`. They match the installed version. Read them before writing code that
35
+ uses this package.
36
+
24
37
  ## Docs
25
38
 
26
- - [README](https://github.com/vllnt/next-llms/blob/main/README.md): Overview, installation, usage examples
27
- - [API Reference](https://github.com/vllnt/next-llms/blob/main/docs/API.md): Function signatures, config types, response behavior
28
- - [Changelog](https://github.com/vllnt/next-llms/blob/main/CHANGELOG.md): Version history and release notes
39
+ - [README](./README.md): Overview, installation, usage examples
40
+ - [API Reference](./docs/API.md): Function signatures, config types, response behavior
41
+ - [Changelog](./CHANGELOG.md): Version history and release notes
29
42
  - [Contributing](https://github.com/vllnt/next-llms/blob/main/CONTRIBUTING.md): Development setup, validation commands, release workflow
30
43
 
44
+ ## Ecosystem
45
+
46
+ - [vllnt oss](https://oss.vllnt.com/llms.txt): Index of every `@vllnt` package
47
+
31
48
  ## Optional
32
49
 
33
- - [AGENTS](https://github.com/vllnt/next-llms/blob/main/AGENTS.md): Canonical agent instructions for this repository
50
+ - [AGENTS](https://github.com/vllnt/next-llms/blob/main/AGENTS.md): Agent instructions for contributors to this repository
34
51
  - [Security Policy](https://github.com/vllnt/next-llms/blob/main/SECURITY.md): Vulnerability reporting policy
35
52
  - [Code of Conduct](https://github.com/vllnt/next-llms/blob/main/CODE_OF_CONDUCT.md): Community participation guidelines
36
- - [License](https://github.com/vllnt/next-llms/blob/main/LICENSE): MIT license
53
+ - [License](./LICENSE): MIT license
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vllnt/next-llms",
3
- "version": "0.1.1-canary.7877bb2",
3
+ "version": "0.1.1-canary.8271f69",
4
4
  "description": "AI discoverability for Next.js sites — generate an llms.txt manifest and serve any page as raw markdown",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -48,7 +48,7 @@
48
48
  "typescript": "npm:@typescript/typescript6@^6.0.2",
49
49
  "vitest": "^5.1.0"
50
50
  },
51
- "homepage": "https://github.com/vllnt/next-llms#readme",
51
+ "homepage": "https://oss.vllnt.com/packages/next-llms",
52
52
  "bugs": {
53
53
  "url": "https://github.com/vllnt/next-llms/issues"
54
54
  },