Since I’ve reviewed five different Rack middlewares this week, I thought it would be useful to list the other ones I’m interested in. Some are great for production deployments, some are great for development, and some are just plain silly.
- DbIndexes – shows the database indexes used by ActiveRecord on the page.
- OnlyForMe – simple authentication.
- Rack::Auth::Cheat – lets you login to an application as any user with a master password.
- Rack::EnforceSSL – forces specific paths to be requested over SSL.
- Rack::Environmental – shows a colored badge on the page for each environment.
- Rack::GemAssets – sends static files from gems to the browser. Might be useful for Rails Engines.
- Rack::KarmaChameleon – switches the extension of each page. e.g.
- Rack::LocaleSetter – “Set Rails locale using subdomain.”
- Rack::Pot – It’s a little teapot, short and $stdout.
- Rack::Rakismet – checks each request to see if there is spam comments against the Akismet API.
- Rack::Rewrite – allows defining request rewrite rules in Rack/Ruby instead of in the web server (Apache).
- Rack::Runtime – adds an
X-RuntimeHTTP header that shows how fast the application generated the content.
- Rack::SpellCheck – highlights speeling errors on the web page.
- Rack::Steroscope – adds an HTML interface to your RESTful API.
- Rack::Tidy – automatically indents and formats valid HTML markup.
- Rack::Validate – runs the page content against the w3c validator.
- ResourceCount – adds a REST endpoint to get a count of the number of records in ActiveRecord.
There are the five from my code reading series where I’ve taken a more in depth look at:
What other Rack middleware is interesting to you?