Skip to content

Open-source status page, incident response and uptime monitoring

🌐 seo (#1309)

Thibault Le Ouay22218123da32
diff --git a/apps/web/package.json b/apps/web/package.json
index 447f903b5..8a6b41c1d 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -82,6 +82,7 @@
"remark-parse": "10.0.2",
"remark-rehype": "10.1.0",
"resend": "4.0.1",
+ "schema-dts": "1.1.5",
"shiki": "0.14.4",
"sonner": "1.7.1",
"stripe": "13.8.0",
diff --git a/apps/web/src/app/(pages)/(content)/(landing)/[slug]/page.tsx b/apps/web/src/app/(pages)/(content)/(landing)/[slug]/page.tsx
index 6a892ea10..3cd4bd1d5 100644
--- a/apps/web/src/app/(pages)/(content)/(landing)/[slug]/page.tsx
+++ b/apps/web/src/app/(pages)/(content)/(landing)/[slug]/page.tsx
@@ -8,6 +8,7 @@ import { Button } from "@openstatus/ui";
import type { Metadata } from "next";
import Link from "next/link";
import { notFound } from "next/navigation";
+import type { WebPage, WithContext } from "schema-dts";
export async function generateStaticParams() {
return Object.keys(landingsConfig).map((slug) => ({ slug }));
@@ -60,11 +61,31 @@ export default async function Page({
notFound();
}
+ const jsonLDWebPage: WithContext<WebPage> = {
+ "@context": "https://schema.org",
+ "@type": "WebPage",
+ name: `${landing.title} | openstatus`,
+ headline: landing.description,
+ mainEntityOfPage: {
+ "@type": "WebPage",
+ "@id": "https://www.openstatus.dev",
+ },
+ };
+
return (
- <div className="grid gap-12">
- <Hero hero={landing.hero} description={landing.description} />
- {landing.blocks.map((block) => block)}
- </div>
+ <>
+ <script
+ type="application/ld+json"
+ // biome-ignore lint/security/noDangerouslySetInnerHtml: jsonLd
+ dangerouslySetInnerHTML={{
+ __html: JSON.stringify(jsonLDWebPage).replace(/</g, "\\u003c"),
+ }}
+ />
+ <div className="grid gap-12">
+ <Hero hero={landing.hero} description={landing.description} />
+ {landing.blocks.map((block) => block)}
+ </div>
+ </>
);
}
diff --git a/apps/web/src/app/(pages)/(content)/blog/[slug]/page.tsx b/apps/web/src/app/(pages)/(content)/blog/[slug]/page.tsx
index cc291025e..6209fff56 100644
--- a/apps/web/src/app/(pages)/(content)/blog/[slug]/page.tsx
+++ b/apps/web/src/app/(pages)/(content)/blog/[slug]/page.tsx
@@ -18,6 +18,7 @@ import {
BreadcrumbSeparator,
} from "@openstatus/ui";
import Link from "next/link";
+import type { BlogPosting, WithContext } from "schema-dts";
// export const dynamic = "force-static";
@@ -77,8 +78,32 @@ export default async function PostPage(props: {
if (!post) notFound();
+ const jsonLDBlog: WithContext<BlogPosting> = {
+ "@context": "https://schema.org",
+ "@type": "BlogPosting",
+ name: `${post.title} | openstatus`,
+ headline: post.title,
+ datePublished: post.publishedAt.toISOString(),
+ author: {
+ "@type": "Person",
+ name: post.author.name,
+ url: post.author.url,
+ },
+ mainEntityOfPage: {
+ "@type": "WebPage",
+ "@id": "https://www.openstatus.dev",
+ },
+ };
+
return (
<>
+ <script
+ type="application/ld+json"
+ // biome-ignore lint/security/noDangerouslySetInnerHtml: jsonLd
+ dangerouslySetInnerHTML={{
+ __html: JSON.stringify(jsonLDBlog).replace(/</g, "\\u003c"),
+ }}
+ />
<Breadcrumb className="mb-4 px-3 md:px-6">
<BreadcrumbList>
<BreadcrumbItem>
diff --git a/apps/web/src/app/(pages)/(content)/page.tsx b/apps/web/src/app/(pages)/(content)/page.tsx
index 71cc7ad89..3dbc061eb 100644
--- a/apps/web/src/app/(pages)/(content)/page.tsx
+++ b/apps/web/src/app/(pages)/(content)/page.tsx
@@ -7,22 +7,98 @@ import { MonitoringCard } from "@/components/marketing/monitor/card";
import { Partners } from "@/components/marketing/partners";
import { Stats } from "@/components/marketing/stats";
import { StatusPageCard } from "@/components/marketing/status-page/card";
+import { allPlans } from "@openstatus/db/src/schema/plan/config";
+import type { Organization, Product, WebPage, WithContext } from "schema-dts";
export const revalidate = 600;
+const jsonLdProduct: WithContext<Product> = {
+ "@context": "https://schema.org",
+ "@type": "Product",
+ name: "openstatus",
+ description: "Opensource uptime and synthetic monitoring.",
+ brand: {
+ "@type": "Brand",
+ name: "openstatus",
+ logo: "https://openstatus.dev/assets/logos/OpenStatus-Logo.svg",
+ },
+ offers: Object.entries(allPlans).map(([_, value]) => ({
+ "@type": "Offer",
+ price: value.price,
+ name: value.title,
+ priceCurrency: "EUR",
+ availability: "https://schema.org/InStock",
+ })),
+};
+
+const jsonLdOrganization: WithContext<Organization> = {
+ "@context": "https://schema.org",
+ "@type": "Organization",
+ name: "openstatus",
+ url: "https://openstatus.dev",
+ logo: "https://openstatus.dev/assets/logos/OpenStatus-Logo.svg",
+ sameAs: [
+ "https://github.com/openstatushq",
+ "https://linkedin.com/company/openstatus",
+ "https://bsky.app/profile/openstatus.dev",
+ "https://x.com/openstatushq",
+ ],
+ contactPoint: [
+ {
+ "@type": "ContactPoint",
+ contactType: "Support",
+ email: "[email protected]",
+ },
+ ],
+};
+
+const jsonLDWebpage: WithContext<WebPage> = {
+ "@context": "https://schema.org",
+ "@type": "WebPage",
+ name: "openstatus",
+ description: "Opensource uptime and synthetic monitoring.",
+ url: "https://openstatus.dev",
+ image: "https://openstatus.dev/assets/logos/OpenStatus-Logo.svg",
+ headline: "Showcase your uptime with a status page",
+};
+
export default async function LandingPage() {
return (
- <div className="grid gap-12">
- <Hero />
- <Partners />
- <MonitoringCard />
- <Stats />
- <MiddleCTA />
- <StatusPageCard />
- <AlertCard />
- <CLICard />
- <BottomCTA />
- <LatestChangelogs />
- </div>
+ <>
+ <div className="grid gap-12">
+ <Hero />
+ <Partners />
+ <MonitoringCard />
+ <Stats />
+ <MiddleCTA />
+ <StatusPageCard />
+ <AlertCard />
+ <CLICard />
+ <BottomCTA />
+ <LatestChangelogs />
+ </div>
+
+ <script
+ type="application/ld+json"
+ // biome-ignore lint/security/noDangerouslySetInnerHtml: jsonLd
+ dangerouslySetInnerHTML={{
+ __html: JSON.stringify(jsonLdProduct).replace(/</g, "\\u003c"),
+ }}
+ />
+ <script
+ type="application/ld+json"
+ // biome-ignore lint/security/noDangerouslySetInnerHtml: jsonLd
+ dangerouslySetInnerHTML={{
+ __html: JSON.stringify(jsonLdOrganization).replace(/</g, "\\u003c"),
+ }}
+ />
+ <script
+ type="application/ld+json"
+ // biome-ignore lint/security/noDangerouslySetInnerHtml: jsonLd
+ dangerouslySetInnerHTML={{
+ __html: JSON.stringify(jsonLDWebpage).replace(/</g, "\\u003c"),
+ }}
+ />
+ </>
);
}
diff --git a/apps/web/src/app/api/og/route.tsx b/apps/web/src/app/api/og/route.tsx
index 567612151..79d6a9b3e 100644
--- a/apps/web/src/app/api/og/route.tsx
+++ b/apps/web/src/app/api/og/route.tsx
@@ -1,7 +1,7 @@
/* eslint-disable @next/next/no-img-element */
import { ImageResponse } from "next/og";
-import { DESCRIPTION, TITLE } from "@/app/shared-metadata";
+import { OG_DESCRIPTION, TITLE } from "@/app/shared-metadata";
import { Background } from "./_components/background";
import {
DEFAULT_URL,
@@ -30,7 +30,7 @@ export async function GET(req: Request) {
const description =
(searchParams.has("description") && searchParams.get("description")) ||
- DESCRIPTION;
+ OG_DESCRIPTION;
const image =
(searchParams.has("image") && searchParams.get("image")) || IMAGE;
diff --git a/apps/web/src/app/shared-metadata.ts b/apps/web/src/app/shared-metadata.ts
index b9f762678..0f3848170 100644
--- a/apps/web/src/app/shared-metadata.ts
+++ b/apps/web/src/app/shared-metadata.ts
@@ -1,8 +1,11 @@
import type { Metadata } from "next";
-export const TITLE = "OpenStatus";
+export const TITLE = "openstatus";
export const DESCRIPTION =
- "A better way to monitor your API and your website. Don't let downtime or a slow response time ruin your user experience. Try the open-source synthetic monitoring platform for free!";
+ "Monitor your API and your website globally. Don't let downtime or a slow response time ruin your user experience. Try the open-source uptime and synthetic monitoring platform for free!";
+
+export const OG_DESCRIPTION =
+ "Open-source status page and uptime monitoring system";
export const defaultMetadata: Metadata = {
title: {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 3125725ea..98d1f389c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -387,7 +387,7 @@ importers:
version: 2.6.2
drizzle-orm:
specifier: 0.35.3
hono:
specifier: 4.5.3
version: 4.5.3
@@ -699,6 +699,9 @@ importers:
resend:
specifier: 4.0.1
+ schema-dts:
+ specifier: 1.1.5
+ version: 1.1.5
shiki:
specifier: 0.14.4
version: 0.14.4
@@ -829,7 +832,7 @@ importers:
version: link:../../packages/tsconfig
'@types/bun':
specifier: latest
- version: 1.2.17
+ version: 1.2.20(@types/[email protected])
typescript:
specifier: 5.7.2
version: 5.7.2
@@ -949,10 +952,10 @@ importers:
drizzle-orm:
specifier: 0.35.3
drizzle-zod:
specifier: 0.5.1
zod:
specifier: 3.24.1
version: 3.24.1
@@ -6401,8 +6404,8 @@ packages:
resolution: {integrity: sha512-SQFof9H+LXeWNz8wDe7oN5zu7ket0qwMu5vZubW4GCJ8Kkeh6nBWUz87+KTz/G3Kqsrp0j/W253XJb3KMEeg3w==}
- '@types/[email protected]':
- resolution: {integrity: sha512-l/BYs/JYt+cXA/0+wUhulYJB6a6p//GTPiJ7nV+QHa8iiId4HZmnu/3J/SowP5g0rTiERY2kfGKXEK5Ehltx4Q==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-dX3RGzQ8+KgmMw7CsW4xT5ITBSCrSbfHc36SNT31EOUg/LA9JWq0VDdEXDRSe1InVWpd2yLUM1FUF/kEOyTzYA==}
resolution: {integrity: sha512-2in/lrHRNmDvHPgyormtEralhPcN3An1gLjJzj2Bw145VBxkQ75JEXW6CTdMAwShiHQcYsl2d10IjQSdJSJz4g==}
@@ -7080,8 +7083,10 @@ packages:
resolution: {integrity: sha512-2dNB+dBwAcFW7RSd4y5vKycRjouKVklSwPk4EjBKWvcMYUBOqZGGNzV7+b2tfKBG3BeRXnozbnegVKR1azuATg==}
- resolution: {integrity: sha512-ElC7ItwT3SCQwYZDYoAH+q6KT4Fxjl8DtZ6qDulUFBmXA8YB4xo+l54J9ZJN+k2pphfn9vk7kfubeSd5QfTVJQ==}
+ resolution: {integrity: sha512-pxTnQYOrKvdOwyiyd/7sMt9yFOenN004Y6O4lCcCUoKVej48FS5cvTw9geRaEcB9TsDZaJKAxPTVvi8tFsVuXA==}
+ peerDependencies:
+ '@types/react': ^19
resolution: {integrity: sha512-jwzPOChofl67PSTW2SGubV9HBQAhhR2i6nskiOThauo9dzwDUgOWQScFVaJkjEfYX+UXiD+LEx8EblQMc2wIag==}
@@ -8903,10 +8908,12 @@ packages:
resolution: {integrity: sha512-sorTJV6PNt94Wap27Sai5gtVLIea4Otb2LUiAUyr3p6BPOScGMKGt5F1b5X/XgkNtcsDKeX5qfeBDj+PdShclQ==}
+ cpu: [x64, arm64, wasm32]
os: [darwin, linux, win32]
resolution: {integrity: sha512-5Bwoa/CqzgkTwySgqHA5TsaUDRrdLIbdM4egdPcaAnqO3aC+qAgS6BwdzuZwARA5digXwiskogZ8H7Yy4XfdOg==}
+ cpu: [x64, arm64, wasm32, arm]
os: [darwin, linux, win32]
@@ -10785,6 +10792,9 @@ packages:
resolution: {integrity: sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==}
+ resolution: {integrity: sha512-RJr9EaCmsLzBX2NDiO5Z3ux2BVosNZN5jo0gWgsyKvxKIUL5R3swNvoorulAeL9kLB0iTSX7V6aokhla2m7xbg==}
+
resolution: {integrity: sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==}
engines: {node: '>= 10.13.0'}
@@ -17544,9 +17554,11 @@ snapshots:
'@types/[email protected]': {}
- '@types/[email protected]':
dependencies:
- bun-types: 1.2.17
+ bun-types: 1.2.20(@types/[email protected])
+ transitivePeerDependencies:
+ - '@types/react'
'@types/[email protected]': {}
@@ -18438,9 +18450,10 @@ snapshots:
dependencies:
'@types/node': 24.0.8
+ '@types/react': 19.1.8
dependencies:
@@ -19003,7 +19016,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@libsql/client-wasm': 0.14.0
optionalDependencies:
@@ -19013,10 +19026,10 @@ snapshots:
'@types/pg': 8.11.10
'@types/react': 19.1.8
better-sqlite3: 11.4.0
- bun-types: 1.2.17
+ bun-types: 1.2.20(@types/[email protected])
react: 19.1.0
dependencies:
'@libsql/client-wasm': 0.14.0
optionalDependencies:
@@ -19026,12 +19039,12 @@ snapshots:
'@types/pg': 8.11.10
'@types/react': 19.1.8
better-sqlite3: 11.7.0
- bun-types: 1.2.17
+ bun-types: 1.2.20(@types/[email protected])
react: 19.1.0
dependencies:
zod: 3.24.1
@@ -23061,6 +23074,8 @@ snapshots:
+
dependencies:
'@types/json-schema': 7.0.15