Quick Start Guide
Get WLEDger V2 up and running in minutes via Docker or a standalone Pure-Go binary.
Option 1: Docker (Recommended)
The easiest way to run WLEDger is with Docker Compose. The container runs as a hardened non-root user (wledger, UID 10001) with all web assets, translations, and SQLite migrations embedded inside the binary.
1. Create a Project Directory
Create folders for your persistent database and uploaded files:
mkdir -p wledger/data wledger/uploads && cd wledger
2. Create docker-compose.yaml
Create a file named docker-compose.yaml:
services:
wledger:
image: tuxedomakes/wledger:latest
container_name: wledger
ports:
- "8080:8080"
# Optional: enable built-in self-signed HTTPS (needed for mobile camera scanning & clipboard over LAN)
# environment:
# WLEDGER_TLS_SELF_SIGNED: "true"
volumes:
- ./data:/wledger/data
- ./uploads:/wledger/app/uploads
restart: unless-stopped
3. Start the Server
Run the container in the background:
docker compose up -d
Option 2: Single-Binary Install (No Docker Required)
Because WLEDger compiles as a static Pure-Go binary (CGO_ENABLED=0 with embedded assets and pure-Go SQLite), you can run it directly on Linux, macOS, or Windows with zero external runtime dependencies.
- Download the archive for your OS/architecture (
linux/amd64,linux/arm64,darwin/arm64,darwin/amd64, orwindows/amd64) from GitHub Releases. - Extract and run:
tar -xzf wledger_v*_linux_amd64.tar.gz
./wledger
Environment Variables & Built-In HTTPS
All configuration options are optional and have backward-compatible defaults:
| Variable | Default | Description |
|---|---|---|
WLEDGER_PORT | 8080 | HTTP/HTTPS listen port (or host:port) |
WLEDGER_DATA_DIR | ./data | Directory for the SQLite DB and TLS certificates |
WLEDGER_DB_PATH | <DataDir>/wledger.db | Explicit SQLite database file path |
WLEDGER_UPLOADS_DIR | ./app/uploads | Directory for uploaded part images and datasheets |
WLEDGER_TLS_SELF_SIGNED | false | Set true to auto-generate and persist an ECDSA P-256 LAN HTTPS certificate in <DataDir>/tls |
WLEDGER_TLS_CERT / WLEDGER_TLS_KEY | (empty) | Paths to custom PEM certificate and private key |
WLEDGER_TRUST_PROXY | false | Set true behind a reverse proxy to trust X-Forwarded-For / X-Real-IP headers |
WLEDGER_COOKIE_SECURE | false | Set true when serving behind an HTTPS reverse proxy (auto-enabled when built-in TLS is active) |
Modern mobile browsers block camera access (getUserMedia) and navigator.clipboard on plain http:// LAN addresses. Set WLEDGER_TLS_SELF_SIGNED=true (or put WLEDger behind an HTTPS reverse proxy) and visit https://<server-ip>:8080 to use your phone camera for 2D supplier barcode scanning!
Initial Setup Wizard
- Open your browser and navigate to
http://localhost:8080(orhttps://localhost:8080with TLS enabled). - Complete the Setup Wizard by creating your Admin Account (Email and Password, 8–72 characters).
- You will be logged in and redirected to the Dashboard.
Hardware & Storage Setup
WLEDger supports both WLED-controlled LED storage and controller-less Standalone Containers.
Option A: Use WLEDger Without Any LEDs (Standalone Containers)
You do not need a WLED controller or a dummy IP to organize parts in WLEDger:
- Go to Hardware and click Add Standalone Container.
- Enter a container name (e.g.,
Travel Case #1) and grid dimensions (rows/cols). - Open Configure to customize bins or mount the container directly onto Dashboard Walls.
- Later, if you add LEDs, you can bind any standalone container to a WLED controller directly from Hardware.
Option B: Connect a WLED Controller
Prerequisites:
- A microcontroller running WLED (e.g., Sparkle Motion, Dig2Go, ESP32) with addressable LEDs (WS2812B/SK6812) on the same LAN.
- In WLEDger, go to Hardware.
- Click Discover WLED to scan your LAN automatically via mDNS (
_wled._tcp.local.), or click Add Controller and enter the name, IP address, and port (default80). - Click Configure on the controller to open the Grid Painter:
- Choose Linear Strip, Matrix, Compound, or X/Y Crosshair (2 Strips) layout.
- Configure multi-LED wide bins (
Width >= 1) if a physical bin spans multiple LEDs, or X/Y strip start indices and wiring directions for 2-strip crosshair setups. - Use Auto Map (Linear), Auto Map (Snake), or Populate X/Y Bins (or click bins manually), then click Save Changes.
Organize with Walls (Optional)
- Go to the Dashboard and click Create Wall.
- Click Edit Wall to add any combination of WLED containers and Standalone Containers onto one view.
Add Parts, Scan Barcodes & Locate
- Add a Part: Go to Inventory -> Add Part, or scan a 2D DigiKey / Mouser / LCSC bag label with your phone camera or barcode scanner to auto-fill MPN, manufacturer, and supplier fields.
- Bulk Import: Click Import on Inventory to upload or paste a CSV.
- Locate: Click the Locate (eye) icon on any part card, part detail page, or inside a Project's Pick Mode to light up every bin storing that component!
Next Steps
- Hardware Build Guide: Advice on building LED storage cabinets and custom PCBs.
- Feature Guide: Detailed walkthrough of Inventory, Projects & BOM Pick Mode, WLED v2 features, and REST API v1.
- Developer Guide: Pure-Go architecture and local development guide.