How muhammad9985/responsive-studio-extension works
Responsive Studio is a Chrome extension for previewing a web page at device-sized viewports. Users can launch the studio from the toolbar popup or a context menu, select device profiles, and inspect one viewport or a multi-device matrix; the studio also offers fitting, zoom, reload, and visual debugging controls. The device catalog supplies viewport and mockup metadata, while content scripts support scroll synchronization and scrollbar styling. Relationships not directly visible in the sampled source are included only where the README documents them; manifest wiring and some viewer internals were not sampled.
Main entry points: viewer.js Studio engine · background.js Extension worker · popup.js Toolbar popup · viewer.html Studio interface
Components 13
Launch and control
- Toolbar popup
popup.js - Extension worker
background.js
Viewport studio
- Studio interface
viewer.html - Studio engine
viewer.js - Viewport matrix
viewer.js - Fit and zoom
viewer.js - Studio dev tools
viewer.js
Device profiles
- Device profiles
devices.js
Browser integration
- Scroll sync
content-sync.js - Local frame bypass
dnr_rules.json
Other components
- Developer
- Chrome APIs
- Target web page
Connections 17
- Developer → Toolbar popup: opens
README.md - Developer → Studio interface: opens
README.md - Toolbar popup → Chrome APIs: queries tab
popup.js - Toolbar popup → Extension worker: sends actions
popup.js - Extension worker → Studio interface: opens tab
background.js - Extension worker → Chrome APIs: resizes window
background.js - Studio interface → Studio engine: runs
- Studio engine → Device profiles: uses profiles
- Studio engine → Viewport matrix: renders
viewer.js - Studio engine → Fit and zoom: calculates fit
viewer.js - Studio engine → Studio dev tools: controls
README.md - Studio engine → Target web page: previews
README.md - Target web page → Scroll sync: reports scroll
content-sync.js - Scroll sync → Studio engine: sends scroll
README.md - Studio engine → Scroll sync: broadcasts scroll
viewer.js - Local frame bypass → Target web page: removes frame headers
README.md - Chrome APIs → Extension worker: dispatches events
background.js