Skip to content

CardSorting/DreamBeesMLX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐝 DreamBees MLX Studio

macOS Apple Silicon Metal 3.0 Accelerated License Apache 2.0 MCP Server Protocol 100% On-Device

DreamBees MLX Studio is a sovereign, 100% on-device AI Image Generation Studio and Model Context Protocol (MCP) Engine engineered natively for macOS on Apple Silicon (M1/M2/M3/M4).

It delivers instant, private AI image synthesis using Apple's Metal GPU framework and MLX array architecture (mflux and mlx). Zero subscription fees, zero cloud API keys, zero remote telemetry.


⚑ Key Architecture & Features

  • ο£Ώ 100% Native Apple Silicon Acceleration: Directly targets Apple Silicon's Unified Memory Architecture (UMA) via Metal GPU arrays with low process priority (nice -n 10) and 3GB VRAM cache capping (mx.set_cache_limit) for maximum desktop fluidity without UI lag.
  • ✨ 2026 Open-Weights Model Suite:
    • FLUX.2 Klein (4B & 9B) (mlx-community/flux2-klein-4b-4bit) β€” Real-time rectified flow DiT by Black Forest Labs.
    • Sana 2.0 Sprint (SceneWorks/Sana_1600M_1024px_mlx) β€” Sub-second 4K linear-attention DiT (~0.4s – 1.2s).
    • Wan2.1 T2I (1.3B) (Wan-AI/Wan2.1-T2I-1.3B-MLX) β€” High aesthetic quality and rich color depth.
    • Stable Diffusion 3.5 Turbo (argmaxinc/mlx-stable-diffusion-3.5-large-4bit-quantized) β€” Multi-head DiT architecture.
  • πŸ”¬ TAESD Sub-Millisecond Neural Latent Streaming: Sub-millisecond 16-to-3 RGB TAESD neural matrix projection (taesd_fast_latent_decode) for real-time intermediate preview frames with 0% VAE GPU overhead.
  • πŸ“ˆ Flow Velocity Vectoring & Signal-to-Noise Telemetry: Computes flow-matching velocity ($v_t$) and Signal-to-Noise Ratio ($SNR_{dB}$) on every step pass.
  • πŸ€– Touchless Auto-Provisioning & Environment Resolver: TouchlessEnvironmentResolver automatically detects system Python environments, self-heals pip via ensurepip, and constructs an isolated virtualenv at ~/Library/Application Support/DreamBees Lite/python_env/ with mlx, mflux, diffusers, and Pillow installed silently in the background on demand.
  • πŸ§™ Ergonomic Touchless Onboarding Wizard: Glassmorphic onboarding modal featuring LM Studio style preset cards (Fast Speed vs Ultra Quality), Diffusionbee style Unified Memory diagnostic bar (16 GB Unified Memory Available), Ollama style expandable live terminal accordion, and Adobe CC style 1-Click Starter Canvas Showcase.
  • πŸ€– Official Model Context Protocol (MCP) Server: Exposes MCP tools (dreambees_generate_image, dreambees_list_models, dreambees_run_benchmark, dreambees_get_metal_diagnostics) over stdio JSON-RPC for external AI agents (Claude Desktop, Antigravity, Cursor, Continue.dev).
  • πŸ“Š 10-Test Standardized Benchmark Suite: Automated benchmark runner (tests/benchmarks/run_benchmarks.py) testing 10 diverse artistic styles and producing JSON reports (benchmark_results.json).

πŸ“š Comprehensive Documentation Directory

Audience / Purpose Guide Focus Area
πŸ€– AI Agents Protocol AGENTS.md Root instructions and rules for LLM Autonomous Agents
πŸ› οΈ Agent Tool Reference docs/AGENT_TOOL_REFERENCE.md Formal JSON Schema specs & payloads for all 4 MCP tools
πŸ”Œ Agent Framework Integration docs/AGENT_INTEGRATION.md Code integration for Claude, Antigravity, Cursor, LangChain, CrewAI, AutoGen
πŸ“Š Agent Benchmarking Protocol docs/AGENT_BENCHMARKING.md Programmatic benchmark execution & KPI formulas ($it/s$, $ms/step$, VRAM)
🎨 Agent Prompt Library docs/AGENT_PROMPT_LIBRARY.md Structured prompt formulas for Photorealism, UI 3D, Fine Art, and Sci-Fi
πŸ›οΈ System Architecture ARCHITECTURE.md High-level topology, Mermaid sequence diagrams, memory management, and process IPC
🀝 Open-Source Contributors CONTRIBUTING.md Development setup, PR guidelines, code standards, and verification commands
πŸ“œ Code of Conduct CODE_OF_CONDUCT.md Contributor Covenant v2.1 community standards
πŸ›‘οΈ Security & Privacy Policy SECURITY.md Security architecture, disclosure policy, zero-telemetry, and local data isolation
❓ FAQ & Troubleshooting docs/FAQ.md Hardware requirements, memory optimization, TAESD latent previews, and troubleshooting
πŸ’Ό Executives & Stakeholders docs/STAKEHOLDER_ONBOARDING.md Privacy compliance, cloud cost elimination, ROI, and security posture
πŸ‘¨β€πŸ’» Developers & Engineers docs/DEVELOPER_ONBOARDING.md Architecture, stdio IPC protocol, Touchless Resolver, and build workflows
🎨 Artists & Creative End-Users docs/NON_TECHNICAL_USER_GUIDE.md 1-minute quick start, presets, Studio Canvas navigation, and FAQ
πŸ€– AI Agents & MCP Integration mcp_server/README_MCP.md Model Context Protocol server setup for Claude Desktop, Antigravity, Cursor
πŸ“Š QA & Performance Engineers tests/benchmarks/README.md 10-Test automated MLX Metal benchmark runner and performance reporting

