@vllnt/next-llms 0.1.0 → 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 +20 -0
- package/README.md +28 -9
- package/llms.txt +25 -8
- package/package.json +7 -6
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`
|
|
60
|
-
(`pnpm add @vllnt/next-llms@canary`); stable releases
|
|
61
|
-
`vX.Y.Z` tag. The older `generateLlmsFullText` API from
|
|
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
|
|
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
|
|
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](
|
|
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
|
|
16
|
-
|
|
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](
|
|
27
|
-
- [API Reference](
|
|
28
|
-
- [Changelog](
|
|
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):
|
|
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](
|
|
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.
|
|
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",
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^24.19.2",
|
|
42
42
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
43
|
-
"@vitest/coverage-v8": "^5.0
|
|
44
|
-
"@vllnt/eslint-config": "2.
|
|
43
|
+
"@vitest/coverage-v8": "^5.1.0",
|
|
44
|
+
"@vllnt/eslint-config": "2.1.0",
|
|
45
45
|
"@vllnt/typescript": "2.0.0",
|
|
46
46
|
"eslint": "^9.0.0",
|
|
47
|
-
"prettier": "^3.
|
|
47
|
+
"prettier": "^3.10.1",
|
|
48
48
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
49
|
-
"vitest": "^5.0
|
|
49
|
+
"vitest": "^5.1.0"
|
|
50
50
|
},
|
|
51
|
-
"homepage": "https://
|
|
51
|
+
"homepage": "https://oss.vllnt.com/packages/next-llms",
|
|
52
52
|
"bugs": {
|
|
53
53
|
"url": "https://github.com/vllnt/next-llms/issues"
|
|
54
54
|
},
|
|
@@ -92,6 +92,7 @@
|
|
|
92
92
|
"esbuild"
|
|
93
93
|
],
|
|
94
94
|
"overrides": {
|
|
95
|
+
"minimatch@>=7.0.0 <11.0.1": "11.0.5",
|
|
95
96
|
"deepmerge-ts@<8.0.0": "8.0.2",
|
|
96
97
|
"handlebars@<4.7.10": "4.7.10"
|
|
97
98
|
}
|