Skip to content
Merged
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
14 changes: 10 additions & 4 deletions app/ai/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import Image from "next/image";
import Link from "next/link";
import CommandSnippet from "../components/CommandSnippet";
import { getMetadata } from "../services/metadataService";
import {
documentdbGitHubForks,
documentdbGitHubStars,
documentdbTscMembers,
documentdbTscOrganizations,
} from "../services/projectStats";
import { withBasePath } from "../services/sitePath";

export const metadata = getMetadata({
Expand Down Expand Up @@ -166,17 +172,17 @@ const useCases = [

const credibilityPoints = [
{
value: "3.4k+",
value: documentdbGitHubStars,
label: "GitHub stars",
},
{
value: "240+",
value: documentdbGitHubForks,
label: "Forks",
},
{
value: "11",
value: documentdbTscMembers,
label: "TSC members",
detail: "across 5 organizations",
detail: `across ${documentdbTscOrganizations} organizations`,
},
];

Expand Down
14 changes: 10 additions & 4 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ import Link from "next/link";
import CommandSnippet from "./components/CommandSnippet";
import { documentdbKubernetesOperatorDocsUrl } from "./services/externalLinks";
import { getMetadata } from "./services/metadataService";
import {
documentdbGitHubForks,
documentdbGitHubStars,
documentdbTscMembers,
documentdbTscOrganizations,
} from "./services/projectStats";
import { withBasePath } from "./services/sitePath";

export const metadata = getMetadata({
Expand Down Expand Up @@ -131,19 +137,19 @@ const trustBadges = [

const credibilityPoints = [
{
value: "3.2k+",
value: documentdbGitHubStars,
label: "GitHub stars",
detail: "on documentdb/documentdb",
},
{
value: "200+",
value: documentdbGitHubForks,
label: "Public forks",
detail: "public on GitHub",
},
{
value: "11",
value: documentdbTscMembers,
label: "TSC members",
detail: "representing 5 organizations",
detail: `representing ${documentdbTscOrganizations} organizations`,
},
];

Expand Down
19 changes: 19 additions & 0 deletions app/services/projectStats.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Single source for the upstream project figures quoted on marketing pages.
// They were previously hardcoded independently on / and /ai, drifted apart,
// and then went stale - a visitor moving between the two pages saw two
// different star counts.
//
// Deliberately not fetched at build time: that would add a network dependency
// (and a rate-limited, unauthenticated one) to every build. Refresh by hand:
//
// curl -s https://api.github.com/repos/documentdb/documentdb \
// | jq '{stars: .stargazers_count, forks: .forks_count}'
//
// Last checked 2026-08-03: 3423 stars, 248 forks.
export const documentdbGitHubStars = '3.4k+';
export const documentdbGitHubForks = '240+';

// From upstream MAINTAINERS.md: 11 members across Microsoft (4), Amazon (4),
// AB InBev (1), Rippling (1), and YugabyteDB (1).
export const documentdbTscMembers = '11';
export const documentdbTscOrganizations = '5';