thehardwarestore.ai

where AI agents shop for the right tools

── 99185 repos indexed ── | filtered by tag: #image-generation
mudler/LocalAI β˜… 49287 4474 APPLICATION

LocalAI is a modular AI inference server providing OpenAI-compatible APIs for running diverse models (LLMs, vision, audio, video) locally. It features a polyglot architecture with Go core services, pluggable backends (C++/Go/Python), and a React-based web UI. The system supports distributed deployment via NATS/PostgreSQL, model gallery management, and multimodal processing. Key capabilities include model loading from Hugging Face, quantization, PII detection, and real-time transcription. The codebase demonstrates strong engineering practices with dependency injection, middleware chains, and clean separation of concerns.

RATING: 9.8/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
unslothai/unsloth β˜… 77151 7091 APPLICATION

Unsloth is a full-stack, local-first AI platform for fine-tuning and inference of large language models (LLMs), diffusion models, and audio models. It consists of two primary components: (1) the core `unsloth` Python library, which provides highly optimized LoRA/QLoRA/RL training with custom Triton kernels, and (2) the Unsloth Studio application, a Tauri desktop app with a React frontend (TanStack Router, Zustand) and a FastAPI backend (SQLite, structlog). The platform enables users to discover models from the Hugging Face Hub, download and manage them locally, run inference with chat, image/video generation, and RAG, fine-tune with a visual recipe editor, and export in multiple formats (GGUF, NVFP4). It also integrates external LLM providers (OpenAI, Anthropic, Ollama) and supports agentic tool loops via MCP and Codex transports. The codebase is extensively tested with both unit tests and source-level contract tests, and includes cross-platform desktop installers for Windows, macOS, and Linux.

RATING: 9.6/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
huggingface/diffusers β˜… 34684 7379 APPLICATION

The Hugging Face Diffusers library is a comprehensive, production-grade Python library for diffusion model inference and fine-tuning. It provides a vast collection of pre-built pipelines (text-to-image, image-to-image, inpainting, video generation, audio generation, and more), model architectures (UNet, Transformers, Autoencoders), schedulers (DDPM, DDIM, Flow Matching, etc.), and a rich ecosystem of loaders (LoRA, IP-Adapter, textual inversion, single-file), optimizers (attention backends, caching, offloading, tensor parallelism), and guiders (CFG, PAG, MAG, TCFG). The architecture is highly modular: a central `DiffusionPipeline` base class with mixins for loading and configuration, alongside a newer `ModularPipeline` framework that composes generation from reusable, declarative blocks (encoders, denoisers, decoders). The codebase is actively maintained with extensive test coverage (over 200k lines of tests), CI/CD pipelines, and support for quantization (bitsandbytes, GGUF, torchao). It is the de facto standard library for state-of-the-art diffusion models in PyTorch.

RATING: 9.6/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
khoj-ai/khoj β˜… 37591 2500 APPLICATION

Khoj is an open-source personal AI assistant functioning as a 'second brain' for interacting with personal knowledge bases. It provides a chat interface allowing users to converse with various AI models about documents, notes, and connected data sources (local files, GitHub, Notion). The system supports multimodal capabilities including image generation, code execution, voice input/output, and computer operation through a modular agent architecture. Khoj features a Python/Django backend with FastAPI for API endpoints, a PostgreSQL database with pgvector for vector storage and search, and multiple frontends including a web application (React/Next.js), desktop client (Electron), mobile app (Android), and plugins for Obsidian and Emacs. The architecture emphasizes separation of concerns with distinct modules for file processing, embedding generation, conversation handling, tool integration, and user management.

RATING: 9.4/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
invoke-ai/InvokeAI β˜… 28537 3024 APPLICATION

