Generate perfectly sized placeholder and production-ready images instantly.
DevPic is an open-source, programmable image generation engine built for developers and designers. Stop searching for the "perfect image" to fit your UI mockups, social cards, or test environments. Simply define your parameters via a single API call and generate stunning, mathematically perfect assets on the fly.
- π Gradients & Mesh: Linear, radial, mesh, and conic gradients with 15+ curated premium palettes.
- βοΈ Procedural Doodles: 12 unique doodle subtypes (waves, dots, confetti, topography, curves, etc.).
- π· Geometric Patterns: 11 repeating SVG patterns including hexagons, chevrons, dots, grid, zigzag, and scales.
- π«§ Blobs & Shapes: Organic blobs, geometric grids, and crisp vector shape compositions.
- πͺ Glassmorphism & Neumorphism: Frosted glass effects, blurred backgrounds, and soft UI elements.
- π Any Size, Any Ratio: Generate images at any exact resolution. 21 dimension presets included.
- β‘ Instant Stateless API: Images are generated entirely in-memory and streamed directly. No storage, no buckets, zero latency.
- π Auto Dark Mode: Contrast-aware text overlays and dark background switching.
- π² Deterministic Engine: Driven by a seeded PRNG. Providing the same
seedguarantees the exact same image output every time. - π 100% Free & Open Source: No pricing, no accounts, no rate limits, no API keys. MIT licensed.
DevPic operates via a simple GET request.
<!-- Returns an 800x600 gradient image by default -->
<img src="https://your-domain.com/api/v1/image" alt="DevPic Image" /><!-- Returns a 1200x630 dark mode mesh gradient with text -->
<img src="https://your-domain.com/api/v1/image?width=1200&height=630&type=mesh&palette=neon&dark=true&text=Hello+World" alt="Social Card" />| Parameter | Type | Default | Description |
|---|---|---|---|
width |
number |
800 |
Width in pixels (1β4096) |
height |
number |
600 |
Height in pixels (1β4096) |
ratio |
string |
β |
Aspect ratio priority (e.g., 16:9, 4:3) |
type |
string |
gradient |
solid, gradient, doodle, vector, pattern, mesh, blob, noise, glass, neumorph |
format |
string |
png |
png, webp, jpeg, svg |
palette |
string |
purple |
purple, blue, sunset, forest, ocean, fire, neon, rose, indigo, amber, cyan, slate, pastel, earth, mono |
dark |
boolean |
false |
Enable dark mode styling |
seed |
number |
random |
Provide a number for deterministic/reproducible outputs |
noise |
number |
0 |
Add grain/noise intensity (0 to 1) |
DevPic is built with Next.js 15 (App Router), TypeScript, and Tailwind CSS v4.
-
Clone the repository:
git clone https://github.com/MonsterFlick/devpic.git cd devpic -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open http://localhost:3000 to view the visual Generator UI.
- Framework: Next.js 15 (App Router)
- Styling: Tailwind CSS v4, CSS Modules
- State Management: Zustand
- Image Processing:
@resvg/resvg-js(SVG to Raster) &sharp(Compression/Format output) - Generation: Pure mathematically-driven SVG composition.
Distributed under the MIT License. Free to use for personal and commercial projects.
