Soliloquy is a jQuery plugin that aggregates posts from various data sources ("solos") and outputs them as structured HTML. It makes no assumptions about your design or formatting preferences and defaults to a minimalistic layout that's ready to be styled with CSS.
See project page
<script type="text/javascript" charset="utf-8">
$(function(){
$('.feed')
.slq().facebook({ username: 'CriterionCollection', posts: 8, relative_dates: false } )
.slq().twitter({username: 'devth', posts: 6, relative_dates: false })
.slq().twitter_list({username: 'rails', listname: 'core', posts: 2 })
.slq().last_fm({ username: 'trevorhartman', api_key: '930dbe080df156eb81444b27a63d948b', relative_dates: false });
});
</script>
<div class="feed"></div>
A solo is a data source accessed via an API. Soliloquy's goal is to support many solos and make it
extremely quick and easy to add additional solos.
To facilitate this, AJAX data retrieval is abstracted away as much as possible, leaving the absolute necessary pieces to be described for each module.
- Options -- public options allowing user to set required fields (e.g.
usernameontwitter) and optional settings (e.g.relative_dates: false). - Settings -- internal settings that include properties such as the external API url and the local function to parse the data and create the HTML.
The abstracted architecture makes it simple to add new data sources as they come along. See the solos section of the source for examples.
Soliloquy currently supports the following solos:
- Twitter
twitter(options) - Twitter Lists
twitter_list(options) - Last.fm plays
lastfm(options) - Facebook wall feeds
facebook(options)
Fork the project, add/improve solos and send a pull request.
Copyright (c) 2010 Trevor C. Hartman
Released under the MIT License