Rack-smoke is a project mainly written in Ruby, based on the MIT license.
Expose Smoke sources and transcode them into JSON, XML or YAML
Rack::Smoke allows you to expose Smoke sources and transcode them into JSON, XML or YAML.
Rack::Smoke gives you a bunch of HTML screens (found at /smoke
) that outline the Smoke sources that are found within your current environment.
From there, you'll be able to see the formats that you can get the stream in, or if they require any additional query strings.
Smoke allows you to take single serve sources from around the web. Then it does a bunch of smart stuff like automagically transferring as gzip, request caching and understands the content that it gets back. YQL, Atom / RSS feeds, json and xml are all converted to ruby arrays.
Smoke-rack allows you to transcode that information and provide an API like layer of your own.
# config.ru
require 'rubygems'
# Ensure your app has some Smoke sources
require 'your-app'
require 'rack-smoke'
use Rack::Smoke
run Sinatra::Application
Then navigate to localhost:PORT/smoke to get a list of available sources
gem install rack-smoke
Copyright (c) 2010 Ben Schwarz. See LICENSE for details.