# Federation widget ## About This is a javascript widget that shows the public timeline of an account in the Federation (Diaspora, Friendica, Hubzilla) and Mastodon. Currently only tested with Friendica. The Federation widget parses the Atom output of your account. It shows the timeline from the personal or forum account on your personal blog or website. It makes most sense for static website generators like Pelican. You only have to include the Javascript file, the CSS part and a placeholder in your website template. This works for a user or a group. It is loosely based on the [ELI widget](https://github.com/blankoworld/eli) for GNU Social. ![User Timeline](federation_user.png) ![Group Timeline](federation_group.png) The server has to support [Cross-Origin Resource Sharing](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing). The .htaccess file in the server directory should include the following code for this: ``` Header add Access-Control-Allow-Origin "*" Header add Access-Control-Allow-Methods: "GET" ``` ## License This program is licensed under the [WTF Public License](http://sam.zoy.org/wtfpl/COPYING 'Read more about the WTF Public License'). ## Installation Just: * copy the federation-widget.js in your website directory * add this code in your page: ```html
Timeline activity...