How ranjithrajv/superrepo works
SuperRepo is a cross-browser extension that turns repository pages and repository links into service-specific destinations. The main workflow parses a repository URL, selects services and builds rewritten targets, then presents them through the injected page UI or browser entry points; users can open or copy a destination. Settings and optional host permissions customize that experience. The excerpts show the parsing, catalog, payload, settings and background responsibilities; UI and some entry-point connections are documented in the README rather than inspected source.
Main entry points: background.js Background runtime · content.js Injected UI · options.js Options page · payload.js Panel payload
Components 17
Repository routing
- URL parsing
src/parse.js - Service catalog
src/catalog.js - Panel payload
src/payload.js
Extension interaction
- Background runtime
src/background.js - Injected UI
src/content.js - UI styles
src/content-styles.js - Inline settings
src/inline-settings.js - Glyphs
src/icons.js - Browser API shim
src/api.js
Settings and access
- Options page
src/options.js - Settings and usage
src/settings.js - Optional host access
src/host-access.js
Other components
- User
- Repository page
- External services
- Clipboard
- Browser entry points
Connections 27
- User → Repository page: visits
README.md - Repository page → Injected UI: injects UI
README.md - Injected UI → Background runtime: requests catalog
README.md - Background runtime → URL parsing: parses URL
src/background.js - Background runtime → Settings and usage: loads preferences
src/background.js - Background runtime → Panel payload: builds panel data
src/background.js - Panel payload → Service catalog: selects targets
src/payload.js - Service catalog → URL parsing: parses target URL
src/catalog.js - Panel payload → Settings and usage: orders services
src/payload.js - Panel payload → Glyphs: embeds glyphs
src/payload.js - Background runtime → Injected UI: returns payload
README.md - Injected UI → UI styles: uses styles
README.md - Injected UI → Inline settings: offers controls
README.md - Injected UI → Glyphs: renders glyphs
- Injected UI → Background runtime: requests open
README.md - Background runtime → Service catalog: builds destination
src/background.js - Background runtime → External services: opens destination
README.md - Injected UI → Clipboard: copies destination
README.md - User → Browser entry points: uses menu or omnibox
README.md - Browser entry points → Background runtime: dispatches actions
README.md - Options page → Settings and usage: loads and saves
src/options.js - Options page → Optional host access: manages permissions
src/options.js - Options page → Service catalog: creates custom service
src/options.js - Options page → Glyphs: previews glyphs
src/options.js - Settings and usage → Browser API shim: uses storage API
src/settings.js - Optional host access → Browser API shim: requests host access
src/host-access.js - Optional host access → Injected UI: registers host script
README.md