# Machine-readable docs

Everything on this site, in forms that AI assistants, search engines and scripts can read directly.

For coding assistants

## Ask your AI assistant

Assistants write better code with the documentation in front of them. Paste this prompt into yours, then describe what you're building.

Prompt:

```text
I'm building with the @toip-tools TypeScript libraries (on npm, Node 22.13 or later).
Before writing code, read https://toip.tools/llms-full.txt: it holds their documentation, guides and Trust Task reference.
Use only the exports and options it documents, install packages as @toip-tools/<name>, and tell me if something I ask for isn't supported.

My task: 
```

[llms-full.txt](https://toip.tools/llms-full.txt) · all docs in one Markdown file · [llms.txt](https://toip.tools/llms.txt) · an index · [JSON indexes](https://toip.tools/api/) · packages, exports and Trust Tasks

## llms.txt

[`/llms.txt`](https://toip.tools/llms.txt) follows the [llms.txt proposal](https://llmstxt.org/): a short summary and a list of the most useful pages, each linked to its Markdown version. [`/llms-full.txt`](https://toip.tools/llms-full.txt) holds the documentation, quickstart, concepts, FAQ, every guide, every library guide, the API export lists and the Trust Task reference, concatenated as Markdown with real code.

Both are generated at build time from the same pages as the HTML, so they can't drift from it.

## Markdown version of every page

Add `index.md` to any page's address for the same content as clean Markdown: headings, prose, code blocks with their language, and absolute links. Each HTML page also names its twin in a `<link rel="alternate" type="text/markdown">` tag, and documentation pages have a **Copy page as Markdown** button.

Terminal:

```bash
curl https://toip.tools/guides/run-tsp-relay/index.md
```

## JSON indexes

- **[`/api/libraries.json`](https://toip.tools/api/libraries.json)**: Every package: name, version, description, install command, runtimes, entry points, and each export with its kind, one-line summary and reference page. Also its documentation, npm and source URLs.
- **[`/api/specs.json`](https://toip.tools/api/specs.json)**: Every Trust Task type: URI, purpose, sender, receiver, kind (one-way or request and response), the payload and response types as declared in the code, and links to its definition and design.
- **[`/api/examples.json`](https://toip.tools/api/examples.json)**: Every example project: status, what it shows, the libraries it uses, and the commands that run it.

## Feeds and crawling

- [`/sitemap.xml`](https://toip.tools/sitemap.xml) lists every page, with the date its sources last changed.
- [`/robots.txt`](https://toip.tools/robots.txt) allows every crawler, AI crawlers included.
- [`/releases.xml`](https://toip.tools/releases.xml) is an Atom feed of library releases; the [releases page](https://toip.tools/releases/) shows the same changelogs.
- Pages carry JSON-LD structured data: `TechArticle`, `SoftwareSourceCode`, `FAQPage` and `BreadcrumbList`.

---

This is the Markdown version of https://toip.tools/api/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
