Scan and manage Stable Diffusion files with CivitAI integration
npm install @tb.p/sd-manager~/.sd-manager/)
bash
npm install
`
Usage
$3
`bash
npx @tb.p/sd-manager --dir "path/to/models"
`
Example:
`bash
npx @tb.p/sd-manager --dir "C:\stable-diffusion\models"
`
The tool will:
1. Find an available port automatically
2. Start a web server and display the URL in the terminal
3. Automatically open the browser to the web interface
4. Allow you to scan and check files against CivitAI API via the web interface
$3
`bash
node cli.js --dir "path/to/models"
`
Web Interface
Once running, open your browser to http://localhost:3000:
- Scan & Check with CivitAI: Scans the directory and checks each file against CivitAI API
- Refresh: Reloads files from the database
- Tabs: Filter files by type (Checkpoint, LoRA, VAE, etc.)
Database
File information is stored in SQLite at:
- Windows: %USERPROFILE%\.sd-manager\files.db
- Linux/Mac: ~/.sd-manager/files.db
Supported File Types
- Checkpoints (.ckpt, .safetensors)
- LoRAs (.safetensors, .pt)
- VAEs (.pt, .ckpt, .safetensors)
- Embeddings (.pt, .bin)
- ControlNet (.safetensors, .pt, .pth)
- Upscalers (.pth, .pt)
- Hypernetworks (.pt)
- LyCORIS (.safetensors, .pt)
API Endpoints
- GET /api/scan - Scan directory for SD files
- POST /api/scan-and-check - Scan and check all files with CivitAI
- POST /api/check-civitai - Check a single file with CivitAI
- GET /api/files` - Get all files from database