Minimalist • Secure • Localized Privacy Protection
极简 • 安全 • 本地化个人隐私保护工具
English Version (Click to Expand)
Maska is a powerful Chrome extension designed to protect your privacy before you share images online. Built with a Zero-Server philosophy, it ensures all AI processing happens locally in your browser. No images are ever uploaded to any server.
- 🌟 Privacy First: Completely offline AI inference using MediaPipe.
- 👥 Auto-Detection: Instant identification of faces (and soon barcodes/text).
- 🖱️ Interactive Canvas: Powered by Fabric.js for seamless zooming, panning, and manually adjusting blurring zones.
- 🎨 Modern Aesthetics: A sleek, glassmorphism UI designed for premium user experience.
- ⚡ WebGPU Ready: Optimized for modern hardware acceleration.
-
Clone the repository
git clone https://github.com/Susskind2/A_myCode.git cd maska -
Install dependencies
npm install
-
Build the extension
npm run build
-
Load in Chrome
- Open
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select the
distdirectory.
- Open
- Upload: Drag and drop or click to upload your image.
- Review: The AI will automatically highlight sensitive areas.
- Adjust: Drag corners to resize or move boxes; use the upcoming brush tools for manual repair.
- Download: Click "Save" to export the processed image locally.
Maska/
├── src/
│ ├── popup/ # UI: Interactive components (Vue 3)
│ ├── offscreen/ # Core: AI model orchestration (MediaPipe/WASM)
│ ├── core/ # Logic: Processing services and interface definitions
│ ├── shared/ # Utils: Global type definitions and messaging
│ └── assets/ # Styles and static assets
├── public/ # Static assets and local model files (.tflite/.wasm)
└── vite.config.ts # Extension build configuration
- Frontend: Vue 3, Vite, TailwindCSS
- AI Engine: MediaPipe Tasks Vision (Local WASM)
- Canvas Engine: Fabric.js
- Persistence: IndexedDB (Model caching)
中文版 (点击展开/收起)
Maska 是一款专注于隐私保护的 Chrome 浏览器扩展。它的核心使命是在你向外界分享图片之前,自动识别并抹除图片中的敏感信息(如人脸、二维码等)。基于 Zero-Server(零服务器)理念,所有 AI 推理均在用户本地完成,图片永不上传,极致安全。
- 🌟 隐私至上:采用 MediaPipe 技术,所有 AI 推理完全在本地离线运行。
- 👥 自动检测:毫秒级自动定位人脸(即将支持二维码与文字识别)。
- 🖱️ 交互式画布:基于 Fabric.js,支持缩放、平移以及手动调整脱敏区域的大小与位置。
- 🎨 高级美学:现代化的毛玻璃(Glassmorphism)UI 设计,提供丝滑的交互体验。
- ⚡ 硬件加速:支持 WebGPU 加速,实现接近原生的推理速度。
-
克隆仓库
git clone https://github.com/Susskind2/A_myCode.git cd maska -
安装依赖
npm install
-
编译项目
npm run build
-
加载至 Chrome
- 访问
chrome://extensions/ - 开启右上角的“开发者模式”
- 点击“加载已解压的扩展程序”,选择项目中的
dist目录。
- 访问
- 导入图片:点击插件图标,在弹出窗口中上传或拖拽待处理的图片。
- 自动识别:AI 将立即扫描图片并标出敏感区域。
- 手动微调:点击识别框进行缩放、移动,或通过即将上线的画笔工具手动修补。
- 一键保存:确认脱敏效果后,点击保存将图片下载到本地。
Maska/
├── src/
│ ├── popup/ # 核心交互层:Popup 界面与组件 (Vue 3)
│ ├── offscreen/ # 离屏推理层:托管 AI 模型与推理逻辑 (WASM)
│ ├── core/ # 逻辑服务层:探测器 Provider 与业务服务
│ ├── shared/ # 共享工具层:消息类型与基础工具函数
│ └── assets/ # 静态资源与全局样式
├── public/ # 模型文件与 WASM 静态资源存储
└── vite.config.ts # 插件构建与路径配置
- 核心框架:Vue 3 + Vite + TailwindCSS
- AI 推理:MediaPipe Tasks Vision (完全本地化加载)
- 画布处理:Fabric.js
- 本地存储:IndexedDB (用于模型文件持久化缓存)
Protecting your privacy, one pixel at a time.
守护隐私,从抹除敏感像素开始。