An open API service indexing awesome lists of open source software.

https://github.com/fireproof-storage/use-vibes

Transform any DOM element into an AI-augmented micro-app
https://github.com/fireproof-storage/use-vibes

Last synced: about 1 year ago
JSON representation

Transform any DOM element into an AI-augmented micro-app

Awesome Lists containing this project

README

          

# use-vibes

A lightweight library that transforms any DOM element into an AI-powered micro-app.

## Installation

```bash
pnpm add use-vibes
```

## Components

### ImgGen

A React component for generating images with AI:

```jsx
import { ImgGen } from 'use-vibes';

function MyComponent() {
return (




);
}
```

#### Props

- `prompt`: Text prompt for image generation (required)
- `options`: Options for image generation (optional)
- `className`: CSS class name for the image element (optional)
- `alt`: Alt text for the image (defaults to prompt)

## Development

```bash
# Install dependencies
pnpm install

# Build the library
pnpm build

# Run tests
pnpm test
```

## License

MIT