MCPcopy Create free account
hub / github.com/arktypeio/arktype / llmsIndex

Function llmsIndex

ark/docs/lib/writeMarkdown.ts:154–171  ·  view source on GitHub ↗
(sections: Section[])

Source from the content-addressed store, hash-verified

152}
153
154const llmsIndex = (sections: Section[]) =>
155 [
156 "# ArkType",
157 `> ${siteDescription}`,
158 `The homepage's benchmark board averages other projects' public benchmarks, each in the unit it measures. ${standingsAsOf.text} [The rule it follows, every result behind it and how to rerun them](${siteUrl}/docs/precompile/benchmarks.md)`,
159 "ArkType parses definitions written in TypeScript's own syntax, validates data against them at runtime and infers their types, with type-safe regex (`arktype/regex`) built in. `fromJsonSchema` reads a JSON Schema or a Zod schema into a Type, so schemas in any of those formats compare with each other. @ark/aot precompiles them when a project builds, so its validators ship without arktype's parser. ArkRegex, Attest and @ark/fast-check are its companion packages.",
160 `Each link below is a docs page as Markdown. [llms-full.txt](${siteUrl}/llms-full.txt) has every ArkType page in one file. Coding agents can also install the ArkType skill, which covers writing, precompiling and migrating to ArkType, with \`npx skills add arktypeio/arktype\`; see [Agents](${siteUrl}/docs/agents.md).`,
161 ...sections.flatMap(sectionLists),
162 [
163 "## Optional",
164 sections
165 .map(
166 section =>
167 `- [${section.title}, every page](${siteUrl}/${fullFiles[section.id]}): ${section.description}`
168 )
169 .join("\n")
170 ].join("\n\n")
171 ].join("\n\n") + "\n"

Callers 1

writeMarkdownFunction · 0.85

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected