Docs for coding agents
npx @sparkletree/cli docs # the index of the installed docsnpx @sparkletree/cli docs quickstart # one pagenpx @sparkletree/cli docs --list # every topicThe docs for the installed version
Section titled “The docs for the installed version”Each package ships the docs written for its own version:
| Path | What it is |
|---|---|
node_modules/@sparkletree/<package>/llms.txt |
The list of the package’s docs, each with a one-line summary. Its first line names the package and the version. |
node_modules/@sparkletree/<package>/docs/*.md |
The pages as Markdown, one file per page, linked to each other. |
@sparkletree/core and @sparkletree/react carry every SDK page plus the
cookbook and the layout doctrine. @sparkletree/cli carries the CLI page and
the quickstart. Read these first: they describe the code in node_modules,
while the site describes the newest release.
sparkletree docs reads the same files. It looks in the project’s
node_modules first and falls back to the copies that come with the CLI.
| Command | Prints |
|---|---|
sparkletree docs |
Each package’s llms.txt. |
sparkletree docs <topic> |
One page. The topic is the file name without .md. react/quickstart or react:quickstart picks the package. |
sparkletree docs --list |
Every topic and its package. |
sparkletree docs <topic> --path |
The file’s path instead of its content. |
With --json, stdout holds one JSON document with the content or the paths.
See the CLI.
The docs site as text
Section titled “The docs site as text”| URL | What it is |
|---|---|
/llms.txt |
The index: every page’s Markdown link with its one-line summary, grouped as the sidebar groups them, the SDK first. |
/llms-full.txt |
Every SDK, agents and platform page in one file, in sidebar order. |
/llms-api.txt |
The API reference generated from the source of @sparkletree/core and @sparkletree/react, in one file. |
/<page>.md |
Any page as Markdown: add .md to its address, such as /developers/sdk/quickstart.md. The home page is /index.md. |
Every HTML page also links its Markdown form in its head
(<link rel="alternate" type="text/markdown">), and links to /llms.txt.
The text files are served with Access-Control-Allow-Origin: *.