interface RichContent

Built by a provider of rich-content-service.ts when a link is posted or previewed, and stored with the dump as JSON. The frontend's RichContentCard and player read it.

Properties

The player picks how to play the link by it.

url: string
optional
siteName: string
optional
title: string
optional
description: string
optional
thumbnailUrl: string

A real preview image (og:image, a large content image, a video still). Never a favicon — an absent value means "this page offers no artwork", which is what makes the generated placeholder possible.

optional
faviconUrl: string

Used as the placeholder's glyph.

optional
accentColor: string

The page's declared brand color, normalized to #rrggbb.

optional
embedUrl: string

The player a YouTube, Bandcamp or SoundCloud link plays in, framed by the frontend.

Usage

import { type RichContent } from "shared/dump.ts";