import registryData from '@cli-data/registry.json' import { Terminal } from 'lucide-react' import { CopyButton } from '@/components/ui/copy-button' import type { WebsiteMetadata } from '@/lib/content-loader' // Build lookup: webSlug -> CLI slug (runs once at module load / build time) const webSlugToCliSlug = new Map() for (const entry of registryData as { slug: string; webSlug?: string }[]) { if (entry.webSlug) { webSlugToCliSlug.set(entry.webSlug, entry.slug) } } interface WebsiteCliSectionProps { website: WebsiteMetadata } /** * CLI install section for website detail pages. * Shows the npx install command when a CLI slug exists. * * @param props - Component props * @param props.website - Website metadata * @returns CLI install card or null if no CLI slug */ export function WebsiteCliSection({ website }: WebsiteCliSectionProps) { const cliSlug = webSlugToCliSlug.get(website.slug) if (!cliSlug) return null return (

Install into your AI coding agent

Add this documentation directly to your development environment

npx llmstxt-cli install {cliSlug}
) }