Welcome to SnapCrush, a modern, elegant, and fun web-based Snapchat-style face filter app built using HTML, CSS, JavaScript, and MediaPipe Face Mesh! 🎭
- 🧠 AI Face Tracking with MediaPipe
- 🔁 Camera Flip Support (Front & Rear)
- 🐱🐶🐰 Fun Filters – Add your own PNG overlays!
- 📸 One-Click Capture
- 📂 Upload Your Own Images for personalized filters
- 📱 Fully responsive, optimized for mobile & desktop
- 🎨 Elegant and glassmorphism UI design
- ⚡ Fast and lightweight (No backend required!)
🔗 Click here to try SnapCrush in your browser!
Note: Works best on Chrome and Safari with camera permissions enabled.
| Mobile View | Upload Panel | Filters Carousel |
|---|---|---|
![]() |
![]() |
![]() |
| Tech Stack | Purpose |
|---|---|
| HTML5 + CSS3 | Structure & Styling (Glass UI) |
| JavaScript | App Logic & Interactivity |
| MediaPipe | Face Mesh Tracking (Google) |
| Webcam API | Accessing camera streams |
| FileReader API | Loading PNG overlays |
| GitHub Pages | Hosting (optional) |
<!-- MediaPipe Libraries -->
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/face_mesh/face_mesh.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/camera_utils/camera_utils.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/drawing_utils/drawing_utils.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/control_utils/control_utils.js"></script>-
Clone the repo:
https://github.com/CodeWithPritom/SnapCrush.git cd snapcrush -
Run locally (optional): Open
index.htmlin your browser. -
Or deploy using GitHub Pages.
You can upload your own cat 🐱, dog 🐶, or bunny 🐰 overlays as transparent PNGs. Drag and drop or select files through the 📂 button.
SnapCrush is fully optimized for:
- 📱 Mobile Phones
- 💻 Desktops
- 📷 Front/Rear Cameras
- Use high-res transparent PNGs for filters.
- Mobile camera flipping is supported via
facingMode. - Filters scale and rotate based on your face orientation.
Pull requests are welcome! For major changes, please open an issue first to discuss what you’d like to change.
MIT © CodeWithPritom
Built using real-time face tracking AI and sprinkled with ✨ web magic ✨.
📌 Stay tuned for AR filter packs, sticker packs, and full mobile PWA support!
To make this more interactive and visually engaging:
-
Add assets to your repo:
/assets/demo.gif– A screen-recorded GIF of the app./assets/mobile-view.png,/upload-panel.png, etc.
-
Enable GitHub Pages:
- Deploy your HTML project and link it in the README under Live Demo.
-
Add Shields.io badges (optional):
  



