St-social-media-links: An Easy-to-Use Social Media Link Display for Streamlit

Hi everyone!

I’m excited to share the release of the st-social-media-links library. This package is designed to make it easy to add social media links to your Streamlit apps.

Live Demo. Documentation. Pypi.

With st-social-media-links, you can display links to your/your projects’ social media profiles. The package supports a variety of social media platforms, including Facebook, YouTube, Instagram, TikTok, LinkedIn, X/Twitter, Reddit, Pinterest, Discord, Twitch, Threads, and Tumblr. You can also include links to Github or Gitlab.

In the Streamlit apps I am working on I was embedding links/icons directly, but wrapping them up in a package makes the code much less cluttered, and I thought I could just make it available for others. The library is pretty lightweight and uncomplicated to use.

Here’s a use example:

import streamlit as st
from st_social_media_links import SocialMediaIcons

social_media_links = [
    "https://www.facebook.com/ThisIsAnExampleLink",
    "https://www.youtube.com/ThisIsAnExampleLink",
    "https://www.instagram.com/ThisIsAnExampleLink",
    "https://www.github.com/jlnetosci/st-social-media-links",
]

social_media_icons = SocialMediaIcons(social_media_links)

social_media_icons.render()

st-social-media-links allows you to add the links the main-page or the sidebar (or both), and offers customization options (for the icon order, color, and distribution you find more aesthetically pleasing).

I hope you find st-social-media-links useful for your Streamlit projects. Whether you’re building a data dashboard, a machine learning model, or simple web app, st-social-media-links may help you make it look more professional and engaging.

Please let me know if you have any feedback or suggestions!

Cheers!

9 Likes

Great addition, love it!

1 Like

Hello everyone, I just did a small update to include the suggestion of @raules88 to add a Medium icon to the platforms.

Cheers.

1 Like

Hi everyone, a new version of st-social-media-links (v0.1.4) has been released.

I have included support for new platforms: Buy Me a Coffee, Flickr, Skype, Slack, Snapchat, Spotify, Stack Overflow, Telegram, TradingView, Vimeo, and Whatsapp at the suggestion of pcDamasceno @ github.

Additionally, I have also added support for Patreon and Ko-fi links.

Cheers!

Very nice! Cleanly done and a great example
:slight_smile:

1 Like

Hello everyone! One week after its first anniversary, I’m excited to announce that st-social-media-links has been updated to v0.1.5.

It now also supports links to Bluesky, KNIME, “mailto:”, Mastodon (mastodon.social instance only, others may be added if requested), and Zenodo.

As usual, please let me know if you have any feedback, suggestions or feature requests.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.