Fed Embed Save

A highly customizable, lightweight mastodon feed embed component

Project README

Embed the Fediverse!

All it takes is a single javascript file & one new element in your markup to embed any fediverse feed you want!

How to use

  1. Add the javascript file (< 2kb) to your page.
  2. Place the element in your markup.
  • Add a user's rss link to the data-source attribute
  • Optionally set data-timeout with a number value to prevent re-fetching for that many seconds (default 600s)
  1. Share the fediverse on your site!
<html>
  <body>
    <!-- Get a user's latest posts -->
    <fed-embed data-user="https://mastodon.social/@mastodon"></fed-embed>

    <!-- Get a specific post -->
    <fed-embed data-post="https://mastodon.social/@Mastodon/5258563"></fed-embed>

    <!-- Note the version number in the URL -->
    <script src="//cdn.jsdelivr.net/gh/andy-blum/[email protected]/dist/fed-embed.min.js"></script>
  </body>
</html>
Open Source Agenda is not affiliated with "Fed Embed" Project. README Source: andy-blum/fed-embed
Stars
62
Open Issues
2
Last Commit
11 months ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating