# Repository Briefing: techjarves/Portable-Local-Studio
> Source: https://repoforai.com/repo/techjarves/Portable-Local-Studio (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/techjarves/Portable-Local-Studio
- **Official Docs / Website**: https://youtu.be/u89EoYOkA6U?si=AjTHc6zO8TYaIDcP
- **Category**: Chat UI & AI Apps (聊天界面与 AI 应用)
- **Primary Language**: JavaScript
- **License**: MIT
- **Engineering Health**: A (78/100 · Maintenance 31/35 · Adoption 21/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Self-Hosted, Local AI, GPU
- **Momentum**: 2,155 ★ total (+1 24h / +51 7d) · 515 forks
- **Topics**: `image-generation`, `speech-to-text`, `text-generation`, `text-to-speech`
- **When to Use**: Best for: A single operator who wants offline GGUF chat, single-file Stable Diffusion image generation, transcription, and speech synthesis on a compatible workstation. Skip if: You need composable image workflows, simultaneous image and chat model residency, built-in team authentication, or prebuilt support for Intel Macs or older Linux runtimes.

## Overview
```text
### Architecture & Core Mechanics
Portable Local Studio is a single-machine application with a Vite/React browser frontend and a local Node.js service. The service manages backend lifecycles rather than running every model inside JavaScript: image generation uses stable-diffusion.cpp, chat uses a portable llama.cpp server, transcription invokes whisper-cli, and server-side speech synthesis uses kokoro-js with the Kokoro-82M ONNX model.

Platform setup, server management, and workers are separated under scripts/setup/, scripts/server/, and scripts/workers/. Image weights live in app/models/, chat weights in app/llm-models/, and generated images are written to app/outputs/ alongside JSON parameter metadata. Image and chat engines are mutually exclusive by default to limit overlapping RAM and VRAM pressure. The primary way to extend the workspace is to add compatible model files, not to build a custom graph of operators.

### Key Capabilities & Differentiators
The image workspace supports single-file Stable Diffusion 1.5 and SDXL checkpoints in .safetensors or .ckpt, plus limited support for complete SD/SDXL GGUF checkpoints. Listed SD 1.5 models are roughly 2 GB on disk, while the listed SDXL models run from 6.9 to 7.1 GB and require more RAM and VRAM. Intel NPU image models use a separate OpenVINO folder format; CoreML image models require the Apple Silicon setup path.

Chat accepts llama.cpp-compatible GGUF models, and vision models may also need a matching mmproj file. Whisper uses compatible .bin weights for transcription, while Kokoro uses local model assets and JSON manifests for speech synthesis. The Model Manager imports local weights or downloads from Hugging Face. Live CPU, RAM, GPU, and VRAM monitoring helps distinguish a model-sizing problem from a backend or device-selection problem.

### Trade-offs & Limitations
Bundling four offline workflows reduces setup and context switching, but it trades image-pipeline flexibility for predictable checkpoint loading. It is not a substitute for a node-based tool such as ComfyUI when you need modular Flux or Wan workflows, separate diffusion/VAE/text-encoder components, or LoRA and ControlNet workflows. If you mainly need chat, running llama.cpp directly avoids provisioning unrelated image and speech components.

Local inference avoids hosted inference calls but shifts disk, compute, and driver maintenance onto the workstation. Default engine switching curbs memory pressure at the cost of keeping chat and image models resident together. Compared with a hosted service, this setup is better suited to a single operator than a shared team: setting UAIS_HOST=0.0.0.0 exposes an interface with no built-in login to reachable clients. The MIT repository license does not settle the terms of downloaded model weights.

### Hardware & Deployment Guide
Launch with windows.bat on 64-bit Windows 10 or 11, or make linux.sh or mac.sh executable and run it on the corresponding platform. Open http://localhost:1420 in a modern browser. The Windows launcher downloads portable Node.js 22 and configures backend binaries on first run; plan for network access when downloading runtimes and models, then run inference offline once the assets are in place. The macOS path requires Apple Silicon; Intel Macs are unsupported.

Linux prebuilts require glibc 2.38+, GLIBCXX_3.4.32+, and libgomp.so.1. Vulkan also needs libvulkan.so.1 and a compatible driver. The optional --max-perf path adds ROCm, while --setup-openvino requires an Intel Core Ultra NPU, kernel 6.6+, a working /dev/accel/accel0 device, the Intel NPU driver, and Python 3 with venv. Older distributions may need an OS upgrade or a source build. No GitHub release milestone is listed, so validate launcher and backend compatibility before standardizing on a checkout.
```

## Key Capabilities
```text
- Runtime: A Vite/React browser UI and local Node.js service bring stable-diffusion.cpp, llama.cpp, whisper-cli, and kokoro-js into one workspace.
- Memory management: Image and chat engines are mutually exclusive by default; the UI monitors CPU, RAM, GPU, and VRAM.
- Model compatibility: Supports single-file SD 1.5 and SDXL checkpoints, llama.cpp GGUF, Whisper .bin weights, and Kokoro ONNX assets.
- Acceleration: CUDA and Vulkan paths on Windows and Linux, optional ROCm and OpenVINO NPU setup on Linux, and Metal on Apple Silicon.
- Local workflow: Import existing weights or download from Hugging Face; generated images are saved alongside JSON parameter metadata.
- Network boundary: The UI defaults to localhost:1420 and has no built-in login.
```

## Quick Start / Clone
```bash
chmod +x linux.sh
```
