social-profile
ui · paida profile on Telegram, GitHub or YouTube from its facts, as a card or a compact row
npx shadcn add @ag/social-profileA paid item: its source installs with a licence key, kept in .env.local as AG_LICENCE_KEY and sent from components.json. The source stays in your project and out of any public repository. The licence
{
"registries": {
"@ag": {
"url": "https://ui.adriangalilea.com/r/{name}.json",
"headers": { "Authorization": "Bearer ${AG_LICENCE_KEY}" }
}
}
}Already installed? Preview an update
npx shadcn add @ag/social-profile --dry-runYour installed source stays unchanged until you update it. How updates work
SocialMarkdraws throughbrand-mark, so itsdata-slotisbrand-markinstead ofsocial-mark. CSS of yours that reached for[data-slot=social-mark]reaches for[data-slot=brand-mark]inside the profile instead.
also called telegram profile, telegram card, telegram channel, github profile, youtube channel, user card, socials
shelf social & links
the demo above, verbatim
"use client"
import { Sample } from "@/app/samples"
import type { ProfileFacts } from "@/registry/base-nova/lib/social-profile-core"
import { Button } from "@/registry/base-nova/ui/button"
import { Card } from "@/registry/base-nova/ui/card"
import {
HoverCard,
HoverCardContent,
HoverCardTrigger,
} from "@/registry/base-nova/ui/hover-card"
import { MaterialProvider } from "@/registry/base-nova/ui/material"
import {
SocialMark,
SocialProfile,
} from "@/registry/base-nova/ui/social-profile"
// #region profiles
/** Profiles as data, read once by each platform's fetcher (fetchTelegramProfile,
* fetchGithubProfile, fetchYoutubeChannel) on 2026-10-14. Nothing here fetched. */
const TELEGRAM: ProfileFacts = {
platform: "telegram",
url: "https://t.me/adriangalilea",
handle: "adriangalilea",
name: "Adrian Galilea",
kind: "person",
bio: "https://adriangalilea.com",
photo: "/adriangalilea.jpg",
counts: [],
}
const GITHUB: ProfileFacts = {
platform: "github",
url: "https://github.com/adriangalilea",
handle: "adriangalilea",
name: "Adrian Galilea",
kind: "person",
bio: "✨",
photo: "/adriangalilea.jpg",
counts: [
{ value: 52, unit: "followers" },
{ value: 98, unit: "repositories" },
],
}
const YOUTUBE: ProfileFacts = {
platform: "youtube",
url: "https://www.youtube.com/@mkbhd",
handle: "mkbhd",
name: "Marques Brownlee",
kind: "channel",
bio: "MKBHD: Quality Tech Videos | YouTuber | Geek | Consumer Electronics | Tech Head | Internet Personality!\n\nbusiness@MKBHD.com\n\nNYC",
photo:
"https://yt3.googleusercontent.com/qu4TmIaYUlS41-dJ9gZ7DUR3nilvmB5_11i6OKSdvNnBNiyOusZP1bMN6ICnuxtjFBb6ioKgRQ=s176-c-k-c0x00ffffff-no-rj",
verified: true,
counts: [
{ value: 21_400_000, unit: "subscribers" },
{ value: 1800, unit: "videos" },
],
}
const ORG: ProfileFacts = {
platform: "github",
url: "https://github.com/vercel",
handle: "vercel",
name: "Vercel",
kind: "organization",
bio: "Agentic infrastructure for every app and agent.",
photo: "https://avatars.githubusercontent.com/u/14985020?v=4&s=128",
counts: [{ value: 238, unit: "repositories" }],
}
const CHANNEL: ProfileFacts = {
platform: "telegram",
url: "https://t.me/telegram",
handle: "telegram",
name: "Telegram News",
kind: "channel",
bio: "The official Telegram on Telegram. Much recursion. Very Telegram. Wow.",
verified: true,
counts: [{ value: 9_343_606, unit: "subscribers" }],
}
// #endregion
// #region places
/** A person's places as their marks, each opening its profile, its compact view
* behind it while the hand rests there. */
function Places({ profiles }: { profiles: ProfileFacts[] }) {
return (
<div className="flex items-center gap-1">
{profiles.map((p) => (
<HoverCard key={p.platform}>
<Button
variant="ghost"
size="icon"
aria-label={`${p.name} on ${p.platform}`}
icon={<SocialMark platform={p.platform} />}
render={<HoverCardTrigger href={p.url} delay={300} />}
/>
<HoverCardContent className="w-80 p-3">
<SocialProfile facts={p} form="compact" />
</HoverCardContent>
</HoverCard>
))}
</div>
)
}
// #endregion
export default function SocialProfileDemo() {
return (
<div className="space-y-8">
<Sample name="card" glance title="a card" with="profiles">
<SocialProfile facts={TELEGRAM} className="w-80" />
</Sample>
<Sample
name="platforms"
title="telegram, github, youtube"
description="one shape for every platform: what it counts after the handle, its colour on the button where it has one, an organization's face square."
with="profiles"
>
<div className="grid gap-4 lg:grid-cols-3">
<SocialProfile facts={TELEGRAM} />
<SocialProfile facts={GITHUB} />
<SocialProfile facts={YOUTUBE} />
</div>
</Sample>
<Sample
name="glass"
title="plain and glass"
description="the same card in either material: glass from the provider round it, over a picture."
with="profiles"
>
<div className="grid gap-4 lg:grid-cols-2">
<SocialProfile facts={YOUTUBE} />
<MaterialProvider material="glass" scheme="dark">
<div className="rounded-xl bg-[url(/lightbox/lake.jpg)] bg-cover bg-center p-6">
<SocialProfile facts={YOUTUBE} />
</div>
</MaterialProvider>
</div>
</Sample>
<Sample
name="compact"
title="compact"
description="one row: the face, the name, the handle and the count that leads, the platform's mark."
with="profiles"
>
<div className="grid gap-4 lg:grid-cols-2">
<div className="flex flex-col gap-2">
<SocialProfile facts={TELEGRAM} form="compact" />
<SocialProfile facts={GITHUB} form="compact" />
<SocialProfile facts={YOUTUBE} form="compact" />
</div>
<MaterialProvider material="glass" scheme="dark">
<div className="flex flex-col gap-2 rounded-xl bg-[url(/lightbox/shore.jpg)] bg-cover bg-center p-6">
<SocialProfile facts={TELEGRAM} form="compact" />
<SocialProfile facts={GITHUB} form="compact" />
<SocialProfile facts={YOUTUBE} form="compact" />
</div>
</MaterialProvider>
</div>
</Sample>
<Sample
name="hover"
title="behind each mark"
description="a person's places as marks, each one's compact profile in a hover card; in the card it draws no box of its own."
with="profiles places"
>
<div className="grid gap-4 lg:grid-cols-2">
<div className="grid place-items-center p-6">
<Places profiles={[TELEGRAM, GITHUB, YOUTUBE]} />
</div>
<MaterialProvider material="glass" scheme="dark">
<div className="grid place-items-center rounded-xl bg-[url(/lightbox/field.jpg)] bg-cover bg-center p-6">
<Places profiles={[TELEGRAM, GITHUB, YOUTUBE]} />
</div>
</MaterialProvider>
</div>
</Sample>
<Sample
name="in-a-card"
title="inside a glass card"
description="in a frame already drawn it draws no second box: it stands on the card's glass, in the card's scheme."
with="profiles"
>
<div className="rounded-xl bg-[url(/lightbox/peaks.jpg)] bg-cover bg-center p-6">
<Card
material="glass"
scheme="dark"
title="where to find me"
description="telegram, for anything quick"
className="mx-auto max-w-96"
>
<SocialProfile facts={TELEGRAM} />
</Card>
</div>
</Sample>
<Sample
name="kinds"
title="a channel, an organization"
description="what it is is said beside the handle unless it is what the platform's profiles usually are; with no photo, the name's initials in the platform's colour."
with="profiles"
>
<div className="grid gap-4 lg:grid-cols-2">
<SocialProfile facts={CHANNEL} />
<SocialProfile facts={ORG} />
</div>
</Sample>
</div>
)
}