<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nicolás Giacconi</title>
    <description>The latest articles on DEV Community by Nicolás Giacconi (@xaconi_94).</description>
    <link>https://dev.to/xaconi_94</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F69247%2F19651a1d-3b98-4293-8e91-6956228438c8.jpg</url>
      <title>DEV Community: Nicolás Giacconi</title>
      <link>https://dev.to/xaconi_94</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/xaconi_94"/>
    <language>en</language>
    <item>
      <title>Adding native-feeling haptics to Angular web apps with ng-haptics</title>
      <dc:creator>Nicolás Giacconi</dc:creator>
      <pubDate>Thu, 14 May 2026 21:01:39 +0000</pubDate>
      <link>https://dev.to/xaconi_94/adding-native-feeling-haptics-to-angular-web-apps-with-ng-haptics-3j3l</link>
      <guid>https://dev.to/xaconi_94/adding-native-feeling-haptics-to-angular-web-apps-with-ng-haptics-3j3l</guid>
      <description>&lt;h1&gt;
  
  
  Adding native-feeling haptics to Angular web apps with ng-haptics
&lt;/h1&gt;

&lt;p&gt;I wanted Angular web apps to feel a bit more “native” on mobile devices, especially when it comes to touch feedback.&lt;/p&gt;

&lt;p&gt;So I built a small open-source library called &lt;strong&gt;ng-haptics&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It’s a lightweight Angular-first way to add haptic feedback using only native Web APIs.&lt;/p&gt;




&lt;h2&gt;
  
  
  💡 Why this exists
&lt;/h2&gt;

&lt;p&gt;Web apps often feel “flat” compared to native apps.&lt;/p&gt;

&lt;p&gt;One missing piece is tactile feedback:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;button presses&lt;/li&gt;
&lt;li&gt;success/error feedback&lt;/li&gt;
&lt;li&gt;interaction confirmation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Native apps solve this with haptics. Web apps usually don’t.&lt;/p&gt;

&lt;p&gt;ng-haptics tries to bridge that gap in Angular.&lt;/p&gt;




&lt;h2&gt;
  
  
  ⚙️ What it is
&lt;/h2&gt;

&lt;p&gt;A tiny Angular library that provides:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Standalone APIs&lt;/li&gt;
&lt;li&gt;Declarative directives&lt;/li&gt;
&lt;li&gt;SSR-safe design&lt;/li&gt;
&lt;li&gt;Zero dependencies&lt;/li&gt;
&lt;li&gt;Mobile-first testing&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🧪 Example usage
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;ngHaptic=&lt;/span&gt;&lt;span class="s"&gt;"light"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  Click me
&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  📱 Demo
&lt;/h2&gt;

&lt;p&gt;👉 &lt;a href="https://xaconi.github.io/ng-haptics/" rel="noopener noreferrer"&gt;https://xaconi.github.io/ng-haptics/&lt;/a&gt;&lt;br&gt;&lt;br&gt;
👉 GitHub: &lt;a href="https://github.com/Xaconi/ng-haptics" rel="noopener noreferrer"&gt;https://github.com/Xaconi/ng-haptics&lt;/a&gt;&lt;br&gt;&lt;br&gt;
👉 npm: &lt;a href="https://www.npmjs.com/package/ng-haptics" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/ng-haptics&lt;/a&gt;  &lt;/p&gt;


&lt;h2&gt;
  
  
  🎥 Demo video
&lt;/h2&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://files.catbox.moe/9qanwb.mp4" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;files.catbox.moe&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;






&lt;h2&gt;
  
  
  🧠 Notes
&lt;/h2&gt;

&lt;p&gt;This is not a wrapper around Capacitor or native SDKs.&lt;/p&gt;

&lt;p&gt;It’s built entirely on top of native Web APIs like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;navigator.vibrate()&lt;/li&gt;
&lt;li&gt;feature detection&lt;/li&gt;
&lt;li&gt;fallback-safe design&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🚀 Final thoughts
&lt;/h2&gt;

&lt;p&gt;This started as a weekend experiment, but it turned into a small Angular utility for improving UX in mobile web apps. Huge thanks to Lochie's amazing &lt;a href="https://haptics.lochie.me/" rel="noopener noreferrer"&gt;web-haptics&lt;/a&gt; lib, a great inspiration!&lt;/p&gt;

&lt;p&gt;Would love feedback from other Angular developers 🙌&lt;/p&gt;

