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
26 changes: 24 additions & 2 deletions apps/landing/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@
"feat_mcp_hero_title": "Give your AI agent the same tools you use",
"feat_mcp_hero_lede": "Maple's MCP server lets agents query your traces, logs and metrics, using the same queries as the dashboard.",
"feat_mcp_panel_title": "One endpoint, any MCP client",
"feat_mcp_panel_lede": "Connect Claude Code or any MCP client. It sees the same data you do.",
"feat_mcp_panel_lede": "Connect Claude Code, Cursor or any MCP client. It sees the same data you do, through more than 130 tools.",
"feat_mcp_cap_title": "What an agent can do",
"feat_mcp_cap_1_title": "Check a service",
"feat_mcp_cap_1_body": "diagnose_service reports latency, error rate and throughput, and what changed.",
Expand Down Expand Up @@ -1544,5 +1544,27 @@
"status_feeds_rule_2_title": "status.json",
"status_feeds_rule_2_body": "Overall status, every component, open incidents and planned maintenance in one request. Uptime history is available as JSON too.",
"status_feeds_rule_3_title": "A badge for your README",
"status_feeds_rule_3_body": "badge.svg shows the current status in a README, docs site or app footer."
"status_feeds_rule_3_body": "badge.svg shows the current status in a README, docs site or app footer.",
"feat_plan_eyebrow": "On the plan",
"feat_plan_title": "Price, retention and setup",
"feat_plan_row_plan": "plan",
"feat_plan_row_billed": "billed as",
"feat_plan_row_retention": "retention",
"feat_plan_row_limit": "limit",
"feat_plan_value": "{name}, {price}. Every feature is on.",
"feat_plan_value_trial": "{name}, {price}, with a {days}-day free trial. Every feature is on.",
"feat_plan_no_meter": "No separate meter. It is part of the plan.",
"feat_plan_docs": "Set it up",
"feat_plan_pricing": "Full pricing",
"feat_plan_ret_traces": "Spans 30 days. The hourly rollups behind service charts, 365 days.",
"feat_plan_ret_sessions": "Replays 30 days, counted from when Maple received them.",
"feat_plan_ret_events": "Product events 365 days.",
"feat_plan_ret_logs": "Log lines 30 days. Hourly log aggregates, 365 days.",
"feat_plan_ret_metrics": "Data points 90 days.",
"feat_plan_ret_services": "Service charts and map edges, from hourly rollups, 365 days. Raw spans 30 days.",
"feat_plan_ret_errors": "Occurrences 90 days. Open issues are never deleted by age.",
"feat_plan_ret_alerts": "Every rule check, with the value it saw, 365 days.",
"feat_plan_ret_k8s": "Cluster metrics 90 days.",
"feat_plan_ret_ci": "CI runs and jobs 365 days.",
"feat_plan_limit_uptime": "10 monitors on the Startup plan. More on Enterprise."
}
25 changes: 24 additions & 1 deletion apps/landing/messages/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -1439,5 +1439,28 @@
"status_feeds_rule_2_title": "status.json",
"status_feeds_rule_2_body": "全体のステータス、すべてのコンポーネント、進行中のインシデント、予定されたメンテナンスを1回のリクエストで取得できます。稼働履歴もJSONで取得できます。",
"status_feeds_rule_3_title": "README用のバッジ",
"status_feeds_rule_3_body": "badge.svgで、README、ドキュメント、アプリのフッターに現在のステータスを表示できます。"
"status_feeds_rule_3_body": "badge.svgで、README、ドキュメント、アプリのフッターに現在のステータスを表示できます。",
"feat_plan_eyebrow": "プラン",
"feat_plan_title": "料金、保持期間、セットアップ",
"feat_plan_row_plan": "plan",
"feat_plan_row_billed": "billed as",
"feat_plan_row_retention": "retention",
"feat_plan_row_limit": "limit",
"feat_plan_value": "{name}、{price}。すべての機能が使えます。",
"feat_plan_value_trial": "{name}、{price}。{days}日間の無料トライアル付き。すべての機能が使えます。",
"feat_plan_no_meter": "個別の課金はありません。プランに含まれます。",
"feat_plan_docs": "セットアップ手順",
"feat_plan_pricing": "料金の詳細",
"feat_plan_ret_traces": "スパンは30日。サービスチャートの元になる1時間単位のロールアップは365日。",
"feat_plan_ret_sessions": "リプレイはMapleが受信した時点から30日。",
"feat_plan_ret_events": "プロダクトイベントは365日。",
"feat_plan_ret_logs": "ログ行は30日。1時間単位のログ集計は365日。",
"feat_plan_ret_metrics": "データポイントは90日。",
"feat_plan_ret_services": "サービスチャートとマップのエッジは1時間単位のロールアップから365日。元のスパンは30日。",
"feat_plan_ret_errors": "発生記録は90日。未解決のイシューは経過日数では削除されません。",
"feat_plan_ret_alerts": "ルールの各チェックと観測値は365日。",
"feat_plan_ret_k8s": "クラスターメトリクスは90日。",
"feat_plan_ret_ci": "CIの実行とジョブは365日。",
"feat_plan_limit_uptime": "Startupプランでは10モニターまで。それ以上はEnterpriseで。",
"pricing_rate_included": "{amount}を含む"
}
25 changes: 24 additions & 1 deletion apps/landing/messages/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -1439,5 +1439,28 @@
"status_feeds_rule_2_title": "status.json",
"status_feeds_rule_2_body": "전체 상태, 모든 컴포넌트, 진행 중인 인시던트, 예정된 유지보수를 한 번의 요청으로 가져옵니다. 가동 기록도 JSON으로 제공됩니다.",
"status_feeds_rule_3_title": "README용 배지",
"status_feeds_rule_3_body": "badge.svg로 README, 문서 사이트, 앱 푸터에 현재 상태를 보여줄 수 있습니다."
"status_feeds_rule_3_body": "badge.svg로 README, 문서 사이트, 앱 푸터에 현재 상태를 보여줄 수 있습니다.",
"feat_plan_eyebrow": "플랜",
"feat_plan_title": "가격, 보존 기간, 설정",
"feat_plan_row_plan": "plan",
"feat_plan_row_billed": "billed as",
"feat_plan_row_retention": "retention",
"feat_plan_row_limit": "limit",
"feat_plan_value": "{name}, {price}. 모든 기능이 포함됩니다.",
"feat_plan_value_trial": "{name}, {price}, {days}일 무료 체험 포함. 모든 기능이 포함됩니다.",
"feat_plan_no_meter": "별도 과금은 없습니다. 플랜에 포함됩니다.",
"feat_plan_docs": "설정 방법",
"feat_plan_pricing": "전체 요금",
"feat_plan_ret_traces": "스팬은 30일. 서비스 차트의 기반인 시간별 롤업은 365일.",
"feat_plan_ret_sessions": "리플레이는 Maple이 받은 시점부터 30일.",
"feat_plan_ret_events": "프로덕트 이벤트는 365일.",
"feat_plan_ret_logs": "로그 라인은 30일. 시간별 로그 집계는 365일.",
"feat_plan_ret_metrics": "데이터 포인트는 90일.",
"feat_plan_ret_services": "서비스 차트와 맵 엣지는 시간별 롤업으로 365일. 원본 스팬은 30일.",
"feat_plan_ret_errors": "발생 기록은 90일. 열린 이슈는 기간이 지나도 삭제되지 않습니다.",
"feat_plan_ret_alerts": "모든 규칙 검사와 관측값은 365일.",
"feat_plan_ret_k8s": "클러스터 메트릭은 90일.",
"feat_plan_ret_ci": "CI 실행과 작업은 365일.",
"feat_plan_limit_uptime": "Startup 플랜은 모니터 10개까지. 더 필요하면 Enterprise.",
"pricing_rate_included": "{amount} 포함"
}
67 changes: 67 additions & 0 deletions apps/landing/src/__tests__/feature-markdown.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import { describe, expect, it } from "vitest"
import { GET as featureMd } from "../pages/features/[slug].md"
import { GET as llmsTxt } from "../pages/llms.txt"
import { featureBySlug, features } from "../lib/features"
import type { Feature } from "../lib/page-registry"