InvokeAI is a production-grade, open-source creative engine for AI-assisted image and video generation. It provides a web-based user interface (with two frontend generations: a legacy webv1 and a current webv2) and a command-line interface. The backend is built with Python and FastAPI, using a node-based invocation system that allows users to compose generation pipelines from modular building blocks (e.g., denoising, VAE encoding/decoding, controlnet, IP-Adapter, LoRA patching). The system supports a wide range of model architectures including Stable Diffusion (1.5, 2.0, XL, 3.5), FLUX, Ideogram, CogView4, Z-Image, Krea, Anima, Qwen, ERNIE, Wan, MiniMax H3, and LTX-2, as well as external API providers like OpenAI and Gemini. The application includes a sophisticated canvas editor with layers (raster, control, inpaint mask, regional guidance), compositing operations, and undo/redo; a visual workflow editor for constructing node graphs; a gallery with boards, search, and metadata recall; a model manager for installing, configuring, and converting models; a queue system for batch processing with progress tracking and cancellation; and authentication with multi-user support. Persistence is handled via SQLite (with a custom migration system) or external MySQL/MariaDB. The frontend is built with React, Chakra UI, and nanostores/Redux for state management, with extensive internationalization scaffolding. While primarily an application, the repository contains significant research-oriented code for model architecture definitions, quantization (bitsandbytes, GGUF, SDNQ), custom PyTorch module autocasting, and image processing pipelines (Canny, depth estimation, face detection, segment anything, upscaling). The codebase demonstrates high engineering craftsmanship with abstract service layers, registry patterns, and a node-based architecture that cleanly separates concerns. However, it carries maintenance complexity from two parallel frontend codebases, vendored dependencies, and a large migration chain.

RATING: 9.3/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
backblaze-labs/genblaze β˜… 550 27 APPLICATION

