use-vibes weekly downloads statistics
By VibesDIY · npm · MCP servers
Transform any DOM element into an AI-powered micro-app
use-vibes has 6,362 recorded weekly downloads on npm, a decrease of 59.6% over the past 30 days, ranking #1441 of 3,247 tracked listings.
About use-vibes
use-vibes
A lightweight library that transforms any DOM element into an AI-powered micro-app.
Installation
pnpm add use-vibes
Basic Usage
import { ImgVibes } from "use-vibes";
function MyComponent() {
// You can use ImgVibes without any props - it includes its own form UI
return <ImgVibes />;
// Or provide a prompt directly (bypasses the form UI completely)
// return <ImgVibes prompt="A futuristic cityscape with flying cars" />;
}
For image manipulation using base64 data:
import { base64ToFile } from "use-vibes";
// Convert API response to a File object
const imageFile = base64ToFile(imageResponse.data[0].b64_json, "my-image.png");
Standalone Fireproof (Node.js / Wrangler)
use-vibes exposes a standalone fireproof() factory for non-React contexts
— Node scripts, Wrangler workers, anywhere you need to read/write Fireproof
documents without the React hooks or the in-iframe postMessage bridge.
The bare form Just Works if you've authenticated this device with the CLI:
npx vibes-diy login
import { fireproof } from "use-vibes";
const db = fireproof("todos");
const ok = await db.put({ text: "hello" });
const doc = await db.get(ok.id);
const { docs } = await db.query("type", { key: "todo" });
db.subscribe((changes) => {
console.log("changed:", changes);
}, true);
How defaults resolve
| Field | Default source (when omitted) |
|---|---|
apiUrl | env VIBES_DIY_API_URL, then https://vibes.diy/api |
appSlug | env VIBES_APP_SLUG, then basename(process.cwd()) |
getToken | local device-id cert from the Fireproof keybag (populated by npx vibes-diy login) |
userHandle | lazy — looked up from your defaultHandle user setting on first request |
Explicit overrides
For Wrangler / CI / service-account contexts where the CLI flow doesn't apply:
import { fireproof, type FireproofOpts } from "use-vibes";
const db = fireproof("todos", {
apiUrl: "https://vibes.diy/api",
appSlug: "my-app",
userHandle: "alice", // optional — auto-derived from token otherwise
getToken: async () => ({
isOk: () => true,
Ok: () => ({ type: "device-id", token: myToken }),
// …a real @adviser/cement Result
}),
});
Caching semantics
Calling fireproof(name) repeatedly is the supported pattern:
fireproof("a") === fireproof("a")— same name returns the same database instance.fireproof("a")andfireproof("b")are distinct, but share one WebSocket connection and one resolved userHandle.- First call's opts win. If you need to talk to multiple
(apiUrl, appSlug)pairs in one process, drop the sugar and constructVibesDiyApi+FireflyApiAdapter+FireflyDatabasedirectly.
v1 limitations
- File uploads (docs with a
_filesfield ofFile/Blobentries) are not yet supported —db.put({_files: {...}})will throw. Pure-doc workflows work end-to-end. - Inside a vibe iframe the import is rewritten to
@vibes.diy/vibe-runtime, which has its ownfireproof("name")form that uses the postMessage bridge instead. You don't need this Node factory in iframe code.
Core Features
Interactive Image Generation
-
Zero-config Implementation: Add AI image generation to any React app without any configuration
{ /* Includes a built-in form UI for prompt entry and image upload */ } <ImgVibes />; -
One-line Implementation: Directly specify a prompt for immediate generation (bypasses the form UI)
{ /* Starts generating immediately, no form shown to the user */ } <ImgVibes prompt="A sunset over mountains" />; -
Automatic Database Integration: All images are automatically stored in Fireproof database with version history
// Custom database name <ImgVibes prompt="Forest landscape" database="MyCustomDB" /> // Or pass a database instance <ImgVibes prompt="Forest landscape" database={myDbInstance} />
Prompt Management
-
Prompt Versioning: Tracks the history of different prompts used to generate an image
- Uses a structured
promptsobject with timestamp-based keys - Maintains
currentPromptKeyto reference the active prompt
- Uses a structured
-
Prompt Editing: Users can edit prompts directly in the overlay UI
- Double-click the prompt text to edit
- Press Enter to submit and regenerate with new prompt
- App receives updates via
onPromptEditcallback
<ImgVibes prompt="Initial prompt" onPromptEdit={(id, newPrompt) => { console.log(`Document ${id} updated with new prompt: ${newPrompt}`); }} />
Image Control & Manipulation
-
Image Regeneration: One-click regeneration with the same or edited prompt
- Preserves document history and adds new versions
- Uses a unique
generationIdto trigger regeneration while maintaining context
-
Image Quality Control: Set quality levels for output images
<ImgVibes prompt="Detailed artwork" options={{ quality: "high" }} /> -
Image Editing with Uploads: Process existing images with AI
<ImgVibes prompt="Turn this photo into a watercolor painting" images={[myImageFile]} /> -
Multiple Image Inputs: Combine multiple images in one generation
<ImgVibes prompt="Create a collage of these photos" images={[photo1, photo2, photo3]} />
User Interface Components
-
Interactive Overlay: Toggle-able information and controls overlay
- Shows prompt text (editable)
- Version navigation controls
- Regenerate/refresh button
- Delete button
// Disable overlay for a minimal UI <ImgVibes prompt="Clean interface" overlay={false} /> ```…
Description from the npm listing.
- ai
- dom
- micro-app
- generator
- web
- esm
- typescript
- vibe-coding
- app-builder
- ai-app-builder
- no-code
- mcp
- claude
- local-first
- react
- vibes
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (128)Similar npm MCP servers plugins
All 20 use-vibes alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/use-vibes. First seen Nov 26, 2026; last successful collection Dec 3, 2026. See the methodology.