How tuturuleo/moxxy works
Moxxy is a Chrome extension for browsing open tab groups and bookmarks as rich cards. The main workflow loads Chrome sources into the app, parses page metadata and preset-defined fields, caches card data, and renders cards that support navigation, organization, duplicate handling, and downloaded marks. Settings and the card constructor configure parsing and presentation; the picker supports selecting page elements for presets. The source excerpts show only part of the runtime, so edges for documented but unsampled features cite the README, and uncertain wiring is omitted.
Main entry points: App.tsx App workflow · parser.ts Page parser · SettingsModal.tsx Settings interface · Card.tsx Card display
Components 23
Card browsing
- App workflow
src/app/App.tsx - Card display
src/app/components/Card.tsx - Image lightbox
src/app/components/Lightbox.tsx - Collection sidebar
src/app/components/Sidebar.tsx - Card layout rules
src/lib/layout.ts
Sources and organization
- Tab and bookmark sources
src/lib/sources.ts - Bookmark operations
src/lib/bookmarks.ts - Duplicate grouping
src/lib/dupes.ts
Parsing and persistence
- Parse queue
src/lib/queue.ts - Page parser
src/lib/parser.ts - Metadata extraction
src/lib/extract.ts - Preset matching
src/lib/presets.ts - Card data store
src/lib/db.ts - Image cache
src/lib/imagecache.ts
Configuration and updates
- Card constructor
src/app/components/Constructor.tsx - Element picker
src/picker/picker.ts - Settings interface
src/app/components/SettingsModal.tsx - Settings storage
src/lib/settings.ts - Release checker
src/lib/updates.ts
Other components
- Extension user
- Chrome APIs
- Site pages
- GitHub releases
Connections 32
- Extension user → App workflow: opens
README.md - App workflow → Tab and bookmark sources: loads and edits
src/app/App.tsx - Tab and bookmark sources → Chrome APIs: queries tabs
src/lib/sources.ts - Tab and bookmark sources → Bookmark operations: reads tree
src/lib/sources.ts - App workflow → Parse queue: enqueues parsing
src/app/App.tsx - Parse queue → Page parser: dispatches jobs
README.md - App workflow → Page parser: parses pages
src/app/App.tsx - Page parser → Metadata extraction: extracts fields
src/lib/parser.ts - Page parser → Preset matching: matches preset
src/lib/parser.ts - Page parser → Site pages: fetches page
README.md - Page parser → Chrome APIs: opens requested tab
README.md - App workflow → Card data store: stores card data
src/app/App.tsx - Image cache → Card data store: uses IndexedDB
src/lib/imagecache.ts - App workflow → Settings storage: loads and saves
src/app/App.tsx - App workflow → Duplicate grouping: groups duplicates
src/app/App.tsx - App workflow → Card display: renders cards
README.md - Card display → Card layout rules: builds layout
src/app/components/Card.tsx - Card display → Image cache: loads thumbnails
src/app/components/Card.tsx - Card display → Image lightbox: opens gallery
README.md - App workflow → Collection sidebar: renders collections
src/app/App.tsx - Collection sidebar → Tab and bookmark sources: shows source groups
src/app/components/Sidebar.tsx - Collection sidebar → Duplicate grouping: shows duplicate view
src/app/components/Sidebar.tsx - Extension user → Settings interface: configures
README.md - Settings interface → Card constructor: opens constructor
src/app/components/SettingsModal.tsx - Card constructor → Page parser: tests preset
src/app/components/Constructor.tsx - Card constructor → Card display: previews card
src/app/components/Constructor.tsx - Element picker → Settings interface: saves preset
- Settings interface → Settings storage: updates preferences
README.md - Settings interface → Image cache: clears cache
src/app/components/SettingsModal.tsx - Settings interface → Release checker: checks releases
src/app/components/SettingsModal.tsx - Release checker → GitHub releases: checks latest release
src/lib/updates.ts - Extension user → Tab and bookmark sources: organizes items
README.md