How amirkarimi/browser-hub works
Main Components
a) Input Layer:
• External URL Sources (e.g., VSCode, Terminal, System Links)
• Browser Hub CLI Interface
b) Core Components:
• URL Router/Dispatcher (main.py)
• Configuration Manager (config.py)
• Process Manager (processes.py)
c) Output Layer:
• Browser Profile Instances
• URL Transformers
[External Sources] → [Browser Hub Core] → [Browser Instances]
Specific Implementation Details
Crucial components:
• Config File (.config/browser-hub/config.json)
• Profile Definitions
• URL Pattern Matching System
• Process Management System
• URL Transformation Pipeline
Key Processes to Illustrate
a) URL Processing Pipeline:
URL Input → Pattern Matching → Profile Selection → URL Transformation → Browser Launch
b) Process Management:
Active Browser Detection → Profile Identification → Instance Selection