</description>
      <category>angular</category>
      <category>haptics</category>
      <category>opensource</category>
      <category>vibration</category>
    </item>
    <item>
      <title>How to create dynamic NextJS post thumbnails...like DEV.to!</title>
      <dc:creator>Nicolás Giacconi</dc:creator>
      <pubDate>Sat, 03 Apr 2021 17:22:43 +0000</pubDate>
      <link>https://dev.to/xaconi_94/how-to-create-dynamic-nextjs-post-thumbnails-like-dev-to-3ika</link>
      <guid>https://dev.to/xaconi_94/how-to-create-dynamic-nextjs-post-thumbnails-like-dev-to-3ika</guid>
      <description>&lt;p&gt;&lt;em&gt;This article was originally published in spanish &lt;a href="https://xaconi.dev/como-crear-thumbnails-dinamicos-en-next-js" rel="noopener noreferrer"&gt;on my blog&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to highlight your posts on social media
&lt;/h2&gt;

&lt;p&gt;They say an image is worth a thousand words...and that's vital when you share content on social media. I see it a lot when I'm on Twitter and I see people sharing links. Those links have featured images, which can improve the &lt;strong&gt;CTR&lt;/strong&gt; (&lt;em&gt;Clic Through Rate&lt;/em&gt;) and also the conversion rate. Obviously, that image has to be a quality-image, it has to explain the content, it needs to be adaptable to every device but... what happens with the post links or content without a featured image? 🤔&lt;/p&gt;

&lt;p&gt;Those links ara harder "to sell" on social media and, in the most commons cases, they have a generic image, or the post website logo. But for a long time I'm seeing a website which resolved this particular case in a very original way, achieving (at least in my case) paying more attention to their posts shared on social media.. And this not only helps (and it's more fancy) on social media, but also in any &lt;em&gt;microbrowser&lt;/em&gt;. But... what is a &lt;strong&gt;microbrowser&lt;/strong&gt;?&lt;/p&gt;

&lt;h2&gt;
  
  
  You use microbrowsers everyday... but you still don't know it...
&lt;/h2&gt;

&lt;p&gt;The microbrowsers are used everyday, for almost everybody with a smartphone/tablet/PC. Every time when a link is shared on social media like Facebook or Twitter, when some user shares a link in platforms like Slack, Microsoft Teams, or if a link is shared on any messaging service like WhatsApp, Skype or Telegram. Everytime a link is shared in any of those platforms, the platform makes a link &lt;em&gt;fetch&lt;/em&gt;, making a GET query, and obtaining limited results to show it in a more fancy way to the platform user. Therefore, instead of showing only the plain link, the platform shows to the user the featured image obtained on the GET query, the link title and the link meta description. That is what a microbrowser does, and they're used to format the link content, shared on many platforms nowadays.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd7l16t2u7wu7f1aahmjh.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd7l16t2u7wu7f1aahmjh.jpg" alt="Share links with featured images VS share links without featured images"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Despite the GET query, that doesn't means that the platform has to receive the whole website like a regular visit. The microbrowsers has the next limitations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The HTML parsing is limited, and some tags are filtered&lt;/li&gt;
&lt;li&gt;The cookies are not taken in account&lt;/li&gt;
&lt;li&gt;They doesn't execute JavaScript&lt;/li&gt;
&lt;li&gt;Some microbrowsers doesn't allow 301 or 302 redirections&lt;/li&gt;
&lt;li&gt;The GET query doesn't count as a regular visit, and the link click doesn't counts as a &lt;em&gt;referral&lt;/em&gt; (to visit trackers like Google Analytics)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In summary, the microbrowsers does a fetch of the basic information of the shared link, and that is the next info:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Link title, could be the title tag, or maybe the &lt;em&gt;og:title&lt;/em&gt; tag, always inside the &lt;em&gt;head&lt;/em&gt; tag.&lt;/li&gt;
&lt;li&gt;Link description, which is the &lt;em&gt;og:description&lt;/em&gt; tag value, always inside the &lt;em&gt;head&lt;/em&gt; tag.&lt;/li&gt;
&lt;li&gt;Link featured image, which can be the &lt;em&gt;og:image&lt;/em&gt;, &lt;em&gt;og:image:secure_url&lt;/em&gt; or &lt;em&gt;twitter:image:src&lt;/em&gt; tag value. For the links shared on Twitter, you can also specify the &lt;em&gt;twitter:card&lt;/em&gt; tag to make Twitter knows the visual format of the link featured image.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On my blog were already those tags to make the shared content more fancy on social media. But turning to the main point...what can we do with the links without featured image? How can be featured on social media?&lt;/p&gt;

