Skip to content

The agent that turns websites into APIs!

Self-host OG image and refresh homepage metadata (#90)

kalil0321f8ceba1e3320
diff --git a/website/public/reverse-api-banner.png b/website/public/reverse-api-banner.png
new file mode 100644
index 0000000..e936e17
Binary files /dev/null and b/website/public/reverse-api-banner.png differ
diff --git a/website/src/app/(home)/page.tsx b/website/src/app/(home)/page.tsx
index 89c9bbc..719c13c 100644
--- a/website/src/app/(home)/page.tsx
+++ b/website/src/app/(home)/page.tsx
@@ -9,18 +9,34 @@ import { FeatureMarquee } from '@/components/feature-marquee';
import { WorksWithAgents } from '@/components/works-with-agents';
import { JsonLd } from '@/components/json-ld';
+const homeDescription =
+ 'The agent that turns any website into a typed Python, TypeScript, or JavaScript API client — generated from the requests the site actually makes.';
+
export const metadata: Metadata = {
title: 'Turn websites into APIs',
- description:
- 'Capture browser traffic and generate typed Python, JavaScript, or TypeScript API clients.',
+ description: homeDescription,
alternates: {
canonical: '/',
},
openGraph: {
+ type: 'website',
title: 'Turn websites into APIs',
- description:
- 'Capture browser traffic and generate typed Python, JavaScript, or TypeScript API clients.',
+ description: homeDescription,
url: '/',
+ images: [
+ {
+ url: '/reverse-api-banner.png',
+ width: 2566,
+ height: 1290,
+ alt: `${appName} banner`,
+ },
+ ],
+ },
+ twitter: {
+ card: 'summary_large_image',
+ title: 'Turn websites into APIs',
+ description: homeDescription,
+ images: ['/reverse-api-banner.png'],
},
};
diff --git a/website/src/app/layout.tsx b/website/src/app/layout.tsx
index ce4d6a2..827b0eb 100644
--- a/website/src/app/layout.tsx
+++ b/website/src/app/layout.tsx
@@ -1,7 +1,7 @@
import './global.css';
import { Inter, JetBrains_Mono, Fraunces } from 'next/font/google';
import type { Metadata } from 'next';
-import { appName, appTagline, gitConfig, siteUrl } from '@/lib/shared';
+import { appName, appTagline, siteUrl } from '@/lib/shared';
import { Providers } from '@/components/providers';
export const metadata: Metadata = {
@@ -30,7 +30,7 @@ export const metadata: Metadata = {
url: '/',
images: [
{
- url: `https://raw.githubusercontent.com/${gitConfig.user}/${gitConfig.repo}/main/assets/reverse-api-banner.png`,
+ url: '/reverse-api-banner.png',
width: 2566,
height: 1290,
alt: `${appName} banner`,
@@ -41,7 +41,7 @@ export const metadata: Metadata = {
card: 'summary_large_image',
title: `${appName} · Turn websites into APIs`,
description: appTagline,
- images: [`https://raw.githubusercontent.com/${gitConfig.user}/${gitConfig.repo}/main/assets/reverse-api-banner.png`],
+ images: ['/reverse-api-banner.png'],
},
robots: {
index: true,