Skip to main content
Use richlink() to render a URL as a rich preview card with title, summary, and cover image. Spectrum scrapes Open Graph metadata at send time. Pass just the URL and the builder fills in the rest.
import { richlink } from "spectrum-ts";

await space.send(richlink("https://example.com/article"));
title(), summary(), and cover() are lazy async accessors. The metadata fetch happens only if the receiving platform needs it. Platforms without rich-link support fall back to the URL as plain text.