&lt;h2&gt;
  
  
  DEV.to nailed it
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://dev.to"&gt;DEV.to&lt;/a&gt; is an awesome platform to publish technical programming-related content. I strongly recommend this website, which achieved a huge, faithful and pacific community (something strange nowadays on the internet).&lt;/p&gt;

&lt;p&gt;Almost everyday I found DEV.to content shared on my Twitter timeline, and sometimes the featured image is fancy thumbnail with the post title, the author, the publish date and some programming language logos. The first time I saw it I thinked that was a very clever solution to highlight the posts without featured images on social media in a very simple and fancy way. But... how they do it?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faihamko9vwukcxscegqi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faihamko9vwukcxscegqi.png" alt="This is the way DEV.to shares content on social media... and it's awesome!"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Generating dynamic thumbnails with Node and NextJS
&lt;/h2&gt;

&lt;p&gt;Inspecting the DEV.to code (with Chrome Developer Tools, or the source code available on &lt;a href="https://github.com/forem/forem" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;) I've seen a specific function to generate the post featured image. Adapt it to a JavaScript stack like the one on my blog (NextJS) it doesn't seems a problem. The basic functionality to achieve is the next one: get an URL where, if you make a GET query, it returns us an image with the post title you want to share, the blog's name, my personal image and the publish date. To achieve all of this, I decide to use the native NextJS serverless functions, as they adapt it perfectly to cases like this one. The only thing I have to do to create a serverless function in NextJS is to create a JavaScript function inside the &lt;code&gt;/pages/api/&lt;/code&gt; folder, in order to notify NextJS that this one is a serverless function (or Lambda in Amazon Web Services). With this function, we can get different results than with NextJS pages or React components. Also, the function will have as param the post slug, to know which post we need to return the featured image. The basic aproach is the next one:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;postSlug&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;query&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;post&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;post&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;searchPostBySlug&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;postSlug&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;postThumbnail&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;generateThumbnail&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;post&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writeHead&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Content-Type&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;image/png&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Content-Length&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;byteLength&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;screenShotBuffer&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;We search the post with incoming slug&lt;/li&gt;
&lt;li&gt;We generate the thumbnail we want to show when we share the link on social media&lt;/li&gt;
&lt;li&gt;We return the thumbnail with the image headers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Easy-peasy right? Not really... In order to style the image content when we share the link, and get some DEV.to styles, we have to know that the serverless function doesn't work on the browser, but directly on the server, Node-only, so we can forget to parse and style HTML, not even CSS. But... there's an alternative. The best way to layout and style the image as we want, is with HTML and CSS, therefore, we need to achieve a Browser in the server. That we need is the &lt;code&gt;chrome-aws-lambda&lt;/code&gt; and the &lt;em&gt;headless&lt;/em&gt; version of Chrome, &lt;code&gt;puppeteer-core&lt;/code&gt;. With these two npm packages we'll can parse HTML and CSS directly from the serverless function as a regular browser. Therefore, our serverless function could be as the next code to get the image we want:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;fs&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;fs&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;path&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;path&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;getPostBySlug&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;../../services/postsService&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;chromium&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;chrome-aws-lambda&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;postSlug&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;query&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;post&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;.jpg&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;post&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;getPostBySlug&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;postSlug&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;imageAvatar&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;fs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;readFileSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./public/xaconi.jpg&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;base64Image&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nx"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;imageAvatar&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;toString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;base64&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;dataURI&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;data:image/jpeg;base64,&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;base64Image&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;originalDate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;post&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;attributes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;date&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;formattedDate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;originalDate&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getDate&lt;/span&gt;&lt;span class="p"&gt;()}&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="p"&gt;${(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;0&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;originalDate&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getMonth&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)).&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)}&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;originalDate&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getFullYear&lt;/span&gt;&lt;span class="p"&gt;()}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;browser&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;chromium&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;puppeteer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;launch&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
        &lt;span class="na"&gt;args&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[...&lt;/span&gt;&lt;span class="nx"&gt;chromium&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;args&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;--hide-scrollbars&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;--disable-web-security&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
        &lt;span class="na"&gt;defaultViewport&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;chromium&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;defaultViewport&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="na"&gt;executablePath&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;chromium&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;executablePath&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="na"&gt;headless&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="na"&gt;ignoreHTTPSErrors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;

    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;tags&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;post&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;attributes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;tags&lt;/span&gt;&lt;span class="p"&gt;?.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;tag&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;`#&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;tag&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;
    &lt;span class="p"&gt;}).&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt; | &lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="dl"&gt;""&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;browser&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;newPage&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setViewport&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1128&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;600&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
    &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setContent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`&amp;lt;html&amp;gt;
        &amp;lt;!-- The HTML of the thumbnail to share --&amp;gt;
    &amp;lt;/html&amp;gt;`&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;screenShotBuffer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;screenshot&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writeHead&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Content-Type&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;image/png&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Content-Length&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;byteLength&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;screenShotBuffer&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="p"&gt;})&lt;/span&gt;
    &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;end&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;screenShotBuffer&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;We load the images we need direcly on the HTML (the image of my avatar only) and we start the headless browser which it will parse the HTML and CSS code. We adjust some vars we'll use on the HTML structure and we send it to the browser to load them. At the end, the HTML code doesn't matter (and it's very subjective), what it matters is that, the content we send to the headless browser, is correctly layouted like with a regular browser. The HTML code I used is the next one, but you can layout the image to share as you want:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;

&lt;span class="c1"&gt;// ...&lt;/span&gt;

&lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setContent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`&amp;lt;html&amp;gt;
    &amp;lt;body&amp;gt;
        &amp;lt;div class="social-image-content"&amp;gt;
            &amp;lt;h1&amp;gt;
                &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt; &lt;span class="nx"&gt;post&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;attributes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;title&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;
            &amp;lt;/h1&amp;gt;
            &amp;lt;div class="social-image-footer"&amp;gt;
                &amp;lt;div class="social-image-footer-left"&amp;gt;
                    &amp;lt;img src="&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt; &lt;span class="nx"&gt;dataURI&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;" /&amp;gt;
                    &amp;lt;span&amp;gt;Xaconi.dev · &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt; &lt;span class="nx"&gt;formattedDate&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt; &amp;lt;/span&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div class="social-image-footer-right"&amp;gt;
                    &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;tags&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/body&amp;gt;
    &amp;lt;style&amp;gt;
        html, body {
            height : 100%;
        }
        body {
            align-items : center;
            display : flex;
            height : 600px;
            justify-content : center;
            margin: 0;
            width : 1128px;
            background-color: #e2e2e2;
        }
        .social-image-content {
            border : 2px solid black;
            border-radius : 5px;
            box-sizing: border-box;
            display : flex;
            flex-direction : column;
            height : calc(100% - 80px);
            margin : 40px;
            padding : 20px;
            width : calc(100% - 80px);
            position: relative;
            background-color: white;
        }
        .social-image-content::after {
            content: ' ';
            position: absolute;
            top: 7px;
            left: 7px;
            width: 100%;
            background-color: black;
            height: 100%;
            z-index: -1;
            border-radius: 5px;
        }
        .social-image-content h1 {
            font-size: 72px;
            margin-top: 90px;
        }
        .social-image-footer {
            display : flex;
            flex-direction : row;
            margin-top : auto;
        }
        .social-image-footer-left {
            align-items: center;
            display: flex;
            flex-direction: row;
            font-size : 28px;
            font-weight : 600;
            justify-content: center;
            line-height: 40px;
        }
        .social-image-footer-left img {
            border : 2px solid black;
            border-radius : 50%;
            height : 40px;
            margin-right : 10px;
            width : 40px;
        }
        .social-image-footer-right {
            align-items: center;
            display: flex;
            flex-direction: row;
            height : 40px;
            justify-content: center;
            margin-left : auto;
            font-size : 28px;
        }
        * {
            font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
            Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
            font-weight : 600;
        }
    &amp;lt;/style&amp;gt;
&amp;lt;/html&amp;gt;`&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// ...&lt;/span&gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Finally, we have to put the serverless function call on the HTML tags for the microbrowsers. When they read the Post basic information, we'll receive this image.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;

&lt;span class="nt"&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
        &lt;span class="c"&gt;&amp;lt;!-- ... --&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;property=&lt;/span&gt;&lt;span class="s"&gt;"og:image"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"https://xaconi.dev/api/social-image/como-crear-thumbnails-dinamicos-en-next-js.jpg"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;property=&lt;/span&gt;&lt;span class="s"&gt;"og:image:secure_url"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"https://xaconi.dev/api/social-image/como-crear-thumbnails-dinamicos-en-next-js.jpg"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"twitter:image:src"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"https://xaconi.dev/api/social-image/como-crear-thumbnails-dinamicos-en-next-js.jpg"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="c"&gt;&amp;lt;!-- ... --&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
            &lt;span class="c"&gt;&amp;lt;!-- ... --&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Well, this is done right?&lt;/strong&gt; We have the code to generate a dynamic image in a serverless function, and this function can be called making a GET query from any browser. Testing the code on a local environment everything looks good... right? Well no, there is still a few things to fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Making the Deploy, bugs on Vercel... and be careful with our budle size...
&lt;/h2&gt;

&lt;p&gt;My blog (and many other webs) are hosted by &lt;a href="https://vercel.com/" rel="noopener noreferrer"&gt;Vercel&lt;/a&gt;, which is a fantastic hosting for static pages, with frameworks like React, NextJS, Angular, Vue, etc. or SSG as Gatsby or Jekyll. Is an ideal service for blogs like mine, and offers a really interesting free-tier, besides gaining  Analytics, performance helps, and most important... they allow serverless functions. The Vercel team (previously Zeit) are the creators of the NextJS framework, so if you have a web based on NextJS, Vercel is a totally recommended service.&lt;/p&gt;

&lt;p&gt;But making the Deploy for this project, in concrete the thumbnail generation functionality, I've found some problems. On one hand, Vercel limits the serverless functions to 50MB max-size. It's a lot, but we have consider that we're loading a Chrome browser (even it's a headless version) in only one function. Even we're not surpassing the function size limit, we're close, and deploying the project to Vercel I found what it seems a bug, because the logs on Vercel told me that the image generation function was bigger than 50MB. I looked over the function and the bundle size and everything seems ok. Even so, the problem was there.&lt;/p&gt;

&lt;p&gt;At last, I reached a Vercel &lt;a href="https://github.com/vercel/vercel/issues/4739" rel="noopener noreferrer"&gt;GitHub issue&lt;/a&gt;, where other users commented exactly the same problem. The solution? Move the function from &lt;code&gt;/pages/api/&lt;/code&gt; to &lt;code&gt;/api/&lt;/code&gt; on the project root folder. That change makes that the NextJS serverless functions, become Vercel serverless functions. And with this change, the Deploy now was possible. The only change to do, besides that, was start my local development environment with &lt;code&gt;vercel dev&lt;/code&gt; instead of &lt;code&gt;next dev&lt;/code&gt;. &lt;/p&gt;

&lt;h2&gt;
  
  
  Code example and demo
&lt;/h2&gt;

&lt;p&gt;On the &lt;a href="https://github.com/Xaconi/xaconi-site" rel="noopener noreferrer"&gt;public repo&lt;/a&gt; of my blog you can find the example of the finished code, or you can  look at the &lt;a href="https://xaconi.dev/api/social-image/bienvenidos-a-mi-blog.jpg" rel="noopener noreferrer"&gt;link of my first post thumbnail&lt;/a&gt;. I also give you a basic CodePen with a layout sample of the final image style. You can edit it to get your desire thumbnail visual style and use it on the serverless function. The layout we'll be the same after being parsed with the headless Chrome.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/Xaconi/embed/xxgEWwW?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;🙏 &lt;strong&gt;And that's all folks!&lt;/strong&gt; With a little code you can achieve wonderful things, and in this case, you can see the difrerence between share a link without thumbnail, compared with a link shared with a fancy custom image, on social media. You can play with the final layout (I used the same visual style as DEV.to). Another aproach is to use the headless Chrome to get a full render of the post and use that render to make screenshot and present it as featured image on social media. Personally, I think it's prettier the DEV.to version, but it needs more work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Thanks for reading!&lt;/strong&gt; If you like this article you can let me know about it, and if you have another aproach with the custom image thumbnail on social media, leave a comment. You can follow me on &lt;a href="https://twitter.com/Xaconi" rel="noopener noreferrer"&gt;Twitter&lt;/a&gt; to get any updates on my blog's work!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>nextjs</category>
      <category>vercel</category>
    </item>
  </channel>
</rss>
