I wrote this to make my own life easier and dev quicker when I was building my own JS based apps, but I figured it might be worth sharing it here.
http://github.com/remy/twitterlib Twitterlib.js is an open source library to handle all the "open" (i.e. no auth required) API calls, and normalises the request methods and response data - i.e. search and timeline are the same. It includes a bunch of utility methods, including linkifying and generating "standard" rendered list items from a tweet object. It also supports custom method calls, allowing you to also hit pre- authenticated URLs (you can see this in use on http://snapbird.org when searching DMs or the friend timeline). It also has search filtering baked in to the library, so you can use the same syntax as the search API, but to search any of the existing API calls - i.e. a user's timeline. The library is being used in production on http://snapbird.org which searches beyond the 10 day limit using exactly the method described above. Hope this helps someone. Cheers - Remy.
