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
24 changes: 22 additions & 2 deletions src/app/hyperliquid/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import Link from "next/link";
import { fetchHlCohort, fetchHlHip3Cohort } from "@/lib/hl-builder-stats";
import {
fetchHlCohort,
fetchHlHip3Cohort,
fetchHlHistory,
} from "@/lib/hl-builder-stats";
import { HlHubTabs } from "@/components/hl-hub-tabs";
import { HlHistoryChart } from "@/components/hl-history-chart";
import { pageMetadata } from "@/lib/page-metadata";
import { safeJsonLd } from "@/lib/jsonld";

Expand Down Expand Up @@ -33,9 +38,10 @@ export const metadata: import("next").Metadata = pageMetadata({
export const revalidate = 60;

export default async function HyperliquidHubPage() {
const [frontends, hip3] = await Promise.all([
const [frontends, hip3, history] = await Promise.all([
fetchHlCohort(),
fetchHlHip3Cohort(),
fetchHlHistory(),
]);

const breadcrumbLd = {
Expand Down Expand Up @@ -160,6 +166,20 @@ export default async function HyperliquidHubPage() {
cohorts publish to the same Prom; the bench pages document
the per-row formulas.
</p>

{history && history.frontends.length > 0 && (
<section className="mt-12">
<h2 className="text-2xl font-semibold mb-4 text-ink">
12-month evolution — top {history.frontends.length} frontends by fees
</h2>
<p className="mb-4 max-w-2xl text-sm text-ink-soft">
Rolling 30d fees and volume per frontend, daily-stepped over
the last 365 days. Same Prom gauges as the leaderboard above,
sampled once per UTC day.
</p>
<HlHistoryChart history={history} />
</section>
)}
</>
) : (
<p className="text-sm text-ink-faint italic">
Expand Down
Loading
Loading