Binoculars is your debug assistant for Rails. It gives you a real-time dashboard of requests and responses so you can spot issues, trace activity, and understand your app’s behavior without leaving the browser.
It helps developers capture request/response data and view them in a simple dashboard, right inside their Rails app. Perfect companion for your Rails development environment.
Add this line to your application's Gemfile:
gem "binoculars", github: "debashiscodes/binoculars"Then run:
bundle installIn your host app’s config/routes.rb:
mount Binoculars::Engine => "/binoculars"Now you can access the dashboard at:
http://localhost:3000/binoculars
- Binoculars automatically logs each incoming HTTP request.
- Visit
/binocularsin your browser to view logs in a table.
Contributions are welcome! 🎉 Whether it’s reporting a bug, suggesting an enhancement, or opening a pull request — every bit helps.
To get started:
- Fork the repository.
- Create a feature branch (
git checkout -b feature/my-feature). - Commit your changes (
git commit -m "feat: add new feature"). - Push to your branch (
git push origin feature/my-feature). - Open a Pull Request.
The gem is available as open source under the terms of the MIT License.
