---
title: "Discussion on \"Generating Link Previews with React and Nodejs\" | Hashnode"
description: "Discussion on \"Generating Link Previews with React and Nodejs\". In this series, we learn how to generate a link preview for all websites. This is done using Reactjs and Nodejs"
url: "https://hashnode.com/posts/generating-link-previews-with-react-and-nodejs/641016ab4bc34eaca048f757"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Generating Link Previews with React and Nodejs](https://blog.otwumasi.tech/generating-link-previews-with-react-and-nodejs?utm_source=hashnode&utm_medium=feed)

In this series, we learn how to generate a link preview for all websites. This is done using Reactjs and Nodejs

Mar 14, 2023 · 4 min read · blog.otwumasi.tech  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#express](https://hashnode.com/tag/express)
-   [#webscraping](https://hashnode.com/tag/webscraping)

## Written by

[Oduro Twumasi John Barnes](https://hashnode.com/@jaybarnes33)

@jaybarnes33 · Ghana

  
[View profile](https://hashnode.com/@jaybarnes33)

Software Developer

## Responses 3

Markdown supported · ⌘↵ to post

[Sanjana Ekanayake](https://hashnode.com/@Sanjanae)

[Mar 18, 2024](https://hashnode.com/posts/generating-link-previews-with-react-and-nodejs/641016ab4bc34eaca048f757/comment/65f7e7337f7c4094fec9ba5d)

I have tried this approach, but unfortunately, for some URLs, we cannot fetch images with their metadata properties. How do you suggest handling that?

[Oduro Twumasi John Barnes](https://hashnode.com/@jaybarnes33)

[Sep 2, 2024](https://hashnode.com/posts/generating-link-previews-with-react-and-nodejs/641016ab4bc34eaca048f757/comment/65f7e7337f7c4094fec9ba5d#reply-66d6057f2973ded7bc13fa7b)

Yeah, I forgot to mention that for some websites the markup is generated from javascript by the browser and for most of these a simple fetch request won't return all the needed content.

You can try another approach where you fetch the content with a headless browser instead.

[Mausoof Abdullah](https://hashnode.com/@Mausoof)

[Jan 22, 2024](https://hashnode.com/posts/generating-link-previews-with-react-and-nodejs/641016ab4bc34eaca048f757/comment/65ae5e7767ba98df2a9063e5)

Hi where is the second part of this, implementing in react front end

[Derek Oware](https://hashnode.com/@hashBunny)

[Mar 14, 2023](https://hashnode.com/posts/generating-link-previews-with-react-and-nodejs/641016ab4bc34eaca048f757/comment/641033ebd0ccf16ed8180ec8)

Do you think puppeteer would be an overkill for this?

[Oduro Twumasi John Barnes](https://hashnode.com/@jaybarnes33)

[Mar 14, 2023](https://hashnode.com/posts/generating-link-previews-with-react-and-nodejs/641016ab4bc34eaca048f757/comment/641033ebd0ccf16ed8180ec8#reply-64104fe023ae346d7603e80b)

Yeah, but if you want this to be more advanced, something like puppeteer would be the way to go.

[Mausoof Abdullah](https://hashnode.com/@Mausoof)

[Jan 23, 2024](https://hashnode.com/posts/generating-link-previews-with-react-and-nodejs/641016ab4bc34eaca048f757/comment/641033ebd0ccf16ed8180ec8#reply-65af830744b521815ce439d2)

[Oduro Twumasi John Barnes](https://hashnode.com/@jaybarnes33) please share the link of the part2, if it is done

[Oduro Twumasi John Barnes](https://hashnode.com/@jaybarnes33)

[Jan 23, 2024](https://hashnode.com/posts/generating-link-previews-with-react-and-nodejs/641016ab4bc34eaca048f757/comment/641033ebd0ccf16ed8180ec8#reply-65af83bc40df44a4ebd1bb2e)

I will share in a bit [Mausoof Abdullah](https://hashnode.com/@Mausoof)
