{"repo":"OP-Engineering/link-preview-js","free":true,"listed":false,"github":"https://github.com/OP-Engineering/link-preview-js","clone":"git clone https://github.com/OP-Engineering/link-preview-js.git","description":"⛓ Extract web links information: title, description, images, videos, etc. [via OpenGraph], runs on mobiles and node.","language":"TypeScript","stars":903,"topics":["parsing","extract","js-library","extract-information","nodejs","react-native","http","javascript","typescript","link"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Link Preview JS npm i link-preview-js Before creating an issue It's more than likely there is nothing wrong with the library: - It's very simple; fetch HTML, parse HTML, and search for OpenGraph HTML tags. - Unless HTML or the OpenGraph standard change, the library will not break - If the target website you are trying to preview redirects you to a login page the preview will fail , because it will parse the login page - If the target website does not have OpenGraph tags the preview will most likely fail , there are some fallbacks but in general, it will not work - You cannot preview (fetch) another web page from YOUR web page. This is an intentional security feature of browsers called CORS DO NOT FETCH CONTENT DIRECTLY FROM A USERS DEVICE. ONLY RUN THIS IN YOUR SERVER AND SANDBOX IT IF YOU CAN Browsers block this via cors, but you might be clever like a fox and run this in React Native. This is a bad idea, you are exposing the device user to potentially malicious links If you use this library and find it useful please consider sponsoring me, open source takes a lot of time and effort. Link Preview Allows you to extract information from an HTTP URL/link (or parse an HTML string) and retrieve meta information such as title, description, images, videos, etc. via OpenGraph tags. Discord Join the Discord https://discord.gg/W9XmqCQCKP GOTCHAs - You cannot request a different domain from your web app (Browsers block cross-origin-requests). If you don't know how same-origin-policy wo","default_branch":null,"files":null,"tree":[],"storefront":"/r/OP-Engineering","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/OP-Engineering/link-preview-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}