Skip to content

PostHog analytics and shared OG card - #2

Merged
kevinschaich merged 3 commits into
mainfrom
analytics-and-og-palette
Nov 13, 2026
Merged

kevinschaich merged 3 commits into
mainfrom
analytics-and-og-palette

Conversation

@kevinschaich

@kevinschaich kevinschaich commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Changes

PostHog. Inline posthog-js snippet in index.html (public write-only phc_ key, api_host: https://ph.darkgrade.com, defaults: 2025-11-30, autocapture on, session recording / surveys / dead clicks off). It sits after the twitter:card tag so scripts/prerender.ts's head rewrite keeps it; the built dist/toolbench/index.html contains it.

OG cards. scripts/prerender.ts now draws each card with OgCard from @kevinschaich/components/og (^0.8.2), with the Darkgrade mark, the shared dust backdrop and the route's address (darkgrade.com/toolbench/...), instead of its own satori element and palette. Fonts are registered as body (Public Sans 400), heading (Public Sans 600 and 500) and mono (Fragment Mono 400, new dependency @fontsource/fragment-mono). The stat tiles are gone: the shared card has no stats slot, so a route's stats go into the sub line ("Score 57/100 · Turns right 83% · Typical wait 2.1 s"), and routes without stats use their description.

A build regenerates 41 cards (dist/toolbench/og/). I looked at the index card and a model card: text, mark and address read cleanly over the backdrop. (0.8.1 drew the backdrop over the text; 0.8.2 fixes that.)

The first commit on this branch is an earlier palette-only edit of the old card; the second replaces it. Squash on merge.

Not verified: a live pageview reaching ph.darkgrade.com (not loaded in a browser).

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
toolbench Ready Ready Preview Nov 13, 2026 3:35pm UTC

Request Review

Replaces the hand-built satori element (and its palette) with the shared
Darkgrade card; stat tiles fold into the sub line.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@kevinschaich kevinschaich changed the title PostHog analytics and OG card palette PostHog analytics and shared OG card Nov 13, 2026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@kevinschaich
kevinschaich merged commit 63bce8d into main Nov 13, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant