How pt-plugins/pt-depiler works
PT-depiler is a Manifest V3 browser extension for streamlining private-tracker use. Users interact through tracker-page content controls or the options dashboard: search across configured sites, inspect and filter torrent results, then send selected torrents to a configured downloader; the extension also retains download history and user statistics. Separate capabilities cover tracker-specific parsing, user-data views, media-server integration, backup synchronization, and social-site information. The tree and sampled entry points support the main extension boundaries; some feature wiring is inferred only from README capabilities and route names, so uncertain call edges are omitted.
Main entry points: main.ts Background entry · offscreen.ts Offscreen runtime · messages.ts Extension messaging · App.vue Options dashboard
Components 28
User interfaces
- Tracker controls
src/entries/content-script/app/App.vue - Options dashboard
src/entries/options/App.vue - Dashboard routes
src/entries/options/plugins/router.ts - Downloader controls
src/entries/options/views/Overview/MyClient/Index.vue - Backup settings
src/entries/options/views/Settings/SetBackup/Index.vue
Extension runtime
- Background entry
src/entries/background/main.ts - Context menus
src/entries/background/utils/contextMenus.ts - Address search
src/entries/background/utils/omnibox.ts - Extension messaging
src/entries/messages.ts - Offscreen runtime
src/entries/offscreen/offscreen.ts
Tracker features
- Tracker adapters
src/packages/site/definitions - Aggregated search
src/entries/offscreen/utils/search.ts - User information
src/entries/offscreen/utils/userInfo.ts - Social information
src/entries/offscreen/utils/socialInformation.ts - Recommendations
src/entries/offscreen/utils/socialRecommendations.ts
External integrations
- Downloader clients
src/packages/downloader/index.ts - Media servers
src/packages/mediaServer/index.ts - Backup providers
src/packages/backupServer/index.ts
Local data
- Extension state
src/entries/storage.ts - IndexedDB adapter
src/entries/offscreen/adapter/indexdb.ts - Download history
src/entries/offscreen/utils/site.ts - Search snapshots
src/entries/offscreen/utils/search.ts - Keep-upload tasks
src/entries/offscreen/utils/keepUploadTask.ts
Other components
- Extension user
- PT sites
- Download clients
- Backup services
- Browser storage
Connections 24
- Extension user → Tracker controls: uses on sites
- Extension user → Options dashboard: opens dashboard
- Options dashboard → Dashboard routes: navigates
- Tracker controls → Extension messaging: sends commands
- Options dashboard → Extension messaging: requests client data
- Background entry → Extension messaging: registers handlers
- Background entry → Context menus: loads
- Background entry → Address search: loads
- Background entry → Offscreen runtime: loads bridge
- Aggregated search → Tracker adapters: uses definitions
- Tracker adapters → PT sites: parses and queries
- Aggregated search → Search snapshots: stores snapshots
- User information → Tracker adapters: collects tracker data
- Social information → Recommendations: supports
- Downloader controls → Extension messaging: requests status
- Downloader clients → Download clients: controls downloads
- Backup settings → Backup providers: configures and invokes
- Backup providers → Backup services: synchronizes data
- Media servers → Download clients: integrates clients
- Offscreen runtime → IndexedDB adapter: uses adapter
- Offscreen runtime → Download history: manages history
- Offscreen runtime → Keep-upload tasks: manages tasks
- Extension state → Browser storage: reads and writes
- Background entry → Extension state: repairs user data