How acelikesghosts/snpext works
Main Components Identification
The system appears to be a browser extension with several distinct layers:
a) Core Extension Infrastructure
• Entry point system
• Plugin system
• Webpack module system
• Utilities layer
b) Plugin Architecture
• Core plugins
• Feature plugins
• Plugin API
┌─ Browser Extension Host ─┐
• (Chrome/Firefox) │
• ┘
┌─ Extension Core ────────────────────────────────┐
• ┌─ Plugin System ─┐ ┌─ Webpack Module System ─┐ │
• ┘ └─────────────────────────┘ │
• ┌─ Reactive Store ┐ ┌─ Utilities Layer ──────┐ │
• ┘ └─────────────────────────┘ │
• ┘
┌─ Plugins ────────────────────────────────────────┐
• ┌─ Core Plugins ─┐ ┌─ Feature Plugins ────────┐ │
• NoTrack │ │ - PlatformSpoofer │ │
• Settings │ │ - RemoveBanner │ │
• RemoveBlockers │ │
• SaveImages │ │
• ┘ └────────────────────────────┘ │
• ┘
Important Relationships to Highlight
• How the entry point (src/entry.ts) initializes the plugin system
• Demonstrate the plugin API's relationship with individual plugins
• How the webpack module system interfaces with Snapchat's web client
• Reactive store's connection to the settings system
Technical Details
• TypeScript as the primary language
• React integration for settings UI
• Webpack module manipulation system
• Storage and state management through reactive store