isixe / bg2x
git clone https://github.com/isixe/bg2x.git
v0.2.2 · today
A free, privacy-first AI image super-resolution (upscaling) tool.
—
stars, 24h
—
stars, 7 days
+108
stars, 30 days · #2,123
108
★ total
4
forks · 0 open issues
Star history starts 2026-10-20; the chart appears after the second daily snapshot.
LanguageVue
LicenseMIT
Created2026-09-27 (23d ago)
Last pushtoday
Watchers1
OwnerUser
Links
- GitHub: github.com/isixe/bg2x
- Homepage: https://bg2x.itea.dev
- Releases · Issues · Hacker News mentions
README excerpt
bg2x A free, privacy-first AI image super-resolution (upscaling) tool that runs entirely in your browser. Demo · Installation · Desktop App · GitHub 简体中文 ## Features - **AI-Powered Super Resolution** — Upscale images up to 4x with Real-ESRGAN, Swin2SR, and Real-CUGAN models. - **Privacy Protected** — 100% client-side inference through ONNX Runtime Web inside a Web Worker. No backend, no uploads. - **Multiple AI Models** — 10 specialized models for photos, anime, illustrations, and compressed images. - **GPU Acceleration** — Runs on WebGPU when available, with automatic fallback to WASM. - **Multiple Export Formats** — Export as PNG, JPG, or WebP, and download a whole batch as a ZIP. - **Drag & Drop Support** — Add images through drag-and-drop or the file picker. - **Batch Processing** — Queue multiple images and process them one after another. - **Offline-Friendly Model Cache** — Models are cached in IndexedDB after the first download. - **Trilingual Interface** — English, Chinese, and Japanese, with light and dark themes. - **Desktop App** — Native Electron builds for Windows, macOS, and Linux. ## Tech Stack | Category | Technology | | ---------------- | -------------------------------- | | Framework | Astro 5 + Vue 3 | | Language | TypeScript | | Styling | Tailwind CSS v4 | | State Management | Pinia | | Routing | Vue Router | | i18n | Vue I18n | | AI / ML | ONNX Runtime Web (WASM / WebGPU) | | UI Components | shadcn-vue + Reka UI + Lucide | ## Available Models Models are downloaded on demand from Hugging Face and cached locally in IndexedDB. A ModelScope mirror is used as a fallback when the primary source is unreachable. | Model | Scale | Size | Best for | | ------------------------------ | ----- | ------ | ------------------------------------------------------------------ | | Real-ESRGAN AnimeVideo v3 | 4x | ~2.5MB | Fastest; tuned for anime and video frames with clean line art | | Real-ESRGAN General x4v3 | 4x | ~4.9MB | Compact general-purpose 4x; balanced everyday default | | Real-ESRGAN x4plus | 4x | ~67MB | High-quality general 4x; real photos and textures (slower) | | Real-ESRGAN x4plus Anime | 4x | ~18MB | 6-block anime model; clean edges and flat colors for illustrations | | Real-ESRGAN x4plus Anime 4B32F | 4x | ~5.2MB | Ultra-small 4-block anime model; fast and light | | Swin2SR Lightweight x2 | 2x | ~8.1MB | Lightweight Swin2SR 2x upscaler | | Swin2SR Classical x4 | 4x | ~55MB | Classical degradations; high fidelity on clean images | | Swin2SR RealWorld x4 | 4x | ~53MB | Real-world / BSRGAN degradations; noisy or compressed photos | | Swin2SR Compressed x4 | 4x | ~55MB | Heavily compressed JPEGs; suppresses block artifacts | | Real-CUGAN 2x (HFA2k) | 2x | ~5.2MB | Anime-focused 2x; strong line preservation and denoising | ## Installation ### Clone the Repository [code] ### Install Dependencies [code] > This project uses **pnpm**; `pnpm-lock.yaml` is the only lockfile. The `packageManager` field in `package.json` pins