op-engineering
Professional software vendor delivering innovative solutions on the Softono platform. Specialized in both open-source and proprietary software development.
Software by op-engineering
link-preview-js
link-preview-js is a JavaScript library designed to extract rich metadata from web links. It parses URLs or HTML content to retrieve OpenGraph information, including titles, descriptions, images, and videos. The tool supports two primary methods: fetching a URL directly or parsing a pre-fetched HTML response object, which is ideal for handling CORS restrictions and server-side implementations. While it includes fallback logic for sites missing OpenGraph tags, its effectiveness depends on the target site providing standard metadata. The library is compatible with Node.js and specific mobile runtimes like React Native and Cordova. A critical security warning accompanies the tool: users should not execute direct fetch requests from a client-side device, as this exposes users to potential malicious content and violates browser security policies. Instead, usage is recommended within a server environment or sandboxed mobile container. The API automatically extracts the first valid HTTP or HTTPS link found within a