Skip to content

itskdhere/NoBG

Repository files navigation

NoBG
NoBG

Backgrounds, Gone.

nobg.itskdhere.com

πŸ”Ž Overview

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.

✨ Features

  • 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 pnpm workspace and Turborepo for optimal local development.

πŸ› οΈ Tech Stack

Frontend and API (apps/web)

  • Typescript
  • Next.js
  • Tailwind CSS
  • Shared UI Components (packages/ui)
  • Better Auth
  • Prisma ORM
  • Redis Client
  • UploadThing

Background Processing (apps/worker)

  • Python
  • FastAPI and Uvicorn
  • Rembg (CPU processing)
  • Pillow
  • Redis
  • Requests

πŸ“ Project Structure

.
β”œβ”€β”€ 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

πŸš€ Getting Started

Coming soon...

πŸ™‚

About

Backgrounds, Gone πŸ–ΌοΈ

Resources

Stars

Watchers

Forks

Contributors