Remove image backgrounds directly in the browser using AI — no backend required.
This project demonstrates running Hugging Face Transformers.js models fully client-side for fast, private image processing.
git clone git@github.com:gallaouim/bg-remover.git
cd bg-remover
npm install
npm run dev
http://localhost:5173
bg-remover/
├── index.html # Main HTML page
├── src/
│ ├── main.js # App initialization
│ ├── app.js # Model loading & background removal logic
│ └── style.css # Styles for UI
└── vite.config.js # Vite configuration
Uses a segmentation model compatible with:
import { AutoModel, AutoProcessor } from "@huggingface/transformers";
npm run build
npm run preview
dist/ folder contains the production-ready appMIT License — free for personal and commercial use.
Pull requests are welcome! Improve performance, UI, or add new features.
3 commits
2 commits
JavaScript
65.6%
CSS
25.3%
HTML
9.1%
Remove image backgrounds directly in the browser using AI — no backend required.
This project demonstrates running Hugging Face Transformers.js models fully client-side for fast, private image processing.
git clone git@github.com:gallaouim/bg-remover.git
cd bg-remover
npm install
npm run dev
http://localhost:5173
bg-remover/
├── index.html # Main HTML page
├── src/
│ ├── main.js # App initialization
│ ├── app.js # Model loading & background removal logic
│ └── style.css # Styles for UI
└── vite.config.js # Vite configuration
Uses a segmentation model compatible with:
import { AutoModel, AutoProcessor } from "@huggingface/transformers";
npm run build
npm run preview
dist/ folder contains the production-ready appMIT License — free for personal and commercial use.
Pull requests are welcome! Improve performance, UI, or add new features.
3 commits
2 commits
JavaScript
65.6%
CSS
25.3%
HTML
9.1%