This library provides a standard interface to fetch and parse Rust crate documentation and session data for use with LLMs (Large Language Models).
- Fetches documentation and session data for any Rust crate by name and version
- Returns a unified configuration object for LLM consumption
- TypeScript type definitions included
npm install crates-llms-txt-napi
import { get_llms_standard_config } from 'crates-llms-txt-napi'
const config = await get_llms_standard_config('clap', '4.5.39')
Fetches the standard configuration for a given Rust crate and version.
- lib_name : The name of the crate (e.g., "clap")
- version : The version string (optional, defaults to latest)
- Returns: LLMsStandardConfig object LLMsStandardConfig Type
type SessionItem = { title: string; description: string; link: string }
type FullSessionItem = { content: string; link: string }
export type LLMsStandardConfig = {
libName: string
version: string
sessions: SessionItem[]
fullSessions: FullSessionItem[]
}