link-preview-js is a lightweight TypeScript library that extracts metadata from URLs or HTML content to generate rich link previews. By parsing Open Graph tags and other metadata, it retrieves information such as titles, descriptions, images, and videos. Designed primarily for Node.js and mobile environments, it facilitates the creation of link previews similar to those found on social media platforms.​

Features

  • Parses URLs or HTML content to extract metadata like title, description, images, and videos
  • Utilizes Open Graph tags and other metadata for accurate information retrieval
  • Provides getLinkPreview and getPreviewFromContent functions for flexibility in usage
  • Supports custom headers, including user-agent and language preferences
  • Offers options to handle redirects and resolve DNS hosts to enhance security
  • Open-source under the MIT license​

Project Samples

Project Activity

See All Activity >

Categories

Data Analytics

License

MIT License

Follow Link-Preview-JS

Link-Preview-JS Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Link-Preview-JS!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

TypeScript

Related Categories

TypeScript Data Analytics Tool

Registered

2025-04-24