I've started a JavaScript library called GiantFuse, which can be used to retrieve and render GiantBomb data. The library is currently equipped to find all links to GiantBomb.com and create tooltips to the supported link types (just games right now). You can get the code on the Google Code GiantFuse project or see a quick demo of it on my personal site.
As you will quickly see, it's pretty limited so far, but the framework I'm building will allow fairly modular extension to franchises, characters, etc. If you're interested in helping out, let me know. I'd love to get some co-maintainers on the project, or at least some suggestions / bug reports on what's there so far.
Documentation is pretty sparse at this point, so use of the library is pretty much for developers only at this point. The goal is to allow anyone to plug the library into the head of their site's HTML structure, thus rendering all links to GiantBomb as tooltips.
The biggest issue I've run into so far is speed of the requests to the API. Even with field filters on the request, it can go slower than is desired for something like a tooltip. This would be an argument for server-side caching in whatever app is implemeting the GiantFuse library, so future code will likely include some sample caching libraries.
Enjoy, and let me know what you think! I've been swamped at my job lately, so I likely won't touch this much for a couple of weeks, but I'll check back here and on the Google Code project regularly.
Update #1
- Added support for characters, franchises, companies and concepts and demos for each (more coming very soon).
- Completely refactored the source to be more manageable. Project is now built with ant and produces mini-fied Javascript.
- See the existing demo site for samples.
Log in to comment