How automationxperts/mediagit works
Mediagit is a local-only browser extension that scans media links rendered in a supported repository folder and presents them in a dedicated gallery. The user opens the toolbar popup, starts a one-time scan, and views the resulting snapshot in the gallery; settings customize the gallery and can restore it on return. Provider parsers handle GitHub, GitLab, Bitbucket, and Gitea, with shared media validation. Gallery interactions and snapshot-storage wiring are documented but the gallery and popup implementations were not excerpted, so those connections cite the README; no API or server is involved.
Main entry points: gallery/index.ts Media gallery · providers/index.ts Provider dispatch · settings/index.ts Settings page · media.ts Media validation
Components 16
Scan and providers
- Toolbar popup
src/popup/index.ts - Page scanner
src/content/scan.ts - Provider dispatch
src/providers/index.ts - GitHub parser
src/providers/github.ts - GitLab parser
src/providers/gitlab.ts - Bitbucket parser
src/providers/bitbucket.ts - Gitea parser
src/providers/gitea.ts
Gallery experience
- Media gallery
src/gallery/index.ts - Session snapshots
Preferences and branding
- Settings page
src/settings/index.ts - Preference storage
src/shared/settings.ts - Project branding
src/shared/branding.ts
Shared logic
- Page windows
src/shared/pagination.ts - Slideshow navigation
src/shared/slideshow.ts - Media validation
src/shared/media.ts
Other components
- User
Connections 22
- User → Toolbar popup: opens
README.md - Toolbar popup → Page scanner: injects scan
README.md - Page scanner → Provider dispatch: parses page
src/content/scan.ts - Provider dispatch → GitHub parser: routes to
src/providers/index.ts - Provider dispatch → GitLab parser: routes to
src/providers/index.ts - Provider dispatch → Bitbucket parser: routes to
src/providers/index.ts - Provider dispatch → Gitea parser: routes to
src/providers/index.ts - GitHub parser → Media validation: creates entries
src/providers/github.ts - GitLab parser → Media validation: creates entries
src/providers/gitlab.ts - Bitbucket parser → Media validation: creates entries
src/providers/bitbucket.ts - Gitea parser → Media validation: creates entries
- Page scanner → Session snapshots: stores snapshot
README.md - Toolbar popup → Media gallery: opens tab
README.md - Session snapshots → Media gallery: loads snapshot
README.md - User → Media gallery: views media
README.md - Media gallery → Page windows: calculates pages
README.md - Media gallery → Slideshow navigation: navigates slides
README.md - User → Settings page: opens settings
README.md - Settings page → Preference storage: reads and writes
src/settings/index.ts - Settings page → Project branding: renders branding
src/settings/index.ts - Settings page → Media gallery: returns to gallery
README.md - Media gallery → Preference storage: uses preferences
README.md