UNPKG

llmoptimizer

Version:

Generate an llms.txt summary of your website/docs for LLMs (framework-agnostic with Vite/Next/Nuxt/Astro/Remix helpers).

64 lines (62 loc) 1.41 kB
type OutputFormat = 'markdown' | 'json'; interface PageExtract { url: string; locale?: string; dir?: string; lastModified?: string; title?: string; description?: string; canonical?: string; og?: Record<string, string>; twitter?: Record<string, string>; hreflang?: { lang: string; href: string; }[]; headings: { tag: string; text: string; }[]; links: { text: string; href: string; rel?: string; }[]; internalLinks?: number; externalLinks?: number; jsonLd: unknown[]; wordCount: number; contentSnippet?: string; robotsMeta?: string; meta?: { keywords?: string[]; viewport?: string; charset?: string; generator?: string; }; images?: { src: string; alt?: string; }[]; imageCount?: number; imagesMissingAlt?: number; breadcrumbs?: string[]; } interface SiteSummary { generatedAt: string; baseUrl?: string; pageCount: number; locales?: string[]; } interface StructuredRenderOptions { limits?: { headings?: number; links?: number; images?: number; }; categories?: { order?: string[]; keywords?: Record<string, string[]>; }; } export type { OutputFormat as O, PageExtract as P, SiteSummary as S, StructuredRenderOptions as a };