No release in over 3 years
A Rails engine that automatically provides the /.well-known/appspecific/com.chrome.devtools.json endpoint for enabling Chrome DevTools automatic workspace mapping in development mode.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 8.0, >= 8.0.2
 Project Readme

ChromeDevtoolsRails

This gem provides a minimal Rails engine that automatically serves the Chrome DevTools workspace mapping file at:

/.well-known/appspecific/com.chrome.devtools.json

When Chrome accesses this file from your local development server, it enables automatic workspace folder mapping, allowing you to edit and save source files (JS, CSS, etc.) directly from Chrome DevTools into your local Rails project.

This engine is automatically mounted and only active in development mode.


🚀 Usage

  1. Visit your Rails app on localhost.
  2. Open Chrome DevTools → Sources tab.
  3. Chrome will auto-detect the .well-known file and prompt to map your local project.
  4. Approve the mapping — changes made in DevTools will now be saved directly to disk.

🔧 Installation

Add this line to your application's Gemfile:

gem "chrome_devtools_rails"

Then run:

bundle install

No route configuration is needed — the engine mounts itself automatically in development.


✅ Requirements

  • Ruby ≥ 3.1
  • Rails ≥ 8.0.2
  • Google Chrome v89+ (with DevTools workspace support)

🤝 Contributing

Pull requests are welcome on GitHub at https://github.com/6temes/chrome_devtools_rails.


📄 License

This gem is open source and released under the MIT License.