Profile Open Graph Image Template
A centered profile card with an avatar, name, role, and link chips.
A centered profile card with an avatar, name, role, and link chips.
Every Open Graph image template is included with Basic and Pro. Pick a plan to copy the code, install with the CLI, and download the raw SVG.
Already purchased? Log in
Use the Profile template as the default share card for a personal site. It centers an avatar over the name, adds one line on what you do, and closes with a row of link chips for where to find you, so anyone who shares your homepage passes along a clean introduction instead of a bare url.
This template is a metadata image route for the Next.js App Router. The file exports size, contentType, and alt values plus a default async function that returns an ImageResponse. When your site is shared, satori converts the JSX into an SVG document, the runtime rasterizes that SVG into a 1200 by 630 PNG, and Next.js serves the result and wires the og:image and twitter:image tags into the page head automatically. The whole card is centered and drawn from plain elements, so it works as one image for the entire domain.
Install with the shadcn CLI using your Shadcn UI Blocks API key:
npx shadcn@latest add @shadcn-ui-blocks/og-image-personal-profile
The file lands at app/opengraph-image.tsx, which is exactly where a personal site wants it, as the single share card for the whole domain. You can also copy the code from this page straight into your project.
The card renders text with Inter, read from assets/fonts at your project root with node:fs so the font files never ship to the browser. Download the latin woff files for weights 400, 500, 600, and 700 from Fontsource and save them as assets/fonts/inter-latin-400-normal.woff and so on.
The content object holds the name, the role, the initials, and the links array, with no brand row since the profile is the brand. The initials fill the centered avatar, the name prints large beneath it, and the role gives a centered line of context capped near 760px of width. The links array renders as the chip row, so a site, a GitHub handle, and an X handle each become a pill; add or trim entries to match where you want to be found.
satori supports a focused subset of CSS: flexbox layout only, flat colors, and an explicit display: flex on any element with multiple children. Keep those rules in mind if you rework the layout.