Open History to see the last commit
1import { HeadContent, Scripts, createRootRoute } from '@tanstack/react-router'
2import { TanStackRouterDevtoolsPanel } from '@tanstack/react-router-devtools'
3import { TanStackDevtools } from '@tanstack/react-devtools'
4
5import appCss from '../styles.css?url'
6
7export const Route = createRootRoute({
8 head: () => ({
9 meta: [
10 {
11 charSet: 'utf-8',
12 },
13 {
14 name: 'viewport',
15 content: 'width=device-width, initial-scale=1',
16 },
17 {
18 title: 'modelschemas — live AI model schemas',
19 },
20 {
21 name: 'description',
22 content:
23 'Which AI models exist right now, and what do their payloads look like? Live request/response JSON Schemas and model metadata across OpenAI, Anthropic, Gemini, Grok, ElevenLabs, OpenRouter, FAL and BytePlus — built for agents.',
24 },
25 ],
26 links: [
27 {
28 rel: 'stylesheet',
29 href: appCss,
30 },
31 {
32 rel: 'icon',
33 type: 'image/svg+xml',
34 href: '/icon.svg',
35 },
36 ],
37 }),
38 shellComponent: RootDocument,
39})
40
41function RootDocument({ children }: { children: React.ReactNode }) {
42 return (
43 <html lang="en">
44 <head>
45 <HeadContent />
46 </head>
47 <body>
48 {children}
49 <TanStackDevtools
50 config={{
51 position: 'bottom-right',
52 }}
53 plugins={[
54 {
55 name: 'Tanstack Router',
56 render: <TanStackRouterDevtoolsPanel />,
57 },
58 ]}
59 />
60 <Scripts />
61 </body>
62 </html>
63 )
64}