AI Sources
Where an answer came from: inline numbered citations with a source card, a favicon pile that opens into a list, and a scrolling rail of source cards.
"use client"
import * as React from "react"
import {
ArrowLeft,
ArrowRight,
ArrowUpRight,
ChevronDown,
Globe,
} from "lucide-react"
import {
AiKitStyles,
AiStyle,
BrandIcon,
cx,
useReducedMotion,
} from "@/lib/ai-kit"
const CSS = `
.aik-sr-inline{display:grid;gap:14px;width:min(100%,380px)}
.aik-sr-p{font-size:14.5px;line-height:24px}
.aik-sr-cite{display:inline-grid;place-items:center;min-inline-size:18px;block-size:18px;padding:0 4px;margin:0 1px;border-radius:6px;vertical-align:2px;font:500 10.5px/1 var(--aik-mono);
background:var(--aik-raised);color:var(--aik-text-2);transition:background var(--aik-d-state),color var(--aik-d-state),transform var(--aik-d-press) var(--aik-ease-out)}
.aik-sr-cite:active{transform:scale(.92)}
.aik-sr-cite[data-cur]{background:var(--aik-blue);color:var(--aik-on-fill)}
.aik-sr-card{display:flex;align-items:center;gap:12px;padding:10px 12px 10px 10px;border-radius:14px;background:var(--aik-card);box-shadow:var(--aik-sh-pop);min-width:0;
transition:opacity var(--aik-d-enter) var(--aik-ease-out),transform var(--aik-d-enter) var(--aik-ease-out)}
.aik-sr-card[data-out]{opacity:0;transform:translateY(4px) scale(.98);transition-duration:var(--aik-d-exit);transition-timing-function:var(--aik-ease-in)}
.aik-sr-tile{display:grid;place-items:center;inline-size:36px;block-size:36px;flex:none;border-radius:10px;background:var(--aik-raised);color:var(--aik-text)}
.aik-sr-meta{display:grid;gap:1px;flex:1;min-width:0}
.aik-sr-meta b{font-weight:600;font-size:13.5px;line-height:19px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aik-sr-meta span{font:11.5px/16px var(--aik-mono);color:var(--aik-text-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aik-sr-card > .ic{color:var(--aik-text-3)}
.aik-sr-pile{display:grid;gap:8px;width:min(100%,360px);min-height:214px;align-content:start}
.aik-sr-phead{display:inline-flex;align-items:center;gap:10px;height:36px;padding:0 10px 0 6px;border-radius:18px;background:var(--aik-card);box-shadow:var(--aik-sh-card);justify-self:start;font-size:13px;transition:transform var(--aik-d-press) var(--aik-ease-out)}
.aik-sr-phead:active{transform:scale(.97)}
.aik-sr-phead b{font-weight:500}
.aik-sr-phead > .ic{color:var(--aik-text-3);transition:transform var(--aik-d-state) var(--aik-ease-out)}
.aik-sr-pile[data-open="true"]:not([data-leaving]) .aik-sr-phead > .ic{transform:rotate(180deg)}
.aik-sr-stack{display:inline-flex}
.aik-sr-fav{display:grid;place-items:center;inline-size:24px;block-size:24px;flex:none;border-radius:50%;background:var(--aik-raised);color:var(--aik-text);box-shadow:0 0 0 2px var(--aik-card)}
.aik-sr-fav .ic{inline-size:12px;block-size:12px}
.aik-sr-stack .aik-sr-fav + .aik-sr-fav{margin-left:-7px;transition:transform var(--aik-d-state) var(--aik-ease-out)}
.aik-sr-pile[data-open="true"]:not([data-leaving]) .aik-sr-stack .aik-sr-fav:nth-child(2){transform:translateX(3px)}
.aik-sr-pile[data-open="true"]:not([data-leaving]) .aik-sr-stack .aik-sr-fav:nth-child(3){transform:translateX(6px)}
.aik-sr-pile[data-open="true"]:not([data-leaving]) .aik-sr-stack .aik-sr-fav:nth-child(4){transform:translateX(9px)}
.aik-sr-stack{padding-right:9px}
.aik-sr-list{display:grid;padding:4px;border-radius:14px;background:var(--aik-card);box-shadow:var(--aik-sh-card)}
.aik-sr-pile[data-open="false"] .aik-sr-list{display:none}
.aik-sr-pile[data-leaving] .aik-sr-list{animation:aik-out var(--aik-d-exit) var(--aik-ease-in) both}
.aik-sr-list li{display:flex;align-items:center;gap:10px;height:36px;padding:0 10px 0 6px;border-radius:10px;font-size:13px;min-width:0;animation:aik-in var(--aik-d-enter) var(--aik-ease-out) both;animation-delay:calc(var(--i)*var(--aik-stagger))}
.aik-sr-list li:hover{background:var(--aik-hover)}
.aik-sr-list .aik-sr-fav{box-shadow:none}
.aik-sr-list b{font-weight:500;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aik-sr-list span:last-child{font:11.5px var(--aik-mono);color:var(--aik-text-3);white-space:nowrap}
@container (max-width:330px){.aik-sr-list span:last-child{display:none}}
.aik-sr-rw{display:grid;gap:12px;width:100%;min-width:0}
.aik-sr-rail{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px 2px 8px;margin:-4px -2px -8px}
.aik-sr-rail::-webkit-scrollbar{display:none}
.aik-sr-rc{flex:none;inline-size:212px;display:grid;gap:8px;align-content:start;padding:12px;border-radius:16px;background:var(--aik-card);box-shadow:var(--aik-sh-card);scroll-snap-align:start}
.aik-sr-rh{display:flex;align-items:center;gap:8px;font:11.5px var(--aik-mono);color:var(--aik-text-3);min-width:0}
.aik-sr-rh .aik-sr-fav{box-shadow:none}
.aik-sr-rh span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aik-sr-rc b{font-weight:600;font-size:13.5px;line-height:19px}
.aik-sr-rc p{font-size:12.5px;line-height:18px;color:var(--aik-text-2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.aik-sr-rel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;font:11px var(--aik-mono);color:var(--aik-text-3);font-variant-numeric:tabular-nums;padding-top:2px}
.aik-sr-rel i{block-size:3px;border-radius:2px;background:var(--aik-line-2);position:relative;overflow:hidden}
.aik-sr-rel i::after{content:"";position:absolute;inset:0;background:var(--aik-blue);transform:scaleX(0);transform-origin:0 50%;transition:transform calc(var(--aik-d-move)*1.4) var(--aik-ease-out)}
.aik-sr-rc[data-on] .aik-sr-rel i::after{transform:scaleX(var(--r))}
.aik-sr-nav{display:flex;align-items:center;gap:6px}
.aik-sr-dots{display:flex;gap:5px;margin-right:auto;padding-left:2px}
.aik-sr-dots i{inline-size:6px;block-size:6px;border-radius:50%;background:var(--aik-line-3);transition:background var(--aik-d-state),transform var(--aik-d-state) var(--aik-ease-out)}
.aik-sr-dots i[data-cur]{background:var(--aik-text);transform:scale(1.25)}
.aik-sr-card{color:inherit;text-decoration:none}
.aik-sr-card > svg{color:var(--aik-text-3)}
a.aik-sr-card:hover > svg{color:var(--aik-text)}
.aik-sr-cardbox{display:grid;min-height:56px;align-content:start}
.aik-sr-hint{font-size:12.5px;line-height:18px;color:var(--aik-text-3);align-self:center}
.aik-sr-phead > svg{color:var(--aik-text-3);transition:transform var(--aik-d-state) var(--aik-ease-out)}
.aik-sr-pile[data-open="true"]:not([data-leaving]) .aik-sr-phead > svg{transform:rotate(180deg)}
.aik-sr-row{display:flex;align-items:center;gap:10px;flex:1;min-width:0;color:inherit;text-decoration:none}
.aik-sr-list li{padding:0}
.aik-sr-list li > .aik-sr-row{height:36px;padding:0 10px 0 6px;border-radius:10px}
.aik-sr-rail:focus-visible{outline-offset:4px;border-radius:16px}
.aik-sr-rc{color:inherit;text-decoration:none}
.aik-sr-nav .aik-btn:disabled{opacity:.35;cursor:default}
`
/** How long a leaving list stays mounted, matching `--aik-d-exit`. */
const EXIT_MS = 160
export interface AiSource {
id: string
title: string
/** The site, such as "react.dev". */
domain: string
/** Makes the source a link that opens in a new tab. */
url?: string
/** A Simple Icons slug for the favicon. A globe shows when omitted. */
brand?: string
/** One or two sentences from the source. */
snippet?: string
/** How well the source matched, from 0 to 1. */
relevance?: number
}
function Favicon({ source, size = 12 }: { source: AiSource; size?: number }) {
return source.brand ? (
<BrandIcon name={source.brand} size={size} />
) : (
<Globe size={size} />
)
}
const link = (url: string | undefined) =>
url ? { href: url, target: "_blank", rel: "noreferrer" } : {}
export interface AiCitationsProps extends Omit<
React.HTMLAttributes<HTMLDivElement>,
"children"
> {
/** The answer as text and citations, in order. `{ cite }` is a source id. */
parts: Array<string | { cite: string }>
sources: AiSource[]
/** The source whose card is showing. Omit to let the chips manage it. */
active?: string | null
onActiveChange?: (id: string | null) => void
}
/** Numbered chips in the sentence; the active one's source card swaps in underneath. */
export function AiCitations({
parts,
sources,
active: controlled,
onActiveChange,
className,
...rest
}: AiCitationsProps) {
const [own, setOwn] = React.useState<string | null>(null)
const active = controlled === undefined ? own : controlled
const shown = sources.find((source) => source.id === active)
const pick = (id: string) => {
const next = id === active ? null : id
setOwn(next)
onActiveChange?.(next)
}
const Card: React.ElementType = shown?.url ? "a" : "div"
return (
<div {...rest} className={cx("aik aik-sr-inline", className)}>
<AiKitStyles />
<AiStyle id="ai-sources" css={CSS} />
<p className="aik-sr-p">
{parts.map((part, at) => {
if (typeof part === "string") return part
const number = sources.findIndex((source) => source.id === part.cite)
const source = sources[number]
if (!source) return null
return (
<button
key={at}
type="button"
className="aik-sr-cite"
aria-label={`Source ${number + 1}: ${source.title}`}
aria-pressed={source.id === active}
data-cur={source.id === active ? "" : undefined}
onClick={() => pick(source.id)}
>
{number + 1}
</button>
)
})}
</p>
<div className="aik-sr-cardbox" aria-live="polite">
{shown ? (
<Card
key={shown.id}
className="aik-sr-card aik-pop"
{...link(shown.url)}
>
<span className="aik-sr-tile">
<Favicon source={shown} size={18} />
</span>
<span className="aik-sr-meta">
<b>{shown.title}</b>
<span>{shown.domain}</span>
</span>
<ArrowUpRight size={14} />
</Card>
) : (
<span className="aik-sr-hint">Pick a number to see its source.</span>
)}
</div>
</div>
)
}
export interface AiSourcePileProps extends Omit<
React.HTMLAttributes<HTMLDivElement>,
"children"
> {
sources: AiSource[]
/** Controls the list. Omit to let the pile manage it. */
open?: boolean
defaultOpen?: boolean
onOpenChange?: (open: boolean) => void
}
/** Overlapping favicons and a count, quiet until asked; it opens into the full list. */
export function AiSourcePile({
sources,
open: controlled,
defaultOpen = false,
onOpenChange,
className,
...rest
}: AiSourcePileProps) {
const id = React.useId()
const [own, setOwn] = React.useState(defaultOpen)
const target = controlled ?? own
const [open, setOpen] = React.useState(target)
const [leaving, setLeaving] = React.useState(false)
React.useEffect(() => {
if (target) {
setLeaving(false)
setOpen(true)
return
}
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
setOpen(false)
return
}
setLeaving(true)
const timer = window.setTimeout(() => {
setLeaving(false)
setOpen(false)
}, EXIT_MS)
return () => window.clearTimeout(timer)
}, [target])
const toggle = () => {
setOwn(!target)
onOpenChange?.(!target)
}
return (
<div
{...rest}
className={cx("aik aik-sr-pile", className)}
data-open={open}
data-leaving={leaving && open ? "" : undefined}
>
<AiKitStyles />
<AiStyle id="ai-sources" css={CSS} />
<button
type="button"
className="aik-sr-phead"
aria-expanded={target}
aria-controls={id}
onClick={toggle}
>
<span className="aik-sr-stack">
{sources.slice(0, 4).map((source) => (
<span key={source.id} className="aik-sr-fav">
<Favicon source={source} />
</span>
))}
</span>
<b>
{sources.length} {sources.length === 1 ? "source" : "sources"}
</b>
<ChevronDown size={14} />
</button>
<ul className="aik-sr-list" id={id}>
{sources.map((source, at) => {
const Row: React.ElementType = source.url ? "a" : "div"
return (
<li key={source.id} style={{ "--i": at } as React.CSSProperties}>
<Row className="aik-sr-row" {...link(source.url)}>
<span className="aik-sr-fav">
<Favicon source={source} />
</span>
<b>{source.title}</b>
<span>{source.domain}</span>
</Row>
</li>
)
})}
</ul>
</div>
)
}
export interface AiSourceRailProps extends Omit<
React.HTMLAttributes<HTMLDivElement>,
"children"
> {
sources: AiSource[]
/** The card at the rail's leading edge. Omit to let scrolling manage it. */
index?: number
onIndexChange?: (index: number) => void
}
/** Source cards in a rail that scrolls and snaps; each match bar fills as its card comes into view. */
export function AiSourceRail({
sources,
index,
onIndexChange,
className,
...rest
}: AiSourceRailProps) {
const rail = React.useRef<HTMLDivElement>(null)
const reduced = useReducedMotion()
const [current, setCurrent] = React.useState(index ?? 0)
const [seen, setSeen] = React.useState<ReadonlySet<number>>(new Set([0]))
const last = Math.max(sources.length - 1, 0)
const scrollTo = React.useCallback(
(to: number) => {
const node = rail.current
const card = node?.children[to]
if (!node || !(card instanceof HTMLElement)) return
node.scrollTo({
left: card.offsetLeft - node.offsetLeft,
behavior: reduced ? "auto" : "smooth",
})
},
[reduced]
)
React.useEffect(() => {
if (index !== undefined) scrollTo(Math.min(Math.max(index, 0), last))
}, [index, last, scrollTo])
React.useEffect(() => {
const node = rail.current
if (!node) return
const observer = new IntersectionObserver(
(entries) => {
setSeen((now) => {
const next = new Set(now)
for (const entry of entries) {
if (!entry.isIntersecting) continue
const at = Array.prototype.indexOf.call(node.children, entry.target)
if (at >= 0) next.add(at)
}
return next.size === now.size ? now : next
})
},
{ root: node, threshold: 0.6 }
)
Array.from(node.children).forEach((child) => observer.observe(child))
return () => observer.disconnect()
}, [sources.length])
const currentRef = React.useRef(current)
const [fits, setFits] = React.useState(false)
const sync = React.useCallback(() => {
const node = rail.current
if (!node) return
const all = node.scrollWidth <= node.clientWidth + 2
setFits(all)
let nearest = 0
let best = Infinity
Array.from(node.children).forEach((child, at) => {
if (!(child instanceof HTMLElement)) return
const distance = Math.abs(
child.offsetLeft - node.offsetLeft - node.scrollLeft
)
if (distance < best) {
best = distance
nearest = at
}
})
if (all) nearest = 0
else if (node.scrollLeft + node.clientWidth >= node.scrollWidth - 2) {
nearest = node.children.length - 1
}
if (nearest !== currentRef.current) {
currentRef.current = nearest
setCurrent(nearest)
onIndexChange?.(nearest)
}
}, [onIndexChange])
React.useEffect(() => {
const node = rail.current
if (!node) return
const observer = new ResizeObserver(sync)
observer.observe(node)
return () => observer.disconnect()
}, [sync])
const go = (step: number) =>
scrollTo(Math.min(Math.max(current + step, 0), last))
return (
<div {...rest} className={cx("aik aik-sr-rw", className)}>
<AiKitStyles />
<AiStyle id="ai-sources" css={CSS} />
<div
ref={rail}
className="aik-sr-rail"
role="list"
aria-label="Sources"
tabIndex={0}
onScroll={sync}
>
{sources.map((source, at) => {
const Card: React.ElementType = source.url ? "a" : "article"
const match = Math.round((source.relevance ?? 0) * 100)
return (
<Card
key={source.id}
role="listitem"
className="aik-sr-rc"
data-on={seen.has(at) ? "" : undefined}
style={{ "--r": source.relevance ?? 0 } as React.CSSProperties}
{...link(source.url)}
>
<div className="aik-sr-rh">
<span className="aik-sr-fav">
<Favicon source={source} />
</span>
<span>{source.domain}</span>
</div>
<b>{source.title}</b>
{source.snippet ? <p>{source.snippet}</p> : null}
{source.relevance === undefined ? null : (
<div className="aik-sr-rel">
<i />
<span>{match}%</span>
</div>
)}
</Card>
)
})}
</div>
<div className="aik-sr-nav">
<span className="aik-sr-dots" aria-hidden="true">
{sources.map((source, at) => (
<i key={source.id} data-cur={at === current ? "" : undefined} />
))}
</span>
<button
type="button"
className="aik-btn icon sm line"
aria-label="Previous source"
disabled={fits || current <= 0}
onClick={() => go(-1)}
>
<ArrowLeft size={14} />
</button>
<button
type="button"
className="aik-btn icon sm line"
aria-label="Next source"
disabled={fits || current >= last}
onClick={() => go(1)}
>
<ArrowRight size={14} />
</button>
</div>
</div>
)
}
Installation
One command adds ai-sources and the shared AI Kit layer it is built on (tokens, faces, marks and brand icons). No animation library, light and dark built in.
"use client"
import * as React from "react"
import { AiDemo } from "@/lib/ai-demo"
import { useAiLoop } from "@/lib/ai-kit"
import {
AiCitations,
AiSourcePile,
AiSourceRail,
type AiSource,
} from "@/registry/tween/ai-sources"
const SOURCES: AiSource[] = [
{
id: "effects",
title: "Synchronizing with Effects",
domain: "react.dev",
url: "https://react.dev/learn/synchronizing-with-effects",
brand: "react",
snippet:
"Return a cleanup function so the effect stops whatever it started.",
relevance: 0.94,
},
{
id: "motion",
title: "prefers-reduced-motion",
domain: "developer.mozilla.org",
url: "https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion",
brand: "mdnwebdocs",
snippet:
"Detects whether the user asked the system to minimise non-essential motion.",
relevance: 0.88,
},
{
id: "theme",
title: "Theme variables",
domain: "tailwindcss.com",
url: "https://tailwindcss.com/docs/theme",
brand: "tailwindcss",
snippet: "Design tokens are defined in CSS with the theme directive.",
relevance: 0.81,
},
{
id: "registry",
title: "shadcn-ui/ui registry schema",
domain: "github.com",
url: "https://github.com/shadcn-ui/ui",
brand: "github",
snippet:
"Registry items can carry CSS variables and keyframes alongside files.",
relevance: 0.72,
},
{
id: "parts",
title: "AI SDK message parts",
domain: "vercel.com",
brand: "vercel",
snippet:
"A message is a list of typed parts: text, reasoning, tools and sources.",
relevance: 0.6,
},
]
function Inline() {
const root = React.useRef<HTMLDivElement>(null)
const [active, setActive] = React.useState<string | null>("effects")
const [hands, setHands] = React.useState(false)
useAiLoop(
root,
async ({ sleep }) => {
for (const id of ["effects", "motion", "theme"]) {
setActive(id)
await sleep(2100)
}
},
{ gap: 0, enabled: !hands }
)
return (
<div
ref={root}
style={{ display: "grid", width: "min(100%, 380px)" }}
onPointerDown={() => setHands(true)}
>
<AiCitations
sources={SOURCES.slice(0, 3)}
active={active}
onActiveChange={setActive}
parts={[
"Clean up every animation in the effect's return ",
{ cite: "effects" },
". Respect reduced motion and show the final state instead ",
{ cite: "motion" },
". Tailwind v4 keeps theme tokens in CSS, so the eases can live there too ",
{ cite: "theme" },
".",
]}
/>
</div>
)
}
function Pile() {
const root = React.useRef<HTMLDivElement>(null)
const [open, setOpen] = React.useState(true)
const [hands, setHands] = React.useState(false)
useAiLoop(
root,
async ({ sleep }) => {
setOpen(false)
await sleep(1500)
setOpen(true)
await sleep(3600)
},
{ gap: 0, enabled: !hands }
)
return (
<div
ref={root}
style={{ display: "grid", width: "min(100%, 360px)" }}
onPointerDown={() => setHands(true)}
>
<AiSourcePile
sources={SOURCES.slice(0, 4)}
open={open}
onOpenChange={setOpen}
/>
</div>
)
}
function Rail() {
const root = React.useRef<HTMLDivElement>(null)
const [index, setIndex] = React.useState<number | undefined>(undefined)
const [hands, setHands] = React.useState(false)
useAiLoop(
root,
async ({ sleep }) => {
for (const at of [0, 1, 2, 3, 0]) {
setIndex(at)
await sleep(1900)
}
},
{ gap: 200, enabled: !hands }
)
return (
<div
ref={root}
style={{ display: "grid", width: "min(100%, 460px)", minWidth: 0 }}
onPointerDown={() => {
setHands(true)
setIndex(undefined)
}}
onWheel={() => {
setHands(true)
setIndex(undefined)
}}
>
<AiSourceRail sources={SOURCES} index={index} />
</div>
)
}
export function AiSourcesDemo({ only }: { only?: string }) {
return (
<AiDemo
only={only}
tabs={[
{ name: "Inline citations", node: <Inline /> },
{ name: "Pile", node: <Pile /> },
{ name: "Rail", node: <Rail /> },
]}
/>
)
}
Installation
Usage
import {
AiCitations,
AiSourcePile,
AiSourceRail,
} from "@/components/ui/ai-sources"const sources = [
{ id: "effects", title: "Synchronizing with Effects", domain: "react.dev", url: "https://react.dev/learn/synchronizing-with-effects", brand: "react", relevance: 0.94 },
]
<AiCitations
sources={sources}
parts={["Clean up every animation in the effect's return ", { cite: "effects" }, "."]}
/>
<AiSourcePile sources={sources} />
<AiSourceRail sources={sources} />With the AI SDK, map each source-url part to a source: sourceId to id, title to title, and the URL's host to domain. brand is a Simple Icons slug for the favicon slot; a globe shows without one.
Versions
AiCitationsputs numbered chips in the sentence. Pressing one turns it blue and swaps its source card in underneath; pressing it again clears it.AiSourcePileis a row of overlapping favicons with a count. It opens into the full list with staggered rows and fades back when closed.AiSourceRailis a row of cards that scrolls and snaps inside its own track. The arrows and dots follow the scroll position, and each match bar fills when its card first comes into view.
Props
AiCitations
| Prop | Type | Default | Description |
|---|---|---|---|
parts | (string | { cite: string })[] | The answer as text and citations, in order. | |
sources | AiSource[] | Numbered in this order. | |
active | string | null | The source whose card shows. Omit to let the chips manage it. | |
onActiveChange | (id: string | null) => void | Called when a chip is pressed. |
AiSourcePile
| Prop | Type | Default | Description |
|---|---|---|---|
sources | AiSource[] | The first four show in the pile. | |
open | boolean | Controls the list. | |
defaultOpen | boolean | false | Starting state when uncontrolled. |
onOpenChange | (open: boolean) => void | Called from the pile button. |
AiSourceRail
| Prop | Type | Default | Description |
|---|---|---|---|
sources | AiSource[] | One card each. | |
index | number | Scrolls this card to the leading edge when it changes. | |
onIndexChange | (index: number) => void | Called as scrolling changes the leading card. |
AiSource
| Field | Type | Description |
|---|---|---|
id | string | Unique id, used by citations. |
title | string | The page title. |
domain | string | The site, such as react.dev. |
url | string | Makes the source a link that opens in a new tab. |
brand | string | Simple Icons slug for the favicon. |
snippet | string | A sentence or two, shown on rail cards. |
relevance | number | Match from 0 to 1, shown as a bar on rail cards. |