jQuery plugin for aggregating posts from many data sources
MIT License
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, relativeDates: false } )
.slq().twitter({username: 'devth', posts: 6, relativeDates: false })
.slq().twitterList({username: 'rails', listname: 'core', posts: 2 })
.slq().lastfm({ username: 'trevorhartman', apiKey: '930dbe080df156eb81444b27a63d948b', relativeDates: 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. Each solo is comprised of:
username
on twitter
) and optional settings (e.g. relativeDates: false
).The soliloquy core then parses these objects and provides an interface for a user to call them. 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(options)
twitterList(options)
lastfm(options)
facebook(options)
Fork the project, add/improve solos and send a pull request.
Copyright (c) 2011 Trevor C. Hartman Released under the MIT License