How acm-vit/open-with-browser works
Project type and purpose
• This is a cross-platform desktop application built with Tauri:
• Frontend: React + Vite (apps/desktop/src)
• Backend: Rust (apps/desktop/src-tauri)
• Purpose: “Open With Browser” intelligently routes incoming links to the correct browser and profile based on user-defined rules.
File structure
• Monorepo layout:
• apps/desktop – the single Tauri app (UI + Rust backend)
– src/ → React components, pages, state management
– src-tauri/ → Rust modules: rule engine, discovery, opener, storage stub, registration
• docs/ → architecture notes, OS-specific profile guides
• packages/ → placeholder for future shared libraries/crates
• CI workflows (.github/workflows) for build and release
• Config files: package.json, Cargo.toml, Vite, ESLint, Prettier, tsconfig
README for additional insights
• Architecture section outlines planned backend services:
• Rule Engine
• Browser Discovery
• Profile Resolver
• Opener
• Registration (URL handler)
• Storage (SQLite planned)
• Quick showcase clarifies user flows: dashboard → settings → click link → route or fallback dialog
Elements
• Clear labels on every component (e.g., “Rule Engine”, “Profile Resolver”)
• Annotations for protocols (IPC, HTTP, CLI spawn) and data stores (SQLite)