Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions apps/landing/public/.well-known/api-catalog
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"linkset": [
{
"anchor": "https://enscomponents.com/",
"service-desc": [
{
"href": "https://enscomponents.com/.well-known/openapi.yaml",
"type": "application/openapi+yaml"
}
],
"service-doc": [
{
"href": "https://enscomponents.com/",
"type": "text/html",
"title": "ENS Components interactive docs and playground"
}
],
"service-meta": [
{
"href": "https://enscomponents.com/llms.txt",
"type": "text/plain",
"title": "LLM-friendly summary"
},
{
"href": "https://enscomponents.com/llms-full.txt",
"type": "text/plain",
"title": "LLM full API reference"
},
{
"href": "https://enscomponents.com/.well-known/ai-plugin.json",
"type": "application/json",
"title": "AI plugin manifest"
}
]
}
]
}
1 change: 1 addition & 0 deletions apps/landing/src/components/SEO.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export function SEO({
<meta name="twitter:image:alt" content="ENS Components by Namespace" />

{/* AI / LLM discovery — llms.txt files are alternate text representations of this page */}
<link rel="api-catalog" href={`${SITE_URL}/.well-known/api-catalog`} />
<link rel="alternate" type="text/plain" href={`${SITE_URL}/llms.txt`} title="LLM-friendly summary" />
<link rel="alternate" type="text/plain" href={`${SITE_URL}/llms-full.txt`} title="LLM full API reference" />
</Helmet>
Expand Down
35 changes: 35 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"headers": [
{
"source": "/",
"headers": [
{
"key": "Link",
"value": "</.well-known/api-catalog>; rel=\"api-catalog\"; type=\"application/linkset+json\"; profile=\"https://www.rfc-editor.org/info/rfc9727\", </llms.txt>; rel=\"alternate\"; type=\"text/plain\"; title=\"LLM-friendly summary\", </llms-full.txt>; rel=\"alternate\"; type=\"text/plain\"; title=\"LLM full API reference\", </.well-known/openapi.yaml>; rel=\"service-desc\"; type=\"application/openapi+yaml\""
}
]
},
{
"source": "/index.html",
"headers": [
{
"key": "Link",
"value": "</.well-known/api-catalog>; rel=\"api-catalog\"; type=\"application/linkset+json\"; profile=\"https://www.rfc-editor.org/info/rfc9727\", </llms.txt>; rel=\"alternate\"; type=\"text/plain\"; title=\"LLM-friendly summary\", </llms-full.txt>; rel=\"alternate\"; type=\"text/plain\"; title=\"LLM full API reference\", </.well-known/openapi.yaml>; rel=\"service-desc\"; type=\"application/openapi+yaml\""
}
]
},
{
"source": "/.well-known/api-catalog",
"headers": [
{
"key": "Content-Type",
"value": "application/linkset+json; profile=\"https://www.rfc-editor.org/info/rfc9727\""
},
{
"key": "Link",
"value": "</.well-known/api-catalog>; rel=\"api-catalog\"; type=\"application/linkset+json\"; profile=\"https://www.rfc-editor.org/info/rfc9727\""
}
]
}
]
}