type Context = Parameters<typeof featureMd>[0]

const render = async (route: typeof featureMd, props: Context["props"] = {}) => {
const context = { site: new URL("https://maple.dev"), props } as Context
const response = await route(context)
return response.text()
}

const renderFeature = (slug: string) => {
const feature: Feature | undefined = featureBySlug(slug)
if (!feature) throw new Error(`no feature ${slug}`)
return render(featureMd, { feature })
}

describe("feature page markdown twins", () => {
it.each(features.map((feature) => feature.slug))(
"%s states the plan price and the scale proof",
async (slug) => {
const text = await renderFeature(slug)
expect(text).toMatch(/- \*\*plan\*\*: Startup, \$39\/month/)
expect(text).toContain("](https://maple.dev/customers/superwall)")
expect(text).toContain("](https://maple.dev/pricing.md)")
},
)

it("quotes the per-GB rate on a metered feature and the retention period", async () => {
const text = await renderFeature("log-management")
expect(text).toContain("Logs: 100 GB included, then $0.30 / GB")
expect(text).toMatch(/- \*\*retention\*\*: Log lines 30 days/)
expect(text).toContain("](https://maple.dev/docs/explore/logs.md)")
})

it("bills code review against AI usage", async () => {
const text = await renderFeature("github")
expect(text).toMatch(/- \*\*billed as\*\*: AI usage: \$10 included, then billed per model/)
})

it("says an unmetered feature has no separate charge", async () => {
const text = await renderFeature("alerts")
expect(text).toMatch(/- \*\*billed as\*\*: No separate meter/)
})

it("carries the install commands the HTML page shows", async () => {
const text = await renderFeature("kubernetes-monitoring")
expect(text).toContain("helm upgrade --install maple-k8s-infra")
expect(text).toContain("```bash")
})

it("carries the product event snippets with their docs links", async () => {
const text = await renderFeature("product-events")
expect(text).toContain('MapleBrowser.track("checkout_completed"')
expect(text).toContain("](https://maple.dev/docs/product-events/api)")
})
})

describe("llms.txt features section", () => {
it("counts every feature page in the registry", async () => {
const text = await render(llmsTxt)
expect(text).toContain(`One page per capability, ${features.length} in all.`)
})
})
20 changes: 18 additions & 2 deletions apps/landing/src/components/page/FeaturePage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
* 03 ScreenGallery bg-bg border-t more of the surface
* 04 [extra sections] per section kubernetes only
* 05 CapabilityLedger bg-bg-deep no border tone steps → tone is the rule
* 06 CrossLinks bg-bg-deep border-t tone flat → hairline
* 07 PageCta amber the one peak
* 06 PlanFacts bg-bg-deep border-t price, retention, proof, docs
* 07 CrossLinks bg-bg-deep border-t tone flat → hairline
* 08 PageCta amber the one peak
*
* The tonal rule is tighter here than on the homepage because these pages carry
* more frames: `.live-frame` is itself `--bg-deep`, so any section holding one
Expand All @@ -23,8 +24,12 @@
* `.live-frame__live` pulse and `--severity-warn` fills, which share the
* primary hue; two of them plus the closing CTA reads speckled rather than rare.
*/
import { getRelativeLocaleUrl } from "astro:i18n";
import * as m from "../../paraglide/messages.js";
import { planRows } from "../../lib/feature-plan";
import { featureBySlug } from "../../lib/features";
import { getOffer } from "../../lib/pricing-offer";
import { SCALE_PROOF_STORY_PATH } from "../../lib/scale-proof";
import { featurePath, useCasePath } from "../../lib/page-registry";
import { useCaseBySlug } from "../../lib/use-cases";
import Layout from "../../layouts/Layout.astro";
Expand All @@ -36,6 +41,7 @@ import CapabilityLedger from "./CapabilityLedger.astro";
import CrossLinks from "./CrossLinks.astro";
import PageCta from "./PageCta.astro";
import PageHero from "./PageHero.astro";
import PlanFacts from "./PlanFacts.astro";
import ScreenGallery from "./ScreenGallery.astro";
import SurfacePanel from "./SurfacePanel.astro";
import { ARTIFACTS, EXTRA_SECTIONS } from "./slots";
Expand All @@ -55,6 +61,8 @@ const locale = Astro.currentLocale ?? "en";
const title = feature.seoTitle();
const description = feature.seoDescription();

