Slopbox
Slopbox combines multiple AI image generation models into a web interface with video-audio synchronization capabilities. It handles AI image generation, stores results in a browsable gallery, maintains a database of prompts, and provides professional video sync tools.
Features
AI Image Generation
- Multiple AI models (Flux, Recraft) with real-time progress tracking
- Gallery with favorites, slideshows, and prompt management
- Batch generation and Claude-powered prompt modification
Video Sync Tool
- Browser-based video-audio synchronization with waveform visualization
- Real-time crossfading between original and replacement audio
- Dual export: browser-based (WebCodecs) and server-side (FFmpeg)
- Optimized encoding with smart video stream copying
Quick Start
Easiest Way (No Installation)
Run directly with uvx:
# Full slopbox application (recommended)
uvx slopbox
# Video sync tool only
uvx videosync --from slopbox
# With custom options
uvx slopbox --port 8080 --host 0.0.0.0
uvx videosync --from slopbox --port 3000
Installation
Install from PyPI with any Python package manager:
# With uv (recommended)
uv add slopbox
# With pip
pip install slopbox
# With pipx (for CLI tools)
pipx install slopbox
Running the Applications
After installation, you can run either application with simple commands:
# Video sync tool only
videosync # Default: localhost:8000
videosync --port 3000 # Custom port
videosync --host 0.0.0.0 # Accessible from network
videosync --no-reload # Disable auto-reload
# Full slopbox application
slopbox # Default: localhost:8000
slopbox --port 8080 --host 0.0.0.0 # Custom host and port
# Get help
videosync --help
slopbox --help
Development
For development with hot reloading:
# Clone and install in development mode
git clone https://github.com/mbrock/slopbox
cd slopbox
uv sync
# Start development servers
make videosync # or ./dev videosync
make slopbox # or ./dev slopbox --port 8080
Environment Setup
# Set up API keys for image generation (optional for video sync)
export REPLICATE_API_KEY=your_replicate_api_key
export ANTHROPIC_API_KEY=your_anthropic_api_key
Video Sync Requirements
For server-side video export, install FFmpeg:
# macOS
brew install ffmpeg
# Ubuntu/Debian
sudo apt install ffmpeg
Development Commands
make help # Show all available commands
make videosync # Start video sync tool
make slopbox # Start full application
make install # Install dependencies
make lint # Run code linting
make format # Format code
make test # Run tests
make clean # Clean temporary files
Project Structure
src/slopbox/- Main application codesrc/slopbox/videosync.py- Video sync router and functionalityvideosync_app.py- Standalone video sync applicationdev.py- Development server launcherstatic/- Client-side assets (CSS, JS)
The video sync tool can run standalone or as part of the main application at /video-sync.
License
MIT License
Metadata
Release files for slopbox 0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| slopbox-0.6.tar.gz | 110.4 kB | Without provenance | Details for slopbox-0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slopbox-0.6-py3-none-any.whl | Python 3 | none | any | Details for slopbox-0.6-py3-none-any.whl |
Total release size: 152.9 kB
Release files / slopbox-0.6.tar.gz
| Download URL | slopbox-0.6.tar.gz |
|---|---|
| Size | 110.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
136569f7067fa10db02197cd9a007e0ba9f130605cc857b9959ee1b239c665e1
|
|
BLAKE2b-256 checksum How to use checksums |
aaeddd7e318137a9dcf6982fe977a12a8c094a06eece888395c00f4194ea9521
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.18
|
Release files / slopbox-0.6-py3-none-any.whl
| Download URL | slopbox-0.6-py3-none-any.whl |
|---|---|
| Size | 42.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa412643a645ba646d5a388d5b48741bd8af3c98ea58ea62e1a3ab739cd384fb
|
|
BLAKE2b-256 checksum How to use checksums |
96c26a6cf3fed9ab35fd6fd07c692da7d5198e1ffff9c3861bde9bf4b8d3e0bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.18
|
Security for slopbox 0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.