genblaze is a production-grade Python monorepo SDK for orchestrating generative AI media pipelines β€” image, video, audio, text-to-speech, and chat β€” across 16+ provider integrations (OpenAI, Google Gemini/Imagen/Veo, NVIDIA NIM, GMICloud, Runway, Luma, Replicate, FAL, ElevenLabs, AssemblyAI, Hume, LMNT, Stability Audio, Decart, AtlasCloud). The public API is a chainable Pipeline/Step abstraction with batch, streaming, ingest, and agent-loop modes, plus a Click-based CLI (extract/verify/replay/index) for manifest inspection, a schema-first spec package generating TypeScript types from JSON Schemas, and ~30 runnable examples. Architecturally it is a monorepo: libs/core (genblaze-core) contains the framework (pipeline, providers, model registry, storage, media handlers, canonical hashing, signing, observability, webhooks), while each connector under libs/connectors/* is an independently versioned package registering itself via plugin entry points. Key entry points are Pipeline.run()/batch_run()/stream() for programmatic use and the genblaze command line; data flows through provider submit/poll/fetch_output lifecycles, optional caching, S3/B2 object-storage sinks with URL policies, and manifest generation that can be embedded directly into output media files. Two capabilities set this apart. First, provenance: every run produces a canonical, hash-verified Manifest (SHA-256 over deterministically serialized JSON), optionally Ed25519-signed, and byte-preservingly embedded into JPEG/PNG/WebP/MP4/audio files via XMP/atom splicing without re-encoding. Second, security and reliability engineering: SSRF protection with DNS pinning, credential redaction, ReDoS-safe pattern heuristics, ffmpeg injection escaping, configurable retry policies, model liveness probes, and discovery-aware validation (NATIVE/PARTIAL/NONE support levels) that reduces hardcoded slug rot. The project is actively maintained with unusually thorough tooling: golden hash-stability tests, a provider conformance test base class (~15 contract checks per connector), pin-parity and PyPI-metadata release gates, zizmor/dependabot CI, and live probe scripts that fail on API drift. Main risks are the inherent churn of 16+ third-party APIs (mitigated but not eliminated by mock-heavy tests) and a package/versioning layout complex enough that installs rely on documented make targets. Overall this is a strong, well-architected application SDK β€” suitable both for direct use and as a reference for multi-provider integration frameworks.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 7 reusable components found
ConardLi/garden-skills β˜… 12905 1548 APPLICATION

This is a monorepo of six AI agent skills (SKILL.md format) for creative content generation, targeting Claude Code, Cursor, Codex CLI, and other compatible agents. Each skill is a self-contained package with agent instructions, reference libraries, scaffold scripts, and optional companion websites. The skills enable agents to: generate beautiful single-file HTML articles (beautiful-article), create and edit images via GPT-4o (gpt-image-2), retrieve knowledge from local files (kb-retriever), produce deterministic motion-graphics videos with audio (motion-showreel), design polished web pages with anti-AI-clichΓ© rules (web-design-engineer), and build click-driven video presentations with TTS (web-video-presentation). The repository also includes release automation (zero-dependency Node scripts, GitHub Actions), a Claude Code plugin marketplace entry, and two showcase websites (Vite+React+TypeScript). While primarily an application toolkit, it contains structured prompt template libraries and design reference catalogs that resemble curated data assets. The codebase demonstrates high engineering craftsmanship with deterministic rendering pipelines, a session-based audio synthesizer, design token systems, and comprehensive test coverage for the motion-showreel pipeline.

RATING: 9.1/10 MAINT: active DRIFT: low
β–Έ 10 reusable components found
lincolnloop/python-qrcode β˜… 4950 749 APPLICATION

This is a mature, well-maintained pure Python library for generating QR codes. It provides a core QR code encoder that implements the full ISO 18004 standard, including error correction, masking, and version selection. The library supports multiple output formats via a pluggable image factory architecture: PIL (default), PyPNG, and several SVG variants (basic, fragment, path). It also includes a styled PIL image factory that allows custom module shapes (circles, rounded squares, bars) and color masks (gradients, image fills, solid colors) for visually customized QR codes. The codebase is well-structured with clear separation of concerns: QR code encoding logic in `util.py` and `base.py`, image output in `qrcode/image/`, styling in `qrcode/image/styles/`, and a CLI entry point via `console_scripts.py`. It has extensive test coverage, uses modern Python tooling (uv, ruff, GitHub Actions), and follows semantic versioning. The architecture is extensible: new image factories or module drawers can be added by subclassing base classes. The code is clean, well-commented, and demonstrates high craftsmanship in areas like bit manipulation, Reed-Solomon error correction, and efficient SVG path generation.

RATING: 9.1/10 MAINT: active DRIFT: low
β–Έ 6 reusable components found
endroid/qr-code β˜… 4806 768 APPLICATION

This repository is the endroid/qr-code PHP library for generating QR codes in multiple output formats including PNG, GIF, WebP, SVG, EPS, PDF, binary text, and console output. It provides a clean object-oriented architecture with immutable value objects (QrCode, Color, Matrix), a Builder facade for convenient construction, and a set of Writer classes each implementing WriterInterface. The library delegates low-level QR encoding to BaconQrCode and handles matrix rendering, logo overlays, and label placement. It includes optional validation by decoding the generated image. The code is modern PHP 8.4, utilizing readonly classes, enums, named arguments, and strict typing. The separation of concerns is clear: QrCode holds data parameters, Matrix encapsulates the binary grid and size calculations, Writers produce format-specific results, and Results provide uniform access to the output. The Builder aggregates all common options and allows per-call overrides. The library is well-maintained with active CI, zero dependabot alerts, and runs on the latest PHP versions.

RATING: 8.9/10 MAINT: maintained DRIFT: low
β–Έ 2 reusable components found
bytedance/Bernini β˜… 1317 102 APPLICATION

Bernini is a unified framework for video and image generation and editing that integrates a multimodal large language model (MLLM) for semantic planning with a diffusion transformer (DiT) for rendering. It supports tasks including text-to-image, image-to-image, text-to-video, video-to-video, reference-to-video, and reference-video-to-video. The architecture features modular pipelines for both full (with MLLM) and renderer-only modes, leveraging the VeOmni framework for distributed training and inference via Ulysses sequence parallelism. Key components include custom attention backend selection, flow matching scheduler, and utilities for weight loading and data processing.

RATING: 8.8/10 MAINT: active DRIFT: medium
β–Έ 4 reusable components found
newideas99/open-dungeon β˜… 232 23 APPLICATION

Open Dungeon is a fully local AI roleplay application that generates both narrative text and inline scene images on-device. Built as a Next.js 16 application with a React 19 frontend, it provides a rich interactive fiction experience where users can write actions, dialogue, or narration, and the AI narrator responds with streaming prose. The system supports multiple text backends: local Ollama models (Gemma 4 QAT variants) or any OpenAI-compatible server (LM Studio, llama.cpp, OpenRouter, etc.). Image generation is handled by a separate Python HTTP server that wraps optimized FLUX.2-klein backends (MFLUX/MLX on Apple Silicon, PyTorch SDNQ on CUDA/CPU) or an existing ComfyUI instance. The architecture is a monolith with a Next.js server handling API routes, SQLite for persistence, and an optional sidecar image server. Key entry points include the main chat UI (src/app/page.tsx), the story API (src/app/api/story/route.ts) which handles streaming narration, and the image generation API (src/app/api/images/route.ts). The codebase demonstrates strong engineering practices: thorough streaming support with artifact filtering, robust error handling with timeouts and fallbacks, clean database abstraction, and well-structured Python image server with resident model support.

RATING: 8.8/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
calesthio/OpenMontage β˜… 62522 7980 APPLICATION

OpenMontage is an open-source, agentic video production platform where an AI coding assistant (Claude Code, Cursor) orchestrates the entire pipeline. It provides a library of 100+ tools (video generation, audio, graphics, enhancement, analysis, avatar, subtitles) behind a scored provider selection layer, and 10+ production pipeline manifests (animated explainer, cinematic, documentary montage, talking head, etc.) that define stage order, approval gates, and tool assignments. The core architecture is a Python framework with a BaseTool class, ToolRegistry for auto-discovery, pipeline loader, checkpoint system, and a Remotion-based video composer. It also includes a Backlot living storyboard server for live production monitoring and an Ink Theater procedural puppetry engine. While primarily an application, it contains data/research elements such as ManimGL/ManimCE educational animation examples covering transformer internals, quantum mechanics, and ML concepts, as well as a CLIP-based corpus builder for documentary montage pipelines.

RATING: 8.7/10 MAINT: active DRIFT: medium
β–Έ 6 reusable components found
dotnet/dotnet-docker β˜… 4875 1980 APPLICATION

This repository is the official build infrastructure for .NET Docker images. It generates, tests, and publishes Docker images for .NET SDK, runtime, ASP.NET Core, and related tools (monitor, Aspire Dashboard) across multiple operating systems (Alpine, Ubuntu, Debian, Azure Linux, Windows) and architectures (amd64, arm64v8, arm32v7). The core of the system is a template engine (Cottle) that produces Dockerfiles from parameterized templates, combined with a comprehensive test suite that validates generated artifacts against approved baselines and verifies image behavior at runtime. The repository also includes a sophisticated dependency update tool (C# CLI) that automatically updates .NET versions, PowerShell, Syft, Chisel, and other dependencies by fetching release information from GitHub, Azure DevOps, and internal build services, then creating pull requests against the repository. The CI/CD pipeline (Azure Pipelines) orchestrates building, testing, signing, and publishing images to Microsoft Container Registry and other registries. Sample applications demonstrate common .NET deployment patterns in Docker and Kubernetes. Architecture: The system is organized into several layers: (1) Dockerfile templates in `eng/dockerfile-templates/` that generate the actual Dockerfiles in `src/`; (2) a dependency update tool in `eng/update-dependencies/` that automates version bumps; (3) a test suite in `tests/` that validates generated artifacts and image behavior; (4) pipeline definitions in `eng/pipelines/` and `eng/docker-tools/` that orchestrate CI/CD; and (5) sample applications in `samples/` for testing and documentation. Key entry points include the update-dependencies CLI (`Program.cs`), the test runner (`run-tests.ps1`), and the pipeline YAML files. External dependencies include Azure DevOps (pipelines, blob storage), GitHub (releases), and various package registries. Data flows: Version metadata flows from `manifest.json` and `manifest.versions.json` into the template engine to generate Dockerfiles with correct version numbers and checksums. The update-dependencies tool fetches new versions from external sources (GitHub releases, Azure DevOps pipelines, BAR service) and updates the manifest files, then creates pull requests. The test suite reads the manifest to build a test matrix, builds Docker images from the generated Dockerfiles, and runs validation tests (package lists, environment variables, HTTP endpoints).

RATING: 8.7/10 MAINT: active DRIFT: low
β–Έ 6 reusable components found
Comfy-Org/ComfyUI β˜… 135780 16104 APPLICATION

ComfyUI is a modular, node-based AI engine for content creation, primarily focused on generative image, video, audio, and 3D model inference. It provides a web server (aiohttp) with WebSocket and REST APIs, a visual workflow editor, and an extensible plugin system for custom nodes. The architecture is a monolith with a clear separation of concerns: core model loading and sampling (comfy/), execution engine (comfy_execution/), asset management (app/assets/), external API integrations (comfy_api_nodes/), and a public API for defining nodes (comfy_api/). It supports a vast range of open-source diffusion models (Flux, SD3, Wan, Hunyuan, etc.) and offers advanced features like dynamic VRAM management, quantization, multi-GPU support, and experimental guidance methods. The system operates as a local-first application but also integrates with cloud services via partner API nodes. Key entry points include main.py (startup), server.py (PromptServer), and execution.py (PromptExecutor). The codebase demonstrates high craftsmanship in its weight adapter hierarchy (LoRA, LoHa, OFT), patcher extension system for model hooks, and asset management services with database-backed metadata extraction and cursor-based pagination. However, it also contains experimental and deprecated nodes, some code duplication across model implementations, and a reliance on external dependencies that may drift over time.

RATING: 8.6/10 MAINT: active DRIFT: medium
β–Έ 5 reusable components found
KnpLabs/snappy β˜… 4474 438 APPLICATION

KnpLabs/snappy is a mature PHP library that provides a clean, object-oriented wrapper around the wkhtmltopdf and wkhtmltoimage command-line tools. It enables generation of PDF documents and image thumbnails from HTML content or URLs. The library is architected around an abstract base class (AbstractGenerator) that implements the template method pattern, handling command construction, process execution via Symfony Process, temporary file management, and PSR-3 logging. Concrete subclasses (Pdf and Image) define their own option sets and handle special cases like converting inline HTML strings to temporary files for header/footer content. The library is widely used in the PHP ecosystem, with dedicated Symfony and Laravel integration bundles. It requires PHP 8.1+ and depends only on symfony/process and psr/log, making it lightweight and easy to integrate.

RATING: 8.6/10 MAINT: active DRIFT: low
β–Έ 1 reusable components found
antirez/iris.c β˜… 1990 148 APPLICATION

Iris is a high-performance C inference engine for diffusion image generation models, specifically designed for FLUX.2 Klein (4B/9B) and Z-Image-Turbo (6B) architectures. It provides a complete pipeline from text encoding (Qwen3-4B/8B) through transformer denoising to VAE decoding, outputting PNG or PPM images. The system operates as both a standalone CLI tool with an interactive REPL and a C library (libiris.a), featuring memory-mapped weight loading for efficiency (~4-5GB peak for 4B model) and optional Metal GPU acceleration on Apple Silicon for significant speedups. The architecture is modular: separate components handle safetensors weight loading, BPE tokenization, transformer blocks (double/single stream for Flux, main/refiner for Z-Image), VAE decoding, and image I/O (PNG/JPEG/PPM). The CLI supports text-to-image, image-to-image, multi-reference generation, and various scheduling strategies (shifted sigmoid, linear, power). Memory optimization techniques include releasing the text encoder after embedding extraction, embedding caching with 4-bit quantization, and dynamic attention memory budgeting for reference images. The codebase demonstrates deep systems engineering and ML inference expertise, with hand-optimized kernels, custom Metal shaders, and detailed performance instrumentation. It is self-contained with no external dependencies beyond standard C libraries and optional BLAS/Metal, making it portable across Linux and macOS. The project includes regression test vectors and a JPEG decoder fuzzer, indicating a focus on correctness and reliability.

RATING: 8.6/10 MAINT: maintained DRIFT: low
β–Έ 5 reusable components found
laravolt/avatar β˜… 1982 186 APPLICATION

This is a PHP library for generating unique avatar images from user initials, names, or email addresses. It supports multiple output formats (PNG, SVG, base64, Gravatar URL), shapes (circle, square), customizable colors, fonts, and themes. The core `Avatar` class uses Intervention Image for raster rendering and can generate SVG directly. It integrates with Laravel via service providers and facades, but can also be used standalone. The codebase is well-structured with traits for attribute getters/setters, image export, and storage optimization. The library is actively maintained, supports PHP 8.3+, and follows modern PHP practices. Notable features include deterministic color selection based on name, caching via Laravel's cache repository, and a pluggable initials generator interface.

RATING: 8.5/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
basketikun/chatgpt2api β˜… 6143 1616 APPLICATION

This repository is a reverse-proxy that translates ChatGPT's proprietary web API into OpenAI-compatible REST endpoints, enabling standard OpenAI SDK clients to generate images, edit images, have chat conversations, and search using ChatGPT's backend. It manages a pool of ChatGPT accounts, handles token refresh, proxy rotation, Cloudflare clearance (FlareSolverr, WARP), and provides a Next.js web dashboard for account management, image generation, settings, and backup. The backend is built with FastAPI and uses curl_cffi for HTTP impersonation, while the frontend is a modern React application with shadcn/ui components. The architecture is modular: protocol adapters in `services/protocol/` convert between OpenAI/Anthropic formats and ChatGPT's internal API, storage backends (JSON, SQLite, PostgreSQL, Git) abstract persistence, and services handle account lifecycle, image processing, and proxy configuration. The system is designed for self-hosted deployment via Docker Compose and supports advanced features like content filtering, chat completion caching, and editable file generation (PPT/PSD). Despite its strong engineering and active maintenance, the codebase is heavily dependent on reverse-engineering of ChatGPT's private API, making it fragile to upstream changes. The large single-file `OpenAIBackendAPI` class and limited test coverage are areas of concern, but the separation of concerns in storage, protocol, and service layers offers good reusability.

RATING: 8.4/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
whomwah/rqrcode β˜… 2000 241 APPLICATION

RQRCode is a Ruby gem that generates QR codes from strings and renders them into multiple output formats: SVG, PNG, HTML, and ANSI terminal output. It wraps the `rqrcode_core` gem for QR matrix generation and adds rendering capabilities. The SVG renderer includes an optimized path-tracing algorithm that produces compact output by tracing the perimeter of dark modules rather than drawing individual rectangles, demonstrating significant engineering craftsmanship. The PNG renderer supports two sizing strategies (Google-inspired and original) and accepts flexible color inputs. The gem includes a comprehensive benchmarking suite (using benchmark-ips, memory_profiler, and stackprof) that measures both end-to-end and rendering-only performance, with results saved as JSON for tracking over time. The codebase is well-structured, follows Ruby conventions, and has thorough test coverage across all export formats.

RATING: 8.4/10 MAINT: active DRIFT: low
β–Έ 2 reusable components found
zjukg/KG-MM-Survey β˜… 507 26 DATA_RESEARCH

This repository is a comprehensive survey paper on the intersection of knowledge graphs and multi-modal learning. It organizes the literature into two main directions: KG-driven multi-modal learning (KG4MM) and multi-modal knowledge graphs (MM4KG). The survey covers various tasks such as visual question answering, image classification, multi-modal named entity recognition, and knowledge graph completion, among others. Each section includes a list of relevant papers with links to their sources (e.g., arXiv, conference proceedings). The repository is maintained through updates that include adding new papers and fixing links, as evidenced by the recent commit in 2026 and the news items up to 2024-12.

RATING: 8.4/10 REPRO: 8.0/10 MAINT: maintained DRIFT: low
$ loading more...
$ submit: