Readmint.

Link previews for chat apps, feeds and editors

Updated

When someone pastes a link into a chat, a comment box, a CMS or a social feed, people expect a card: the page's title, a line of description, an image and the site's icon. Building that yourself means fetching arbitrary URLs from your own servers, parsing tags that are often missing or wrong, and handling pages that only exist once JavaScript runs.

What Readmint does for you

How it fits

  1. Your client sends the pasted URL to your server.
  2. Your server calls Readmint with your key (never put the key in the client) and stores the answer with the message.
  3. The client draws the card from the stored fields.
// Your server: preview a link once, when the message is posted.
async function preview(url) {
  const res = await fetch('https://api-readmint.plxi.us/v1/preview', {
    method: 'POST',
    headers: { 'X-API-Key': process.env.READMINT_KEY, 'Content-Type': 'application/json' },
    body: JSON.stringify({ url }),
  });
  if (!res.ok) return null; // refused links (4xx) aren't charged: show the plain link
  const p = await res.json();
  return { title: p.title, description: p.description, image: p.image, icon: p.favicon, site: p.site_name };
}

Cost

Each preview is one page from your plan: 1,000 a month free, 20,000 on Starter, 200,000 on Pro. Refused links are free.