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
Categories
Data AnalyticsLicense
MIT LicenseFollow Link-Preview-JS
Other Useful Business Software
Gen AI apps are built with MongoDB Atlas
MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Link-Preview-JS!