Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/llms-txt-hub / apps/web/components/sections/community-stats-section.tsx |
| Date | Not specified in source |
| Repository | Janady13/llms-txt-hub |
| Revision | e0f4bf978d4df168369c7601d9c5f5ea89e84377 |
| Branch | main |
| Path or archive member | apps/web/components/sections/community-stats-section.tsx |
| Original SHA-256 | a8d15d48c5d1442d08a2b25a4d6b2df10abbb0aa6d89d952b5eb6faab5b57618 |
| Git blob SHA | 1e1f5559f325b63f5c1db6ed4f090be4f5f3cd9c |
| Reading-copy SHA-256 | a8d15d48c5d1442d08a2b25a4d6b2df10abbb0aa6d89d952b5eb6faab5b57618 |
Recovered source transcript
Download complete source text ↓48 lines · 1.6 KB
import { FileCheck, FileText } from 'lucide-react'
import { Section } from '@/components/layout/section'
import { GitHubStarsCard } from '@/components/stats/github-stars-card'
import { StatCard } from '@/components/stats/stat-card'
import type { WebsiteMetadata } from '@/lib/content-loader'
interface CommunityStatsSectionProps {
allProjects: WebsiteMetadata[]
}
/**
* Displays community statistics about llms.txt implementation and engagement
*
* @param props - Component props
* @param props.allProjects - Array of website metadata for statistics calculation
*
* @returns React component displaying community statistics
*
* @example
* ```tsx
* <CommunityStatsSection allProjects={projects} />
* ```
*/
export function CommunityStatsSection({ allProjects }: CommunityStatsSectionProps) {
const basicImplementations = allProjects.filter(p => p.llmsUrl).length
const enhancedImplementations = allProjects.filter(p => p.llmsFullUrl).length
return (
<Section title="Community Stats" description="Discover the impact of the llms.txt community">
<div className="grid md:grid-cols-3 gap-4 md:gap-8">
<GitHubStarsCard />
<StatCard
title="llms.txt files"
value={basicImplementations}
icon={FileText}
description="Websites with basic AI-friendly documentation structure"
/>
<StatCard
title="llms-full.txt files"
value={enhancedImplementations}
icon={FileCheck}
description="Websites with extended AI documentation features"
/>
</div>
</Section>
)
}