The ultimate stock image companion for developers. Search, Preview, and Insert high-quality images without leaving your editor.
DevStock is a powerful VS Code extension that integrates Unsplash, Pexels, and Pixabay directly into your workflow. Whether you're building a landing page, writing markdown documentation, or styling a React component, DevStock helps you find and insert perfect placeholder images in seconds.
- π Triple-Engine Search β Unified access to Unsplash, Pexels, and Pixabay.
- πΌοΈ Premium Lightbox β Click any image to view it in a stunning fullscreen, high-resolution preview.
- π Context-Aware Insertion β Automatically detects your file type:
- HTML:
<img src="..." alt="..." /> - Markdown:
 - CSS:
background-image: url('...')(Smart-detects if you're already insideurl()) - JSX/React:
src={...}support. - URL: Just the clean source link.
- HTML:
- πΎ Local Downloads β Save images directly to your project. The extension tracks local files and intelligently switches to local paths in your code.
- β‘ Magic Trigger β Type
{/img}in any file to instantly open search. Fully customizable in settings. - β¨οΈ Keyboard Navigation β Navigate results with arrow keys, preview with Enter, and close with Escape.
- π‘οΈ Rate Limit Awareness β Real-time tracking of API usage so you never hit a wall mid-search.
- Install the extension from the VS Code Marketplace.
- Ready to Go β DevStock comes with built-in API keys. Just install and start searching!
- Open Explorer: Use the Activity Bar icon or press
Ctrl + Shift + I.
π‘ Power Users: For higher rate limits, you can add your own API keys in
Settings β DevStockfrom Unsplash, Pexels, or Pixabay.
| Setting | Description | Default |
|---|---|---|
devstock.defaultProvider |
Start search on this provider | unsplash |
devstock.downloadPath |
Project folder for downloads | images |
devstock.triggerPattern |
The magic string to open sidebar | {/img} |
devstock.enableTrigger |
Toggle the auto-open feature | true |
DevStock is built with modern TypeScript, esbuild, and Vanilla CSS for a lightning-fast experience.
# Clone and install
git clone https://github.com/AvTe/DevStock.git
cd DevStock
npm install
# Build & Run
npm run compile
# Press F5 to launch Extension Development HostDistributed under the MIT License. See LICENSE for more information.
Crafted with β€οΈ for the Developer Community