🐘 Mastodon embed timeline

Local timeline (Javascript module)

This example shows 20 posts from the following instance:
mastodon.online

It loads the Javascript file as a module and has been initialized with the following script:

        
  <script type="module">
    import * as MastodonTimeline from '../dist/mastodon-timeline.esm.js'
    const myTimeline = new MastodonTimeline.Init({
      instanceUrl: "https://mastodon.online"
    });
  </script>
          
        

If you get an error in your browser console related with CORS: "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource..." I recommend to check the CONTRIBUTING.md document and setup a local environment to test.