Home/Skills/Background Removal JS

Product Creative · Open source on GitHub

Background Removal JS

Cut out backgrounds in the browser — images never leave the machine and there is no per-image fee. The easiest way to batch-process product shots.

GitHub Open-source tool TypeScript · 7.4k ★ AGPL-3.0
imgly/background-removal-js GitHub repository card

Upfront: I did not build this. It is an open-source project on GitHub (imgly/background-removal-js, AGPL-3.0). It is listed here on star count, maintenance activity and how well it fits day-to-day storefront operations.

What it does

How to use it

Install as an npm package — the main package for the browser, the node package for batch jobs:

# browser
npm i @imgly/background-removal

# Node, for batch processing
npm i @imgly/background-removal-node

If you just want to see the quality, the authors host a live demo — drag an image in. Note the licence is AGPL-3.0: fine for internal use, but read the terms before embedding it in a commercial product (a commercial licence is offered).

When to use it, and when not to

Use this for the cutout itself. For background swaps, model changes and apparel compositing, see ComfyUI-RMBG; to turn a photo into listing copy, see Description Generator. Note: the repo was last updated in July 2025, so maintenance has slowed, though the npm package still installs and works.