Backgrounds, Gone.
NoBG is an open-source, full-stack application designed to automatically remove backgrounds from images. Built with a Next.js frontend and a fast Python worker, NoBG orchestrates image processing jobs using Redis and UploadThing via an event-driven, decoupled architecture utilizing message queues.
- Fast Background Removal: Leveraging the Rembg library running on a dedicated FastAPI/Python worker.
- Modern Tech Stack: Next.js App Router with React 19, Tailwind CSS, and Radix UI components.
- Authentication: Built-in credential and OAuth flow using Better Auth.
- Database: PostgreSQL with Prisma ORM for type-safe database access.
- Job Queuing: Redis is used for fast, reliable job queues between the web frontend and worker.
- Cloud Storage: Integrated with UploadThing for secure image upload and hosting.
- Monorepo Structure: Managed with
pnpmworkspace and Turborepo for optimal local development.
- Typescript
- Next.js
- Tailwind CSS
- Shared UI Components (
packages/ui) - Better Auth
- Prisma ORM
- Redis Client
- UploadThing
- Python
- FastAPI and Uvicorn
- Rembg (CPU processing)
- Pillow
- Redis
- Requests
.
βββ apps/
β βββ web/ # Next.js frontend and API routes
β βββ worker/ # Python worker for background removal
βββ packages/
β βββ ui/ # Shared React UI components
β βββ eslint-config/ # Shared ESLint configurations
β βββ typescript-config/ # Shared TS configs
βββ turbo.json # Turborepo configuration
Coming soon...