const plan = planRows(feature.plan, await getOffer());

const Artifact = feature.artifact ? ARTIFACTS[feature.artifact.id] : null;

// Resolved here rather than inside the template: Astro's compiler can't parse a
Expand Down Expand Up @@ -152,6 +160,14 @@ const crossLinks = [
}))}
/>

<PlanFacts
class="border-t border-border"
rows={plan}
docsHref={feature.plan.docs}
pricingHref={getRelativeLocaleUrl(locale, "pricing")}
proofHref={SCALE_PROOF_STORY_PATH}
/>

<CrossLinks
class="border-t border-border"
eyebrow={m.page_cross_eyebrow()}
Expand Down
65 changes: 65 additions & 0 deletions apps/landing/src/components/page/PlanFacts.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
/**
* PlanFacts: what the feature costs, how long it keeps data, the production
* proof and the setup doc. Rows come from `planRows`, which the `.md` twin also
* renders, so the two can't disagree. It sits between the ledger and the cross
* links on the same `bg-bg-deep` floor, so it takes a hairline, and its links stay
* neutral to keep the amber budget for the closing CTA.
*/
import * as m from "../../paraglide/messages.js";
import type { PlanRow } from "../../lib/feature-plan";

interface Props {
rows: PlanRow[];
docsHref: string | null;
pricingHref: string;
proofHref: string;
class?: string;
}

const { rows, docsHref, pricingHref, proofHref, class: className = "" } = Astro.props;
---

<section class={`bg-bg-deep ${className}`}>
<div class="shell py-16 md:py-24">
<p class="text-[10px] font-medium uppercase tracking-[0.18em] text-fg-muted">{m.feat_plan_eyebrow()}</p>
<h2
class="mt-4 max-w-[24ch] font-display text-2xl font-medium leading-[1.08] tracking-[-0.02em] text-fg md:text-3xl"
>
{m.feat_plan_title()}
</h2>

<dl class="mt-10">
{
rows.map((row) => (
<div class="grid gap-x-8 gap-y-1 border-t border-border py-4 lg:grid-cols-[20rem_1fr]">
<dt class="op-key pt-px leading-relaxed lg:normal-case lg:tracking-[0.08em]">{row.key}</dt>
<dd class="min-w-0 max-w-[72ch] text-[13px] leading-relaxed text-fg">{row.value}</dd>
</div>
))
}
<div class="border-t border-border" aria-hidden="true"></div>
</dl>

<p class="mt-6 max-w-[72ch] text-[13px] leading-relaxed text-fg-muted">
<span class="text-fg">{m.scale_proof_label()}:</span>
{m.scale_proof()}
<a href={proofHref} class="text-fg underline decoration-border underline-offset-4 hover:decoration-fg">
{m.scale_proof_link()}
</a>
</p>

