<?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>Forem: Mono</title>
    <description>The latest articles on Forem by Mono (@monochromish).</description>
    <link>https://forem.com/monochromish</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%2F1051551%2F8f2e24d2-a373-4042-9b07-f33fee71a125.jpeg</url>
      <title>Forem: Mono</title>
      <link>https://forem.com/monochromish</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/monochromish"/>
    <language>en</language>
    <item>
      <title>Expose Your Currently Listening Song on Your Profile with Last.fm Profile Readme</title>
      <dc:creator>Mono</dc:creator>
      <pubDate>Fri, 24 Mar 2023 12:02:00 +0000</pubDate>
      <link>https://forem.com/monochromish/expose-your-currently-listening-song-on-your-profile-with-lastfm-profile-readme-21oa</link>
      <guid>https://forem.com/monochromish/expose-your-currently-listening-song-on-your-profile-with-lastfm-profile-readme-21oa</guid>
      <description>&lt;p&gt;I love listening to music and sharing my taste with others. Recently, I discovered GitHub's new system for effectively displaying SVG content with Markdown and HTML on readme(s). With that in mind, I created a tool called &lt;a href="https://lastfm-profile-readme.vercel.app"&gt;Last.fm Profile Readme&lt;/a&gt;, which allows you to display an SVG image with your currently listening song details on your Github profile readme.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to use
&lt;/h2&gt;

&lt;p&gt;To display your currently listening song, add an image to your readme with the following link:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;https://lastfm-profile-readme.vercel.app/api/:username&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Replace :username with your Last.fm username. The API will return an SVG image with your currently listening song details, which can be displayed in your Github profile readme.&lt;/p&gt;

&lt;p&gt;Here is an example of how it should look:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;![Currently listening to](https://lastfm-profile-readme.vercel.app/api/Monochromish)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1tKsams5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://lastfm-profile-readme.vercel.app/api/Monochromish" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1tKsams5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://lastfm-profile-readme.vercel.app/api/Monochromish" alt="Currently listening to" width="400" height="100"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(ignore the weird font that's on Dev.to)&lt;/p&gt;

&lt;h2&gt;
  
  
  Customisation
&lt;/h2&gt;

&lt;p&gt;You can customize the image by adding query parameters to the link:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;color&lt;/code&gt; - The color of the card (Hex color code) (Default: &lt;code&gt;#000&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;textColor&lt;/code&gt; - The color of the text (Hex color code) (Default: &lt;code&gt;#fff&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;isRounded&lt;/code&gt; - Whether the card should be rounded or not (Default: &lt;code&gt;false&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;displayName&lt;/code&gt; - Whether last.fm username should be displayed or not (Default: &lt;code&gt;false&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;apiKey&lt;/code&gt; - You can use your own Last.fm API key in case my preexisting one dies somehow&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is an example of how it should look with url queries:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;![Currently listening to](https://lastfm-profile-readme.vercel.app/api/Monochromish?color=25332E&amp;amp;textColor=D8D8D8&amp;amp;isRounded=true&amp;amp;displayName=true)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aHgoT3Fz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://lastfm-profile-readme.vercel.app/api/Monochromish%3Fcolor%3D25332E%26textColor%3DD8D8D8%26isRounded%3Dtrue%26displayName%3Dtrue" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aHgoT3Fz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://lastfm-profile-readme.vercel.app/api/Monochromish%3Fcolor%3D25332E%26textColor%3DD8D8D8%26isRounded%3Dtrue%26displayName%3Dtrue" alt="Currently listening to" width="400" height="100"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>lastfm</category>
      <category>profile</category>
      <category>readme</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
