Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/llms-txt-hub / apps/web/app/page.tsx |
| Date | Not specified in source |
| Repository | Janady13/llms-txt-hub |
| Revision | e0f4bf978d4df168369c7601d9c5f5ea89e84377 |
| Branch | main |
| Path or archive member | apps/web/app/page.tsx |
| Original SHA-256 | adf97f8a48891b9b1774b86b515db8c5561e0e61fd32f5a70765ffde49297f33 |
| Git blob SHA | 7ee55b265131729487c652398b27c91569f8a2b2 |
| Reading-copy SHA-256 | adf97f8a48891b9b1774b86b515db8c5561e0e61fd32f5a70765ffde49297f33 |
Recovered source transcript
Download complete source text ↓83 lines · 3.1 KB
import type { Metadata } from 'next'
import { getHomePageData } from '@/actions/get-home-page-data'
import { JsonLd } from '@/components/json-ld'
import { AppSidebar } from '@/components/layout/app-sidebar'
import { CreatorProjectsSection } from '@/components/sections/creator-projects-section'
import { FeaturedGuidesSection } from '@/components/sections/featured-guides-section'
import { FeaturedProjectsSection } from '@/components/sections/featured-projects-section'
import { HeroSection } from '@/components/sections/hero-section'
import { HowItWorksSection } from '@/components/sections/how-it-works-section'
import { LatestMembersSection } from '@/components/sections/latest-members-section'
import { NewsletterSection } from '@/components/sections/newsletter-section'
import { RecentlyAddedSection } from '@/components/sections/recently-added-section'
import { ToolsSection } from '@/components/sections/tools-section'
import { StaticWebsitesList } from '@/components/static-websites-list'
import { generateBaseMetadata, generateWebsiteSchema, KEYWORDS } from '@/lib/seo/seo-config'
export const metadata: Metadata = generateBaseMetadata({
title: 'Directory of AI-Ready Documentation & llms.txt Examples',
description:
'Discover 500+ websites implementing the llms.txt standard. Browse real llms.txt examples, learn the specification, and find AI-ready documentation for APIs, platforms, and developer tools.',
keywords: [
...KEYWORDS.homepage,
...KEYWORDS.global,
'llms.txt directory',
'llms.txt examples',
'llms.txt standard',
'llms.txt file',
'llms.txt specification'
],
path: '/'
})
export default async function Home() {
const {
allProjects,
featuredProjects,
recentlyUpdatedProjects,
totalCount,
featuredGuides,
latestMembers
} = await getHomePageData()
// Sort projects alphabetically by name server-side
const sortedProjects = [...allProjects].sort((a, b) => a.name.localeCompare(b.name))
return (
<>
<JsonLd data={generateWebsiteSchema()} />
<div className="w-full space-y-16">
<HeroSection />
</div>
<div className="border-t">
<div className="relative flex h-full w-full max-w-full flex-row flex-nowrap">
<AppSidebar featuredCount={featuredProjects.length} />
<div className="relative flex h-full w-full flex-col px-6 pt-6 pb-16 space-y-8">
<section>
<FeaturedProjectsSection projects={featuredProjects} />
</section>
{/* Recently Added Section */}
<section>
<RecentlyAddedSection websites={recentlyUpdatedProjects} />
</section>
{/* All Websites Section */}
<section>
<StaticWebsitesList websites={sortedProjects} totalCount={totalCount} />
</section>
<ToolsSection />
<FeaturedGuidesSection guides={featuredGuides} />
<LatestMembersSection members={latestMembers} />
<HowItWorksSection />
<CreatorProjectsSection />
<NewsletterSection />
</div>
</div>
</div>
</>
)
}