πŸ“ Repository Structure

DreamBeesMLX/
β”œβ”€β”€ src/                          # Electron Renderer β€” React 19 + Vite + Tailwind CSS
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ StudioCanvas.tsx      # Main interactive canvas with TAESD latent preview & step snapshot inspector
β”‚   β”‚   β”œβ”€β”€ TouchlessInstallerWizard.tsx # Glassmorphic touchless setup wizard & memory gauge
β”‚   β”‚   β”œβ”€β”€ FirstRenderShowcase.tsx # 1-click starter template showcase
β”‚   β”‚   β”œβ”€β”€ ModelHub.tsx          # MLX Model Catalog & Downloader UI
β”‚   β”‚   β”œβ”€β”€ GalleryView.tsx       # Offline artwork gallery & lightbox modal
β”‚   β”‚   └── HardwareMonitor.tsx   # Apple Silicon Metal GPU & Memory diagnostic widget
β”‚   └── main.tsx                  # React entry point
β”œβ”€β”€ electron/                     # Electron Main Process & Native Bridges
β”‚   β”œβ”€β”€ mlx/
β”‚   β”‚   └── mlx_image_daemon.py   # Python MLX Image Daemon (TAESD Latent Decoding & Telemetry IPC)
β”‚   β”œβ”€β”€ environment_resolver.ts   # Touchless virtual environment auto-provisioner
β”‚   β”œβ”€β”€ sidecar_supervisor.ts     # Process supervisor & nice -n 10 scheduling
β”‚   β”œβ”€β”€ model_downloader.ts       # Chunked resumable HuggingFace MLX downloader
β”‚   β”œβ”€β”€ database.ts               # Local SQLite database manager (better-sqlite3)
β”‚   └── main.ts                   # Main process entry point & IPC router
β”œβ”€β”€ mcp_server/                   # Model Context Protocol (MCP) Server for AI Agents
β”‚   β”œβ”€β”€ src/index.ts              # MCP Stdio Server implementation (@modelcontextprotocol/sdk)
β”‚   └── README_MCP.md             # Integration guide for Claude Desktop, Antigravity, Cursor
└── tests/
    └── benchmarks/               # 10-Test Automated Benchmark Suite
        β”œβ”€β”€ suite_config.json     # Standardized test prompts & seeds manifest
        β”œβ”€β”€ run_benchmarks.py     # Python automated test runner
        β”œβ”€β”€ outputs/              # Rendered PNG benchmark images
        └── benchmark_results.json # Benchmark performance JSON report

πŸš€ Quick Start & Development

1. Run Electron App locally

npm install
npm run dev

2. Build MCP Server for AI Agents

npm run build:mcp

3. Run 10-Test MLX Metal Benchmark Suite

python3 tests/benchmarks/run_benchmarks.py

4. Package macOS Desktop Application

npm run build

πŸ€– MCP Server Setup (Claude Desktop / Antigravity / Cursor)

Add the following block to your claude_desktop_config.json or mcp_config.json:

{
  "mcpServers": {
    "dreambees-mlx": {
      "command": "node",
      "args": [
        "/Users/bozoegg/Downloads/DreamBeesAIArt-clean-main/mcp_server/dist/index.js"
      ]
    }
  }
}

πŸ›‘οΈ Telemetry & Sovereignty

DreamBees MLX operates 100% offline on your Mac's Apple Silicon Metal GPU. All model weights, database records, and generated image files remain exclusively on your local disk (~/Library/Application Support/DreamBees Lite/).

About

Sovereign, 100% on-device, offline-first AI Image Generation Studio engineered natively for macOS on Apple Silicon (M1/M2/M3/M4) via Apple Metal GPU & MLX architecture. Powered by FLUX.2 Klein, Sana 2.0, Wan2.1, Lumina 2.0 & SD 3.5. Zero cloud, zero API keys, zero fees.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages