docs/
directory in each documented package’s npm archive. These docs sit next to the
installed implementation and describe the same version. Earlier releases may
not include bundled docs.
Entry point
Start with the CLI package’s owndocs/ directory. Its generated entry points
are docs/index.md and docs/packages.md. In a workspace the CLI may be
installed at the workspace root rather than in the app’s node_modules.
packages.md lists every documented package, its version, whether it is public
or internal, its role and the relative path to its docs. The paths are written
as code because optional packages may be absent.
Read only what is installed
@stacknext/core is installed transitively. In a pnpm workspace it may not
appear at the app-root node_modules path; use its relative path in
packages.md instead of assuming the root layout.
Before reading a path, check that it exists. Do not tell an agent to read a
package that the project does not use.
Confirm the version
The package’spackage.json is the source of truth:
packages/<package>/docs/ directory at its matching
v<version> tag in the
StackNext source repository.
Prefer local docs over this site
Use the local files when:- writing code against
@stacknext/next, an adapter or the CLI; - the project’s StackNext version may differ from the website;
- an API, default, validation range or error behavior matters.
- learning a cross-package workflow;
- no StackNext package is installed yet;
- looking for conceptual explanations, privacy rules or setup guidance.
AI-readable documentation
StackNext does not commit a hand-writtenllms.txt or llms-full.txt.
Mintlify generates both from the published navigation and page content, so they
always match the site you are reading.
Recommended flow:
- Start with
/llms.txtwhen you need to discover public pages. - Fetch the specific page as
.mdinstead of scraping rendered HTML. - For package APIs, prefer the installed files under
node_modules/@stacknext/<package>/docs/. - Use
/llms-full.txtonly when a broad, one-shot corpus is cheaper than targeted reads. - Treat diagnostics and regression results as evidence.
docs.json contains markdown.instructions, which Mintlify includes with the
generated Markdown so an agent knows the audience split: conceptual guides live
on this site, package reference ships in the packages, and local installed docs
take precedence for API details.
Monorepos
In a pnpm workspace, a package may be hoisted to the workspace root’snode_modules or remain under the app’s node_modules. Resolve from the app
directory that contains .stacknext and the stacknext dependency. Do not
assume a single global path.