<div class="mt-6 flex flex-wrap gap-x-6 gap-y-2 text-[13px]">
{
docsHref && (
<a href={docsHref} class="text-fg underline decoration-border underline-offset-4 hover:decoration-fg">
{m.feat_plan_docs()} →
</a>
)
}
<a href={pricingHref} class="text-fg underline decoration-border underline-offset-4 hover:decoration-fg">
{m.feat_plan_pricing()} →
</a>
</div>
</div>
</section>
16 changes: 2 additions & 14 deletions apps/landing/src/components/page/sections/K8sInstall.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,9 @@
* works or it isn't a button.
*/
import * as m from "../../../paraglide/messages.js";
import { K8S_INSTALL_STEPS } from "../../../lib/feature-sections";

const installSteps = [
{
caption: m.page_k8s_install_step_1(),
code: "kubectl create namespace maple\nkubectl -n maple create secret generic maple-ingest-key \\\n --from-literal=ingest-key=$MAPLE_INGEST_KEY",
},
{
caption: m.page_k8s_install_step_2(),
code: "helm upgrade --install maple-k8s-infra \\\n oci://ghcr.io/mapletechlabs/charts/maple-k8s-infra \\\n --namespace maple \\\n --set maple.ingestKey.existingSecret.name=maple-ingest-key \\\n --set maple.ingestKey.existingSecret.key=ingest-key \\\n --set global.clusterName=production",
},
{
caption: m.page_k8s_install_step_3(),
code: "kubectl -n maple rollout status daemonset/maple-k8s-infra-agent",
},
];
const installSteps = K8S_INSTALL_STEPS.map((step) => ({ caption: step.caption(), code: step.code }));
---

<section class="border-t border-border bg-bg">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,51 +14,23 @@ import { getRelativeLocaleUrl } from "astro:i18n";
import { Code } from "astro:components";
import * as m from "../../../paraglide/messages.js";
import { codeTheme } from "../../../lib/code-theme.mjs";
import { PRODUCT_EVENT_SOURCES } from "../../../lib/feature-sections";
import PixelIcon, { type PixelIconName } from "../../icons/PixelIcon.astro";

const locale = Astro.currentLocale ?? "en";

const sources: {
label: string;
icon: PixelIconName;
title: string;
body: string;
file: string;
lang: "ts" | "bash";
code: string;
href: string;
}[] = [
{
label: "browser",
icon: "globe",
title: m.pe_src_browser_title(),
body: m.pe_src_browser_body(),
file: "checkout.tsx",
lang: "ts",
code: 'MapleBrowser.track("checkout_completed", {\n plan: "pro",\n seats: 12,\n})',
href: "/docs/session-replay/browser-sdk#custom-events",
},
{
label: "span",
icon: "sitemap",
title: m.pe_src_span_title(),
body: m.pe_src_span_body(),
file: "billing.ts",
lang: "ts",
code: 'span.setAttributes({\n "maple.product_event.name": "plan_started",\n "maple.product_event.user_id": user.id,\n})',
href: "/docs/product-events/from-traces",
},
{
label: "server",
icon: "cloud",
title: m.pe_src_server_title(),
body: m.pe_src_server_body(),
file: "terminal",
lang: "bash",
code: 'curl https://ingest.maple.dev/v1/events \\\n -H "Authorization: Bearer $INGEST_KEY" \\\n -H "Content-Type: application/x-ndjson" \\\n -d \'{"name":"plan_started","user_id":"u_123"}\'',
href: "/docs/product-events/api",
},
];
const ICONS = {
browser: "globe",
span: "sitemap",
server: "cloud",
} satisfies Record<(typeof PRODUCT_EVENT_SOURCES)[number]["label"], PixelIconName>;

const sources = PRODUCT_EVENT_SOURCES.map((source) => ({
...source,
icon: ICONS[source.label],
title: source.title(),
body: source.body(),
}));
---

<section class="border-t border-border bg-bg">
Expand Down
Loading
Loading