@@ -6,9 +6,22 @@ import { getClientConfig } from "./config/client";
66import { type Metadata } from "next" ;
77
88export const metadata : Metadata = {
9+ metadataBase : new URL ( "https://chat.webllm.ai" ) ,
910 title : "WebLLM Chat" ,
1011 description :
1112 "Chat with AI large language models running natively in your browser. Enjoy private, server-free, seamless AI conversations." ,
13+ keywords : [
14+ "WebLLM" ,
15+ "AI chat" ,
16+ "machine learning" ,
17+ "browser AI" ,
18+ "language model" ,
19+ "no server" ,
20+ ] ,
21+ authors : [ { name : "WebLLM Team" } ] ,
22+ publisher : "WebLLM" ,
23+ creator : "WebLLM" ,
24+ robots : "index, follow" ,
1225 viewport : {
1326 width : "device-width" ,
1427 initialScale : 1 ,
@@ -22,6 +35,32 @@ export const metadata: Metadata = {
2235 title : "WebLLM Chat" ,
2336 statusBarStyle : "default" ,
2437 } ,
38+ openGraph : {
39+ type : "website" ,
40+ url : "https://chat.webllm.ai" ,
41+ title : "WebLLM Chat" ,
42+ description :
43+ "Chat with AI large language models running natively in your browser" ,
44+ siteName : "WebLLM Chat" ,
45+ images : [
46+ {
47+ url : "https://chat.webllm.ai/mlc-logo.png" ,
48+ width : 360 ,
49+ height : 360 ,
50+ alt : "WebLLM Chat - Browser-based AI conversation" ,
51+ } ,
52+ ] ,
53+ } ,
54+ twitter : {
55+ card : "summary_large_image" ,
56+ title : "WebLLM Chat" ,
57+ description :
58+ "Chat with AI large language models running natively in your browser" ,
59+ images : [ "https://chat.webllm.ai/mlc-logo.png" ] ,
60+ } ,
61+ alternates : {
62+ canonical : "https://chat.webllm.ai" ,
63+ } ,
2564} ;
2665
2766const cspHeader = `
@@ -78,6 +117,30 @@ export default function RootLayout({
78117 < link rel = "mask-icon" href = "/safari-pinned-tab.svg" color = "#062578" />
79118 < meta name = "msapplication-TileColor" content = "#2b5797" />
80119 < meta name = "theme-color" content = "#ffffff" />
120+ < script
121+ type = "application/ld+json"
122+ dangerouslySetInnerHTML = { {
123+ __html : JSON . stringify ( {
124+ "@context" : "https://schema.org" ,
125+ "@type" : "WebApplication" ,
126+ name : "WebLLM Chat" ,
127+ url : "https://chat.webllm.ai" ,
128+ description :
129+ "Chat with AI large language models running natively in your browser. Enjoy private, server-free, seamless AI conversations." ,
130+ applicationCategory : "Artificial Intelligence" ,
131+ offers : {
132+ "@type" : "Offer" ,
133+ price : "0" ,
134+ priceCurrency : "USD" ,
135+ } ,
136+ operatingSystem : "Web Browser" ,
137+ creator : {
138+ "@type" : "Organization" ,
139+ name : "WebLLM" ,
140+ } ,
141+ } ) ,
142+ } }
143+ />
81144 </ head >
82145 < body > { children } </ body >
83146 </ html >
0 commit comments