Skip to content

Link card

A web page previewed — its picture, its site, its title and description, the whole card one link — as a card, a row or a quote.

On this page
Open
The link card, in an aparté chat The link card, in an aparté chat

A page a tool unfurled or a search found, the way chat apps preview a shared link. Its badge says what it is — an article, a video, a repository, a product — read from the page when the data does not say. The card fetches no page and calls no favicon service: a site without its own icon in the data gets its initial on a tinted square. A picture or icon in the data loads only as far as the chat’s image policy allows, and a “Show images” button loads the rest.

Open

One row per page, for search results.

Open

The block chat apps draw under a shared link, its side rule in the page’s themeColor.

Open

The address’s host, before the page is read.

bash
npm install @aparte/plugin-cards @aparte/core
ts
import { setupLinkCard } from '@aparte/plugin-cards/link';

setupLinkCard({ tool: 'unfurl' }); // one page's Open Graph, as it is
setupLinkCard({ tool: 'web_search', map: (result) => result.items, variant: 'compact' });

readLinks reads Open Graph and the results of the usual search APIs. The fields are in the guide.

  • Citations — sources cited inside a reply’s text.
  • Items card — results that are not web pages.